Commit graph

88 commits

Author SHA1 Message Date
JonnyWong16
eea1cf1d2c Schedule jobs using UTC to prevent tiggers in the past 2019-05-02 20:01:39 -07:00
JonnyWong16
eae842b09a Store websocket rating key to compare against when mismatched with sessions XML (Fixes Tautulli/Tautulli-Issues#174) 2019-04-27 15:48:31 -07:00
JonnyWong16
d3a7229c00 Fix removing session metadata cache exception IOError to OSError 2019-04-27 10:32:56 -07:00
JonnyWong16
a749b71f7f Fix activity resume after buffering 2018-12-01 15:17:33 -08:00
JonnyWong16
d731ad851c Add queued tasks modal 2018-10-22 22:01:16 -07:00
samwiseg00
7271e66ab8 Fix transcode change creating invalid sessions in the DB 2018-10-18 22:19:36 -04:00
JonnyWong16
85b4116491 Force buffer threshold to 10 2018-10-13 21:33:43 -07:00
Landon Abney
67f70fab90
Don't double notify on fast buffer triggers
If two buffer notifications come in at the same second right at the cusp 
of the notification trigger the difference between the current and last 
trigger would be 0, causing it to send two notifications.

Change the initial value to `None` to prevent this from happening.
2018-10-11 13:29:21 -07:00
samwiseg00
612bf079de Fix transcode decision change for some clients 2018-10-10 16:46:40 -04:00
samwiseg00
1a46e09928 Fix client buffering identification in certain scenarios 2018-10-08 10:54:09 -04:00
samwiseg00
ce59692089 Fix typo in the comments 2018-10-05 23:17:06 -04:00
samwiseg00
df76a02478 Account for changing transcode decisions from websocket events 2018-10-05 23:16:49 -04:00
JonnyWong16
e21a13b7ff Revert "Hack to check for live tv stopped websocket event"
This reverts commit 1245b4fbd3.
2018-05-27 14:13:24 -07:00
JonnyWong16
1245b4fbd3 Hack to check for live tv stopped websocket event 2018-05-27 14:04:47 -07:00
JonnyWong16
a9fdf73e8b Check live tv websocket event using key instead of rating key 2018-05-27 13:00:34 -07:00
JonnyWong16
aa365eb6a3 Improved checking of live tv session websocket events 2018-05-26 10:14:36 -07:00
JonnyWong16
fcd7593764 Add temporary watched state for sessions 2018-04-04 22:05:30 -07:00
JonnyWong16
1a293d525f Update database session on state change 2018-02-28 13:34:21 -08:00
JonnyWong16
16f270691d Check on watched notification states before adding to the queue 2018-02-15 15:16:50 -08:00
JonnyWong16
a0106874e2 Fix paused and resume notifications only triggering once 2018-02-08 21:19:43 -08:00
JonnyWong16
56dc28eed3 Clear session metadata cache on startup 2018-02-03 09:06:05 -08:00
JonnyWong16
9100e25a21 Pass copy of notification data to prevent multithreading issues 2018-01-30 23:04:44 -08:00
JonnyWong16
38ca4e37a6 Fix matching of synced playback 2018-01-30 19:04:30 -08:00
JonnyWong16
7dff6b121b Log force stopped message 2018-01-30 09:31:13 -08:00
JonnyWong16
d77d889695 Fix activity callback function argument 2018-01-30 09:13:06 -08:00
JonnyWong16
58996c1115 Unused now time 2018-01-27 10:59:48 -08:00
JonnyWong16
7301fe5f6e Remove 24 hour limit for recently added 2018-01-26 12:29:38 -08:00
JonnyWong16
5d8455d141 Get rating key for live sessions from websocket data 2018-01-21 13:09:02 -08:00
JonnyWong16
32b43202c2 Attempt at fixing stuck sessions which require flishing the database 2018-01-15 18:55:37 -08:00
JonnyWong16
c5a9ecd4ac Make sure websocket events are for library items 2018-01-15 14:49:49 -08:00
JonnyWong16
33739f1cb2 Fix check activity session write success 2018-01-13 21:16:07 -08:00
JonnyWong16
8fd159d2fe Use added_at to check recently added more than 24 hours ago 2018-01-12 12:34:07 -08:00
JonnyWong16
157af84226 Only update the database sessions every 60 seconds while playing 2018-01-07 17:10:33 -08:00
JonnyWong16
12c9aa3d6a Try caching metadata for sessions 2018-01-03 13:36:26 -08:00
JonnyWong16
ad041a1691 Attempt to fix HW transcoding indicator 2018-01-02 16:13:27 -08:00
JonnyWong16
ca20eda606 Update paused time while still paused 2017-12-31 18:37:55 -08:00
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