Commit graph

73 commits

Author SHA1 Message Date
JonnyWong16
b7937b8740
Proxy PMS downloads json through server 2022-01-05 14:04:33 -08:00
JonnyWong16
93997c11dc
Add playback error notification trigger 2020-09-21 18:31:19 -07:00
JonnyWong16
056d0d81ac
Improve activity monitor session start log message 2020-09-14 09:19:33 -07:00
JonnyWong16
b9422312f3
Remove unused check recently added pinger 2020-07-15 21:05:49 -07:00
JonnyWong16
7fe1e542df
Remove check remote access scheduled task
* Tautulli/Tautulli-Issues#251
2020-07-05 20:38:54 -07:00
JonnyWong16
4e0563bbf9
Merge branch 'nightly' into python3
# Conflicts:
#	plexpy/activity_pinger.py
#	plexpy/webserve.py
2020-04-28 18:44:41 -07:00
JonnyWong16
03035d0eac
Prevent spamming the logs with remote access failures 2020-04-28 18:04:05 -07:00
JonnyWong16
d8f223327e
Merge branch 'nightly' into python3
# Conflicts:
#	plexpy/activity_pinger.py
#	plexpy/activity_processor.py
#	plexpy/helpers.py
#	plexpy/notifiers.py
#	plexpy/version.py
#	plexpy/webserve.py
2020-04-27 18:19:48 -07:00
JonnyWong16
54a7839421
Add remote access failure reason 2020-04-24 18:03:05 -07:00
JonnyWong16
9e0153e962
Set PYTHON2 global variable 2020-04-04 07:57:51 -07:00
JonnyWong16
f72d93216c Add helper function for timestamp 2020-03-28 14:50:45 -07:00
JonnyWong16
cc05552685 Remove from __future__ import absolute_import 2020-03-24 20:17:44 -07:00
JonnyWong16
82c09570c4 Update all future imports for Python 2 2020-03-23 22:11:42 -07:00
JonnyWong16
078685a2a3 Fix imports for Python 2 2020-03-23 22:11:41 -07:00
JonnyWong16
05afa0859c Run futurize --unicode-literals 2019-11-23 19:21:10 -08:00
JonnyWong16
ab6196589b Run futurize --stage1 2019-11-23 19:11:42 -08:00
JonnyWong16
c279057f91 Remove unicode strings 2019-11-23 14:37:26 -08:00
JonnyWong16
b295566a4e Clear metadata cache before retrieving new sessions 2019-09-19 21:01:37 -07:00
JonnyWong16
e0943a2d55 Clear metadata cache on startup check for active sessions 2019-09-19 20:55:19 -07:00
JonnyWong16
a5807f21b4 Flush temporary sessions automatically if failed to check sessions on startup 2018-03-19 23:24:09 -07:00
JonnyWong16
90443b4028 Catch failed to retrieve Plex Cloud status 2018-02-14 08:53:27 -08:00
JonnyWong16
e0109ed179 Combine connection function for cloud and non-cloud servers 2018-02-14 08:45:45 -08:00
JonnyWong16
a53afe05a2 Check cloud status on startup before connecting websocket 2018-02-14 06:55:44 -08:00
JonnyWong16
a5d2467bfe Less log spam of cloud server status 2018-02-14 06:39:42 -08:00
JonnyWong16
e1dca1509a Reconnect Plex Cloud without keeping the server awake 2018-02-13 10:49:11 -08:00
JonnyWong16
9100e25a21 Pass copy of notification data to prevent multithreading issues 2018-01-30 23:04:44 -08:00
JonnyWong16
32b43202c2 Attempt at fixing stuck sessions which require flishing the database 2018-01-15 18:55:37 -08:00
JonnyWong16
15faccfa2f Update server connection code 2017-12-30 17:27:39 -08:00
JonnyWong16
19f029cff0 Rename PlexPy to Tautulli 2017-12-16 12:52:33 -08: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
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
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
6d0327f662 Don't nest metadata dict
* Return metadata dict directly
2016-11-11 13:36:14 -08:00
JonnyWong16
303ccce8b4 Some more cleanup 2016-11-11 13:31:21 -08:00
JonnyWong16
72764c614e Add logger message 2016-11-11 13:31:20 -08:00
JonnyWong16
b8106186fb Add advanced setting for remote access ping threshold 2016-11-11 13:31:20 -08:00
JonnyWong16
eb3c189ab6 Rework task scheduler for websocket only 2016-11-11 13:31:20 -08:00
JonnyWong16
e1bd5ed49e Add grouped notification params 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
5dd04cb8ab Temporarily set stopped time when connection is lost 2016-10-08 22:56:43 -07:00
JonnyWong16
9d00e052f0 Add ratingKey to session start log message 2016-08-01 09:28:39 -07:00
JonnyWong16
984e5588c8 Use Plex downloads to check for PMS updates instead of server API
* Check for PMS updates has been disabled and must be re-enabled in the
settings
2016-06-25 18:41:18 -07:00
JonnyWong16
cb8a5504f6 Cleanup unused modules and imports
* Ran code through PyFlakes
2016-05-15 11:32:11 -07:00
JonnyWong16
b47f542df7 Limit number of failed session write attempts for activity pinger
* Default is 5 attempts, configurable manually in the config file.
2016-05-13 22:48:24 -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