Commit graph

102 commits

Author SHA1 Message Date
JonnyWong16
de58136314 Do not send recently added notification if item updated more than 24 hours ago 2017-12-21 15:22:18 -08:00
JonnyWong16
19f029cff0 Rename PlexPy to Tautulli 2017-12-16 12:52:33 -08:00
JonnyWong16
c586fe1d07 Update session database with all session data 2017-12-16 09:08:17 -08:00
JonnyWong16
f42f1182f2 Reimplement recently added delay to group items 2017-12-09 21:34:41 -08:00
JonnyWong16
7e7609743a Add callback to force stop stale streams 2017-12-09 02:09:14 -08:00
JonnyWong16
bbe309e7bd Set session state for buffer events 2017-08-23 20:29:48 -07:00
JonnyWong16
1c8e581cf1 Write stopped time to database for all events
* To prevent the "long duration" websocket issue for missing stop events
2017-08-22 20:29:21 -07:00
JonnyWong16
a5771dccf5 Fix session start log format error 2017-08-19 21:23:16 -07:00
JonnyWong16
a0799e8197 Initialize scheduler to reconnect websocket when failed on startup 2017-08-13 09:44:15 -07:00
JonnyWong16
6f0c650a72 Separate movie/episode/track watched percent 2017-07-07 19:01:04 -07:00
JonnyWong16
651f4ebf5f Fix websocket on_created 2017-01-27 23:12:33 -08:00
JonnyWong16
fc7b396e45 Log recently added items to the database
* Temporarily disable recently added upgrade notifications
2017-01-27 20:50:46 -08:00
JonnyWong16
01ec812e1c Fix missing recently added notifications 2016-12-06 20:31:18 -08:00
JonnyWong16
38d2345cd2 Option to send recently added notification for new versions 2016-11-11 13:37:38 -08:00
JonnyWong16
5aaa014207 Option to group recently added by parent or grandparent 2016-11-11 13:36:25 -08:00
JonnyWong16
b8fc6e6b0f A bit of performance improvement 2016-11-11 13:36:22 -08:00
JonnyWong16
ffdd9c9cbf Rework notification logic to only build parameters once per action
* Instead of rebuilding for each notification agent
* Change season/episode to use season poster
* Change album/track to use album art
2016-11-11 13:36:20 -08:00
JonnyWong16
b3f43f956e Add delay to check for valid DLNA session 2016-11-11 13:36:15 -08:00
JonnyWong16
6d0327f662 Don't nest metadata dict
* Return metadata dict directly
2016-11-11 13:36:14 -08:00
JonnyWong16
be50ecd033 Default True for no data notifications 2016-11-11 13:31:20 -08:00
JonnyWong16
31c9ecaf44 Clean up timeline state 2016-11-11 13:31:19 -08:00
JonnyWong16
e1bd5ed49e Add grouped notification params 2016-11-11 13:31:19 -08:00
JonnyWong16
d97cacff14 More intelligent grouping of recently added
* Websocket only
2016-11-11 13:31:19 -08:00
JonnyWong16
8ed2f0eafa Another attempt at using websockets for recently added 2016-11-11 13:31:19 -08:00
JonnyWong16
438e525319 Add user_id to session started log message 2016-11-11 13:31:18 -08:00
JonnyWong16
08a8b5fee0 Multithreaded notification queue 2016-11-11 13:31:18 -08:00
JonnyWong16
82f4c99025 Check on_watched condition before adding to queue 2016-11-11 13:31:18 -08:00
JonnyWong16
7b2a7aff9f Update notification handler for all notification triggers 2016-11-11 13:31:18 -08:00
JonnyWong16
9d00e052f0 Add ratingKey to session start log message 2016-08-01 09:28:39 -07:00
JonnyWong16
3ccc82f343 Add notification for user streaming from a new device 2016-07-05 21:30:47 -07:00
JonnyWong16
0b085b6d03 Notifications for user concurrent streams 2016-07-04 22:47:59 -07:00
JonnyWong16
67d203e011 Catch exception and attempt to reconnect websocket 2016-06-11 11:26:52 -07:00
JonnyWong16
f4e719749a Cleanup all imports
* Should fix problems with needing to do inline imports
2016-05-07 11:26:00 -07:00
JonnyWong16
cc1e888227 Check if notification agents enabled before sending notifications 2016-03-05 13:20:28 -08:00
JonnyWong16
d73e379dcf Do not remove session from db until it is successfully written
* For activity pinger only
2016-03-05 13:07:26 -08:00
JonnyWong16
d94b348780 Fix buffer notifications even when disabled with websockets 2016-01-27 19:52:30 -08:00
JonnyWong16
ecedd4d231 Merge pull request #263 from drzoidberg33/library-id-changes
Library id changes
2016-01-17 16:43:46 -08:00
Jonathan Wong
b4a25e33bb Fix websocket log spam
* Bug where websocket reports a session playing while /status/sessions
reports nothing.
2016-01-16 03:28:39 -08:00
Jonathan Wong
636f898da8 Massive code cleanup
* Finish up library pages (toggles and notifications)
* Update user pages to match library pages
* Fix no current activity bif thumbnail at the start of a stream
* Improved logging throughout PlexPy
2016-01-15 20:58:44 -08:00
Jonathan Wong
69a3b5134f Switch recently added to only use activity pinger
* Fixed activity pinger logic for grouping notifications
2015-11-16 21:19:04 -08:00
Tim
c350943041 Add some debug logging for websocket timeline events. 2015-11-05 22:49:05 +02:00
Jonathan Wong
872ef2771e Fix double recently added episode notifications 2015-10-25 22:00:51 -07:00
Jonathan Wong
b9f47df930 Update activity_pinger for recently added 2015-10-25 17:21:49 -07:00
Jonathan Wong
d6b31dc542 Set on_created notification in database 2015-10-25 12:20:00 -07:00
Jonathan Wong
1c58a47073 Update websocket and handler for timeline events 2015-10-24 21:22:46 -07:00
Tim
89a03fb263 Fix the real reason we were getting double start notifications. 2015-09-23 19:40:22 +02:00
Tim
ed6ff9c10c Don't fire off session start until the item is playing (fixes double start notifications).
Don't try to write a temp session if we don't have any data.
2015-09-23 19:23:17 +02:00
Tim
9fdcc93e2e Hack things to make sure we know what is going on when clients don't send a stop event. 2015-09-23 00:25:27 +02:00
Tim
74e8d7d329 Get buffer and watched notifications working again. 2015-09-22 21:59:07 +02:00
Tim
5595ef2e20 Move activity processor code to the correct place. 2015-09-22 20:30:22 +02:00