Commit graph

271 commits

Author SHA1 Message Date
croneter
dfeba07ab6
Merge pull request #648 from croneter/user_fix
Fix TV sections not being deleted e.g. after user switch
2019-01-30 18:27:12 +01:00
croneter
c388789fbd Add error notification is full sync is unsuccessful 2019-01-30 18:05:28 +01:00
croneter
a279cf5198 Fix deleting entire Plex library sections
Typo plex_type - section_type
2019-01-30 15:54:13 +01:00
croneter
dcff85e203 Fix TV sections not being deleted e.g. after user switch 2019-01-30 10:58:20 +01:00
croneter
b5d0e4f428
Merge pull request #640 from croneter/fix_kodi_fileid
Fix KeyError: u'kodi_fileid' for some Plex websocket messages
2019-01-29 08:27:05 +01:00
croneter
3450bc5294 Don't lock Plex DB when processing websocket messages 2019-01-29 08:09:42 +01:00
croneter
91fe4f827d Fix KeyError: u'kodi_fileid' for some Plex websocket messages 2019-01-29 08:05:15 +01:00
croneter
0278e16de0
Merge pull request #635 from croneter/fix_slow_playback_startup
Hopefully fix slow playback startup just after Kodi startup
2019-01-28 20:22:05 +01:00
croneter
ee805301a3
Merge pull request #630 from croneter/operationalerror
Fix OperationalError: no such table on database reset
2019-01-28 20:21:25 +01:00
croneter
652a43e05c Reduce batch size for processing playstate to 10% 2019-01-28 18:11:44 +01:00
croneter
a3d2c5530c Fix OperationalError: no such table on database reset 2019-01-27 13:31:59 +01:00
croneter
352402bc35 Revert "Refresh Kodi view only once on full syncs"
This reverts commit b86a6549ac.
2019-01-26 17:18:48 +01:00
croneter
04da3572cb Fix rare KeyError if user is playing something somewhere else 2019-01-19 09:22:00 +01:00
croneter
3b9fce7470 Fix some items rarely not being synced 2019-01-17 18:05:02 +01:00
croneter
889b6094d9 Ignore playstate updates for full sync time stamps croneter committed 2019-01-17 17:49:00 +01:00
croneter
b86a6549ac Refresh Kodi view only once on full syncs 2019-01-17 17:36:26 +01:00
croneter
e255958b57 Fix playback not starting for really large libraries
- Partially fixes #599
2019-01-14 18:22:31 +01:00
croneter
4d17a9747f Fix KeyError due to malformed PMS messages
- Fixes #604
2019-01-13 17:57:48 +01:00
croneter
262a2dda21 New option to not use Plex artwork 2019-01-04 20:38:45 +01:00
croneter
3d4ba1e165 Increase database resiliance with sqlite WAL mode 2019-01-04 18:02:58 +01:00
croneter
1ab9ff7790 Catch sqlite OperationalError for websocket messages
- Hopefully fixes #580
2019-01-01 12:51:33 +01:00
croneter
50686ae191 Fix database is locked
- Fixes #580
2018-12-25 19:12:49 +01:00
croneter
4ee828dfe9 Move function 2018-12-25 18:26:13 +01:00
croneter
825237dfed Close sync dialog if video playback starts 2018-12-21 17:00:51 +01:00
croneter
519c9675ae Finish full syncs during playbacks, don't start new ones 2018-12-21 16:53:53 +01:00
croneter
8803d3353c Fix some very few items not being synced 2018-12-21 15:36:14 +01:00
croneter
5d6b8f1273 Fix many items not getting synced 2018-12-21 15:18:06 +01:00
croneter
1a46664051 Fix permanent missing library items if PMS failed to send a single response 2018-12-10 20:00:48 +01:00
croneter
74e801cf4d Remove cProfile program metrics measurements 2018-12-10 07:32:57 +01:00
croneter
d406843e78 Fix Plex sections not showing up or disappearing 2018-12-09 19:21:02 +01:00
croneter
3a73b9de44 Fix AttributeError 2018-12-09 17:23:43 +01:00
croneter
70cf483fe2 Do a Kodi library update after synching new/changed items 2018-12-09 16:16:26 +01:00
croneter
2baafa77bb Shut down download threads as soon as they're done 2018-12-09 16:15:37 +01:00
croneter
aeda4d97ba Remove obsolete code 2018-12-09 15:56:48 +01:00
croneter
27d34167e9 Fix current sync progress for more than 2000 items 2018-12-09 14:23:01 +01:00
croneter
d33ba7e502 Rewire library sync 2018-12-09 13:02:08 +01:00
croneter
e9f811f2cd Ignore PMS messages related to set/collections 2018-12-02 13:20:18 +01:00
croneter
861af0f170 Further optimize sync speed 2018-12-02 10:13:27 +01:00
croneter
7fce226d47 Fix items getting deleted on subsequent sync 2018-12-01 18:50:52 +01:00
croneter
056463da55 Revert "Attempt to fix items getting deleted on second sync"
This reverts commit 459bd72299.
2018-12-01 18:43:47 +01:00
croneter
459bd72299 Attempt to fix items getting deleted on second sync 2018-12-01 18:43:42 +01:00
croneter
a776f940de Remove obsolete code 2018-12-01 16:52:22 +01:00
croneter
07cf25b324 Get section overview xml asynchronously 2018-12-01 11:14:12 +01:00
croneter
abfb386e13 Fix FutureWarning 2018-12-01 09:05:45 +01:00
croneter
36d14ffdcf Optimize join() 2018-11-26 19:47:41 +01:00
croneter
9261a8b143 Increase queue size 2018-11-26 19:40:56 +01:00
croneter
ccdb76709e Fix OperationalError: Database is locked 2018-11-26 19:40:43 +01:00
croneter
55ec381bfe Fix sync not correctly being canceled 2018-11-26 17:58:15 +01:00
croneter
4515559dff Fix AttributeError 2018-11-26 17:32:21 +01:00
croneter
202d33d7c0 Fix video library sometimes not updating 2018-11-25 20:36:54 +01:00
croneter
2ceb0cd7a2 Fix sync error when only an item is deleted in section 2018-11-25 20:31:40 +01:00
croneter
697b66167c Fix deleting entire library sections 2018-11-25 20:15:38 +01:00
croneter
90e13cb8ee Fix TypeError upon removing entire section 2018-11-25 19:53:42 +01:00
croneter
81de319715 Fix more AttributeErrors 2018-11-25 17:29:21 +01:00
croneter
09f0492fa4 Fix AttributeErrors 2018-11-25 17:27:22 +01:00
croneter
7670aa7a14 Fix OperationalError: Database is locked when video was deleted 2018-11-25 17:21:32 +01:00
croneter
6dc436da91 Rewire PKC startup and authentication mechanism 2018-11-25 17:03:19 +01:00
croneter
9d6f729b21 Fix OperationalError: database is locked 2018-11-22 08:29:14 +01:00
croneter
d2922d61f5 Fix AttributeError 2018-11-22 08:04:41 +01:00
croneter
fddd374b79 Fix some TypeErrors 2018-11-21 20:20:06 +01:00
croneter
ce191f6eeb Fix ProgrammingError: Cannot operate on a closed database 2018-11-20 19:23:42 +01:00
croneter
d668b3e640 Warn user and stop sync if crash occurs 2018-11-20 18:28:34 +01:00
croneter
3acaad5663 Fix exceptions not being raised during sync 2018-11-20 18:08:51 +01:00
croneter
6fe0e23f53 Interrupt sleep if Kodi exits. Use Monitor's Player() 2018-11-20 16:58:25 +01:00
croneter
a045063769 Rather big change of PKC's plumbing 2018-11-18 14:59:17 +01:00
croneter
b2615c19bd Fix fanart download message showing up too often 2018-11-13 16:30:05 +01:00
croneter
5c7968abdb Ensure that fanart sync closes DB connection during playback 2018-11-13 15:01:31 +01:00
croneter
789b214b50 Suspend fanart sync during playback 2018-11-13 14:54:54 +01:00
croneter
0c9e544e9e Suspend fanart sync if another sync is running 2018-11-13 14:48:25 +01:00
croneter
2d5e22c146 Update sync progress string 2018-11-12 16:37:56 +01:00
croneter
bc7fc4db1b Fixes to XML download iterator 2018-11-11 17:48:11 +01:00
croneter
8535852699 Optimize code 2018-11-11 12:53:49 +01:00
croneter
54113a715b Fix AttributeError 2018-11-11 09:28:18 +01:00
croneter
afedf03ac9 New method for DB commit 2018-11-11 09:23:51 +01:00
croneter
6de47490c3 Revert "Wrap Kodi DB transactions explicitly"
This reverts commit be45d914d3.
2018-11-10 16:18:22 +01:00
croneter
be45d914d3 Wrap Kodi DB transactions explicitly 2018-11-10 16:09:06 +01:00
croneter
da7d871af8 Add Plex type to sync progress bar 2018-11-09 15:05:17 +01:00
croneter
d16da6fa6f Fix OperationalError: database is locked 2018-11-09 11:19:32 +01:00
croneter
76728d7319 Pass plex_type with section 2018-11-09 09:10:22 +01:00
croneter
5b85b2b71a Enable cProfiling for full sync 2018-11-09 09:08:04 +01:00
croneter
4e1f975647 Fix ValueError for queue on Kodi exit 2018-11-09 09:07:46 +01:00
croneter
0b81fcd39c Fix sync progress 2018-11-09 09:05:14 +01:00
croneter
7830a0e0e3 Let full_sync finish gracefully on Kodi exit 2018-11-09 08:56:57 +01:00
croneter
e37223f016 Fix full_sync advancing before a section was synced 2018-11-09 08:44:05 +01:00
croneter
a16eae143a Rewire kodi database access 2018-11-08 21:22:16 +01:00
croneter
8ef0af3ec7 Commit DB changes for every 200 items 2018-11-07 10:41:40 +01:00
croneter
0db29dd568 Get movie set information asynchronously 2018-11-07 10:37:32 +01:00
croneter
923c413921 Add fallback if checksum updatedAt is missing 2018-11-07 07:45:19 +01:00
croneter
440f399917 Fix TypeError 2018-11-06 14:13:28 +01:00
croneter
41ec923a30 Fix KeyErrors 2018-11-06 14:08:14 +01:00
croneter
3123af6426 Use a dedicated full sync thread manager
- Prevents threads from restarting all the time
2018-11-06 11:17:21 +01:00
croneter
7180595e05 Correctly show the current sync item number 2018-11-05 18:31:59 +01:00
croneter
bc1ad1d998 Prevent error message upon DB reset 2018-11-05 18:31:26 +01:00
croneter
07c4d64a84 Rewire artwork caching 2018-11-05 18:00:01 +01:00
croneter
30d85eebc0 Fix FanartThread isSuspended 2018-11-05 14:34:34 +01:00
croneter
8205e19668 Let the Kodi library update after a full sync 2018-11-05 13:53:57 +01:00
croneter
0536a7c151 Don't spawn a separate full sync thread 2018-11-05 13:52:31 +01:00
croneter
b7a6a58da3 Fix some more errors: Item not yet synced 2018-11-05 12:28:05 +01:00
croneter
263b7d7684 Fix TypeError 2018-11-05 12:24:18 +01:00
croneter
d2dd631b4b Fix some "Item not yet synced" errors for playstate updates 2018-11-05 12:19:08 +01:00
croneter
c9b6e67771 Optimize music sync 2018-11-05 09:39:33 +01:00
croneter
48a530b49a More hacking 2018-11-04 16:53:42 +01:00
croneter
2fcb43b9d9 PEP8 2018-11-03 18:47:51 +01:00
croneter
bfef7a346e Refresh progress bar for every single item 2018-11-03 17:18:25 +01:00
croneter
b3eeabc9ad Fix AttributeError: __exit__ 2018-11-03 17:04:24 +01:00
croneter
4cbad1f1f7 Enable notify for crashes for fanart 2018-11-03 16:53:56 +01:00
croneter
5673abc19b Rewire fanart sync 2018-11-03 10:36:37 +01:00
croneter
835c047fb1 Rename logging 2018-11-01 15:43:43 +01:00
croneter
aabdf15072 Rewire websocket sync 2018-11-01 15:43:27 +01:00
croneter
fbaccdf4bf Fix TypeError 2018-10-29 13:26:58 +01:00
croneter
ce002a0fa8 Improve the checking of an item's checksum 2018-10-29 13:26:14 +01:00
croneter
3d77bd64d1 Add missing method 2018-10-28 17:02:06 +01:00
croneter
01fc08b027 Fix TypeError: 'InitNewSection' object has no attribute 2018-10-28 16:50:00 +01:00
croneter
facf2d5e2d PEP8 2018-10-28 16:17:20 +01:00
croneter
17a7d306ae Fix AttributeError 2018-10-28 16:14:37 +01:00
croneter
60f7d0fce2 Don't cast to unicode 2018-10-25 18:28:41 +02:00
croneter
0dfcebbee3 Fix TypeError 2018-10-25 18:17:00 +02:00
croneter
7640f1e2d2 Fix process_metadata and get_metadata 2018-10-25 18:14:35 +02:00
croneter
d5f4ad3e62 Fix AttributeError for Tasks 2018-10-25 17:50:59 +02:00
croneter
b7aedca7fa Add missing method 2018-10-25 16:07:34 +02:00
croneter
3a411cc36b Fix TypeError 2018-10-25 15:57:12 +02:00
croneter
4b7eace923 Fix AttributeError 2018-10-25 15:55:46 +02:00
croneter
eee4554213 Fix KeyErrors 2018-10-25 15:54:22 +02:00
croneter
587df50c54 Fix AttributeError 2018-10-25 13:27:12 +02:00
croneter
dfccefe2e8 Fix UnboundLocalError 2018-10-25 13:25:25 +02:00
croneter
14f7b56b08 Fix TypeError 2018-10-25 13:22:34 +02:00
croneter
ff73318157 Less logging 2018-10-25 13:21:24 +02:00
croneter
59dc295dc8 Fix AttributeError 2018-10-25 13:20:46 +02:00
croneter
9bab18367c Fix turning generator into list 2018-10-25 13:19:46 +02:00
croneter
a060b1fcaa Simplify call of SectionItems download 2018-10-25 13:05:26 +02:00
croneter
91533aa89f Fix time sync not downloading items 2018-10-25 13:02:36 +02:00
croneter
3558182b7e Fix AttributeError: 'super' object has no attribute 2018-10-24 18:08:00 +02:00
croneter
e74a4ba2e9 Fix ImportError 2018-10-24 17:59:41 +02:00
croneter
ae37e21aeb Fix AttributeError 2018-10-24 17:56:59 +02:00
croneter
b94952ba4a Fix ImportError 2018-10-24 17:55:56 +02:00
croneter
c7e7ac65a4 Fix ImportError 2018-10-24 17:55:04 +02:00
croneter
31a0939b42 Fix SyntaxError 2018-10-24 17:54:10 +02:00
croneter
4246711b1e Remove old plexdb_functions 2018-10-24 17:17:02 +02:00
croneter
f520cebf66 Rewire llibrary sync, part 6 2018-10-24 10:57:52 +02:00
croneter
2f96749fc7 Rewire llibrary sync, part 5 2018-10-24 07:08:32 +02:00
croneter
23dada9fe5 Rewire llibrary sync, part 4 2018-10-23 13:54:09 +02:00
croneter
35a25a7f15 More hacking 2018-10-21 18:32:11 +02:00
croneter
e935b7c97b Rewire llibrary sync, part 3 2018-10-21 16:56:13 +02:00
croneter
3f4c43e373 Rewire llibrary sync, part 2 2018-10-21 12:03:21 +02:00
croneter
e6692a9012 Rewire llibrary sync, part 1 2018-10-20 14:49:04 +02:00
croneter
4b3f641f25 Revert "Fix Kodi crash by committing to DB frequently"
This reverts commit 535163b675.
2018-09-02 18:18:45 +02:00
croneter
535163b675 Fix Kodi crash by committing to DB frequently
- Hopefully fixes #531
2018-08-30 12:27:16 +02:00
croneter
f0db5a82f8 Fix rare library sync crash
- Fixes #513
2018-07-27 13:38:41 +02:00
croneter
4e0429fcc9 Fix switching to __future__ module
- Fixes #507
2018-07-12 18:46:02 +02:00
croneter
1626436094 Fix FutureWarning 2018-07-10 20:28:06 +02:00