Commit graph

48 commits

Author SHA1 Message Date
Jonathan Wong
8f367d140f Add item counts to database
* Add schedule task to refresh libraries list
* Update library stats to use library_sections table
2016-01-15 20:49:04 -08:00
Jonathan Wong
09aac22909 Initial library_id changes
* Give the library sections their own db table.
2016-01-15 20:48:29 -08:00
Jonathan Wong
89f581f63e Only schedule job for recently added or monitor remote access if setting enabled 2015-12-03 18:40:18 -08:00
Jonathan Wong
1c00f82097 Add ability to delete users 2015-11-27 21:13:17 -08:00
Jonathan Wong
ca91adbd53 Add check for Plex external port down 2015-11-17 23:35:41 -08:00
Jonathan Wong
c3ea35806e Move check for server down to check_active_sessions 2015-11-17 06:57:02 -08:00
Jonathan Wong
4d87666a42 Schedule job to check if server down 2015-11-16 23:19:59 -08:00
Jonathan Wong
1983597cf1 Fix get_server_friendly_name 2015-11-16 22:51:21 -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
Jonathan Wong
12056ac2ba Get server name as a scheduled task 2015-11-16 18:31:22 -08: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
82b567f15f Fix merge conflicts 2015-09-27 11:59:20 -07:00
Tim
98c0d6619a Remove some old unused code 2015-09-23 00:38:45 +02:00
Tim
3afa52b607 Refactor the Monitor code. 2015-09-22 20:02:11 +02:00
Tim
28227a3c35 Initial code for a more suitable websocket event handler. 2015-09-22 00:06:42 +02:00
Tim
fa25809e7a Make websocket failover if no connection can be made on startup or during runtime. 2015-09-20 13:39:04 +02:00
Tim
fa71beb03f Very early work on implementing websocket monitoring method. 2015-09-20 12:21:39 +02:00
Jonathan Wong
4fa70cb234 Update grouping logic
* Check the user's previous row to match the rating key
2015-09-18 14:36:52 -07:00
Tim
483f5825db Add check for webbrowser import which may not be available in all Python builds (like certain NAS devices). 2015-09-17 21:04:10 +02:00
Jonathan Wong
fc75232519 Change group logic to use user_id instead of user 2015-09-16 11:52:00 -07:00
Jonathan Wong
c1b5514789 Add reference_id column to session_history
* Also update database with values from previous versions
2015-09-16 11:36:34 -07:00
Jonathan Wong
2d7585d64b Add tagline to movie info metadata 2015-09-06 12:31:50 -07:00
Tim
c2417de895 Add "Local" as the default unauthenticated user to the local database. 2015-08-29 00:18:09 +02:00
Tim
ad79d860db Allow the buffer warnings to be completely disabled by setting buffer threshold to 0.
Fix bug with buffer warnings where notification would trigger continuously after first trigger.
Fix bug where custom avatar URL would get reset on every user refresh.
2015-08-15 21:30:31 +02:00
Tim
a96482ee3c New pause, resume and buffer notification options.
Reworked notification config in settings menu.
2015-08-15 14:37:27 +02:00
Tim
0877a6bf21 Add per-user history logging toggle. Uncheck to disable history logging for specific user.
On SSL cert bypass check that the method is available before allowing.
2015-08-13 23:05:09 +02:00
Tim
de66480d5f Highlight the weekends on daily graphs.
Random bug fixes and cleanups.
2015-08-11 21:56:31 +02:00
Tim
f80429ef7a Don't thread before daemonising. 2015-08-04 22:22:42 +02:00
Tim
881b25a8d4 You can now toggle notifications per user from the users profile page.
The PlexWatch importer will now also import those users into the PlexPy db.
2015-07-26 00:34:34 +02:00
Tim
b394ebc1a3 Stage three of notification rewrite. Page cache refresh required.
Watched notifications added with configurable cutoff percent.
Styling fixes.
Add information back to settings page for required restart on web interface changes.
Use user_id on user link in activity pane.
Added channels option to Pushbullet.
Possible fix for text encoding issues in Plexwatch importer.
Thread the notifications.
Move most of the notification logic to the notification handler.
2015-07-24 00:53:31 +02:00
Tim
1c1ad5ab30 Numerous styling changes. Please refresh browser cache after update.
Add option on tables to show/hide columns.
Add option in settings to manually check for updates.
Add option in config to toggle github update checks.
Remove the hidden danger zone link to wipe database.
2015-07-19 13:00:44 +02:00
Tim
637339ea62 Fix SSL communication issues.
Add remote server switch in config.
Add compulsory server verification in settings.
Store the machine_id in settings for quick retrieval.
Add setup complete screen on setup wizard and increase delay.
Refresh server URL params on startup and set up 12 hourly refresh schedule.
Use outer join on history tables.
Add extra exception in http_handler to catch http requests trying to communicate with https-only server.
2015-07-17 16:48:47 +02:00
Tim
d216c0d76a Enable video logging by default.
Move database functions to its own file.
Incorporate datatables changes into original file and remove the test file.
Remove old plexWatch processing and db files and references.
2015-07-15 12:50:33 +02:00
Tim
4cde833f9d Lots of changes which will break things!
You can no longer use your PlexWatch db with PlexPy, import tool is included though.
Removed the need for separate PlexWatch database.
Created PlexWatch import tool (settings -> Monitoring)
Lots of re-writes to most pages.
2015-07-15 00:40:31 +02:00
Tim
2b317f6fd4 Log a full_title field into the metadata table.
Create a clear_all_history_new endpoint to delete all old PlexPy session history IMMEDIATELY.
Add icon in history_new to indicate if video was transcoded or not.
Replace relatively inaccurate percent_completed with icons in history_new.
2015-07-13 12:41:03 +02:00
Tim
06558a7437 Fix typo in settings.
Get the monitor paused counter functional.
2015-07-12 13:12:39 +02:00
Tim
9152fa01af VERY EXPERIMENTAL CHANGES!
History logging is now under the hood. Disabled by default.
Write new database tables and upgrade old ones.
Provide more detail to get_activity.
2015-07-11 22:10:45 +02:00
Tim
f5233ffed2 Add new configuration options.
Add new notification options.
Rewrite a bunch of the monitoring code.
Upgrade sessions table (again).
2015-07-10 23:17:16 +02:00
Tim
dcab175c18 Fix database check bug.
Some styling adjustments.
Use the proper image fallbacks.
2015-07-10 14:04:30 +02:00
Tim
ec3253afdb Update the watch monitor to enable us to do proper watch logging.
Upgrade sessions table
Correnty encode text lines from PMS log reader.
2015-07-10 12:59:20 +02:00
Tim
b4f1bddc02 Fix some log table styling.
Refresh user list on start-up and schedule refresh every 12 hours.
Handle malformed lines when reading Plex logs slightly more gracefully.
Send back empty list instead of None on some plex.tv requests.
2015-07-04 12:20:37 +02:00
Tim
349a850451 We're getting our own database!
First code for independent notifications (not linked to PlexWatch).
New notifications panel in Settings (many types still untested).
Standardise the parameters sent to current activity.
Remove notifiers we cannot use.
Styling fixes for sync tables.
2015-07-03 19:50:47 +02:00
Tim
2d822c8468 Fix bug with xml and unicode conversion.
Fix some minor front-end issues.
Initial work on new users table.
2015-07-01 19:51:42 +02:00
Tim
e7b305a1d5 Early implementation of friendly names. This be aware that this writes a new table to your plexWatch database.
Note: To edit friendly name, go to user page and click the pencil icon next to the user name. Currently only works on home stats and user info page.
Adjust some table styling issues.
Fix bug with user IP modal details not showing.
Fix users default list order.
2015-06-29 01:35:17 +02:00
Tim
4f1056cf87 Fix X-Plex-Client-Identifier to send unique id per client, not static value. 2015-06-28 14:28:26 +02:00
Tim
838ee5cae9 Improve graph tooltip
One checkbox to group them all
Do not cache graph data
Fix variable for db in init test
Remove superfluous includes
Remove superfluous debug logging
2015-06-24 17:35:41 +02:00
Tim
88daa3fb91 Initial Commit 2015-02-22 18:32:51 +02:00