Commit graph

4543 commits

Author SHA1 Message Date
croneter
fd542936b8 Increase max number of threads to 30 2018-11-09 09:53:13 +01:00
croneter
0255bd3584 Rename method 2018-11-09 09:48:04 +01:00
croneter
ab718bae2a Optimize sync of video filename 2018-11-09 09:26:54 +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
c8e8e04697 Speed up sync of actor artwork 2018-11-09 08:02:04 +01:00
croneter
463d0540a4 Speed up sync with dedicated add_artwork method 2018-11-09 07:56:10 +01:00
croneter
096af4dc7c Simplify code 2018-11-09 07:42:47 +01:00
croneter
5f57b0af5f Greatly speed up sync with dedicated add_people method 2018-11-08 21:40:19 +01:00
croneter
a16eae143a Rewire kodi database access 2018-11-08 21:22:16 +01:00
croneter
150229061b Reduce Python DB overhead 2018-11-08 15:15:52 +01:00
croneter
2319d2fc9c Further speed up add_file 2018-11-07 13:37:37 +01:00
croneter
05c96dc1c6 Speed up idPath look-up 2018-11-07 13:33:16 +01:00
croneter
3d837fcf33 Enable PKC to use Kodi DB index "ix_files" 2018-11-07 13:31:38 +01:00
croneter
015451d2fd Speed up Plex API 2018-11-07 12:08:35 +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
e460aea7e8 Do not catch exceptions if checksum calc goes awry 2018-11-07 07:46:20 +01:00
croneter
923c413921 Add fallback if checksum updatedAt is missing 2018-11-07 07:45:19 +01:00
croneter
009fc9937a Fix OperationalError when trying to wipe empty Plex DB 2018-11-06 20:33:05 +01:00
croneter
a5ce8e0a93 More thorough cleanup upon PKC first run 2018-11-06 20:24:36 +01:00
croneter
a81fd527c1 Be smart when wiping Kodi DBs: only wipe music if necessary 2018-11-06 20:22:30 +01:00
croneter
20f26364b8 Enforce plex id type int 2018-11-06 19:06:48 +01:00
croneter
c996e5c9be Allow float offset values 2018-11-06 19:03:01 +01:00
croneter
f767342e13 Introduce properties for playqueue items 2018-11-06 19:01:56 +01:00
croneter
30a1a0a70c Fix TypeErrors 2018-11-06 18:21:14 +01:00
croneter
ff6f056bca Fix Plex Companion seeking 2018-11-06 18:16:32 +01:00
croneter
a75afc109c Fix TypeError for selecting Plex media streams 2018-11-06 15:12:17 +01:00
croneter
440f399917 Fix TypeError 2018-11-06 14:13:28 +01:00
croneter
b08b3dc443 Fix TypeError 2018-11-06 14:11:47 +01:00
croneter
41ec923a30 Fix KeyErrors 2018-11-06 14:08:14 +01:00
croneter
892a1afdcb Fix KeyError 2018-11-06 13:50:46 +01:00
croneter
06d00b2a12 Use Kodi hostname as Plex Companion friendly name 2018-11-06 13:43:40 +01:00
croneter
52a225eb92 Fix setting int/float ListItem property 2018-11-06 13:02:10 +01:00
croneter
df6cb5718a Fix casting of int/float to str or unicode 2018-11-06 12:41:06 +01:00
croneter
2e8be9ec6b Fix AttributeErrors 2018-11-06 12:35:02 +01:00
croneter
b7fa4f2c7b Fix playback receiving string plex id, not int 2018-11-06 12:33:02 +01:00
croneter
1b94e23386 Fix worker quitting prematurely 2018-11-06 11:30:04 +01:00
croneter
3414a0a688 Fix SyntaxError 2018-11-06 11:20:20 +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
0fa8fe1144 Fix AttributeError on PKC DB reset 2018-11-05 18:18:46 +01:00
croneter
e4c9a7a259 Optimize sync loop 2018-11-05 18:13:57 +01:00
croneter
d44d6983b3 Remove obsolete code 2018-11-05 18:02:37 +01:00
croneter
07c4d64a84 Rewire artwork caching 2018-11-05 18:00:01 +01:00
croneter
e761567592 Rewire image caching thread 2018-11-05 15:23:51 +01:00
croneter
30d85eebc0 Fix FanartThread isSuspended 2018-11-05 14:34:34 +01:00
croneter
03fb6506f4 PEP8 2018-11-05 14:18:52 +01:00
croneter
58d34e75f0 Move start of image caching thread to sync 2018-11-05 14:17:48 +01:00
croneter
99d0fe7538 Add missing notification text 2018-11-05 14:13:25 +01:00
croneter
2ffd4491cf Fix sync isSuspended 2018-11-05 14:10:43 +01:00
croneter
f321baab82 Code cleanup 2018-11-05 14:03:19 +01:00
croneter
6e83a549d3 Enable user setting for number of sync threads 2018-11-05 14:03:07 +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
0d5f59ab84 Less logging 2018-11-05 13:02:11 +01:00
croneter
b29b80ebe3 Less logging 2018-11-05 13:01:22 +01:00
croneter
b781a764ef Less logging 2018-11-05 13:00:26 +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
48b78fe73f Fix some errors: Item not yet synced 2018-11-05 11:49:00 +01:00
croneter
49b75d89c0 Less logging 2018-11-05 11:20:00 +01:00
croneter
16b59d7cbe Revert "Revert "Less logging""
This reverts commit fcb580a62a.
2018-11-05 11:17:21 +01:00
croneter
fcb580a62a Revert "Less logging"
This reverts commit a4bd3e469f.
2018-11-05 11:08:20 +01:00
croneter
a4bd3e469f Less logging 2018-11-05 11:07:57 +01:00
croneter
8ea787cc49 Less logging 2018-11-05 10:47:48 +01:00
croneter
35c87856fd Fix TypeError 2018-11-05 10:10:42 +01:00
croneter
417aefd588 Fix endless music sync loop 2018-11-05 09:52:18 +01:00
croneter
66ecaa155f Further optimize music sync 2018-11-05 09:51:21 +01:00
croneter
c9b6e67771 Optimize music sync 2018-11-05 09:39:33 +01:00
croneter
0b5fcb855c Fix OperationalError: no such column: Userrating 2018-11-04 17:47:40 +01:00
croneter
e8621acdf3 Fix OperationalError no such table 2018-11-04 17:44:06 +01:00
croneter
f8c6b21f51 Optimize logging 2018-11-04 17:33:55 +01:00
croneter
120a616331 Optimize code 2018-11-04 17:31:04 +01:00
croneter
0fa72faf61 Increase season sync resiliance 2018-11-04 17:28:22 +01:00
croneter
7f431f1923 Increase episode sync resiliance 2018-11-04 17:26:08 +01:00
croneter
2917bc982f Speed-up looking up of existing episodes 2018-11-04 17:02:01 +01:00
croneter
91ea8c8d00 Fix AttributeError 2018-11-04 17:00:34 +01:00
croneter
9245f44f70 Fix KeyError 2018-11-04 16:56:29 +01:00
croneter
41b5ec1b8e Fix KeyError 2018-11-04 16:55:24 +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
8bffc5a30f Fix OperationalError: Database is locked and heavily speed up sync 2018-11-03 18:40:11 +01:00
croneter
9c3c8b0d35 Fix log typo 2018-11-03 18:38:51 +01:00
croneter
bfef7a346e Refresh progress bar for every single item 2018-11-03 17:18:25 +01:00
croneter
85c5e15b91 Less logging 2018-11-03 17:10:14 +01:00
croneter
f32d1dde0f Less logging 2018-11-03 17:05:52 +01:00
croneter
b3eeabc9ad Fix AttributeError: __exit__ 2018-11-03 17:04:24 +01:00
croneter
2d0869b589 PEP8 2018-11-03 16:59:59 +01:00
croneter
80691861f8 Add lookup for audio types 2018-11-03 16:59:46 +01:00
croneter
b9a8d66e3d Fix KeyError 2018-11-03 16:56:51 +01:00
croneter
4cbad1f1f7 Enable notify for crashes for fanart 2018-11-03 16:53:56 +01:00
croneter
d0d6798bb1 Simplify code 2018-11-03 10:39:49 +01:00
croneter
335c0175a7 Fix KeyErrors 2018-11-03 10:37:10 +01:00
croneter
5673abc19b Rewire fanart sync 2018-11-03 10:36:37 +01:00
croneter
c967cfc8b1 Fix TypeError 2018-11-01 15:43:52 +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
146290c03e Switch to xbmc.abortRequested to terminate PKC 2018-10-31 15:35:44 +01:00
croneter
28a38c63a1 Fix OperationalError: near "1": syntax error 2018-10-29 13:35:46 +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
8c3764e8ad Fix OperationalError: no such table: artist 2018-10-29 13:21:35 +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
8f86fc1038 Fix AttributeError 2018-10-25 18:29:47 +02: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
c10afd1920 Fix AttributeError 2018-10-25 18:16:01 +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
62c07b2ee0 Remove obsolete code 2018-10-25 16:07:56 +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
a603fbadca Drop Plex tables entirely on DB reset; no further version check needed 2018-10-25 12:55:25 +02:00
croneter
c2efe0d57f Optimize sync startup 2018-10-25 12:46:57 +02:00
croneter
2a97678ba4 Compare Plex DB version separately 2018-10-25 08:43:47 +02:00
croneter
e0fdfac063 Check Plex DB version and force-reset if necessary 2018-10-24 18:40:44 +02:00
croneter
3558182b7e Fix AttributeError: 'super' object has no attribute 2018-10-24 18:08:00 +02:00
croneter
a9138cbd71 Fix OperationalError 2018-10-24 18:07:51 +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
4edeaba365 Fix ImportError 2018-10-24 17:53:20 +02:00
croneter
8799ec8592 Fix IndentationError 2018-10-24 17:51:43 +02:00
croneter
3bc1caebca Require database reset 2018-10-24 17:23:38 +02:00
croneter
842df1773f Rename librarysync 2018-10-24 17:19:36 +02:00
croneter
4246711b1e Remove old plexdb_functions 2018-10-24 17:17:02 +02:00
croneter
e7899d656d Remove old itemtypes 2018-10-24 15:23:38 +02:00
croneter
205dc3fab8 Rewire llibrary sync, part 7 2018-10-24 15:20:25 +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
3c6979813b Add download generator 2018-10-14 19:59:11 +02:00
croneter
02b20a9b74 Catch ParseError from defusedxml correctly 2018-10-14 12:15:09 +02:00
croneter
76fbf3ac83 Fix cElementTree TypeError: cannot serialize 2018-10-14 12:14:41 +02:00
croneter
36c627651e Fix cElementTree TypeError: cannot serialize 2018-10-14 12:13:52 +02:00
croneter
6021407929 Revert "Optimize code"
This reverts commit c5e1d7a7df.
2018-10-14 12:01:15 +02:00
croneter
e45a133f51 Fix cElementTree TypeError: cannot serialize 2018-10-14 11:48:44 +02:00
croneter
c5e1d7a7df Optimize code 2018-10-14 11:47:33 +02:00
croneter
8199c2ce5b Fix PEP-8 2018-10-14 11:12:48 +02:00
croneter
c2c13b715d Fix typo 2018-10-14 11:12:08 +02:00
croneter
740cc5a6ff Fix NameError 2018-10-13 20:28:55 +02:00
croneter
c5741c7225 Use xml.etree.cElementTree whenever possible to avoid memory leaks 2018-10-13 20:17:16 +02:00
croneter
770b3704e8 Fix Kodi crashing due to PKC memory leak
- Fixes #531
2018-10-13 14:43:44 +02:00
croneter
6be1f40373 Try to fix PKC for Enigma 2
- Hopefully fixes #545
2018-10-10 19:26:35 +02:00
croneter
d09933a68a PEP8 2018-10-10 19:19:30 +02:00
croneter
25675a9136 Optimize resetting of Kodi and Plex databases
- Fixes #527
2018-10-10 19:18:06 +02:00
croneter
c9341169c3 Increase logging 2018-10-07 17:52:38 +02:00
croneter
27e92afe02 Make sure we retain a dummy first music artist entry
- Hopefully fixes #527
2018-10-07 17:47:32 +02:00
croneter
594e908508 Fix PKC not starting up on Enigma
- Fixes #545
2018-10-07 17:12:30 +02:00
croneter
6718182411 Fix sync issues if video lies in root of file system
- Fixes #544
- Manual Kodi database reset is necessary
2018-10-07 17:07:45 +02:00
croneter
8d9d135595 Wipe Kodi database on first PKC run
- Fixes #543
2018-10-06 15:47:41 +02:00
croneter
ab81c88b8f Fix flickering Kodi screen 2018-10-06 14:45:01 +02:00
croneter
8e1b3444ac Rewire Kodi library refreshs 2018-10-06 14:40:14 +02:00
croneter
9f35e1d99e Fix playback not starting up at all 2018-10-06 13:30:43 +02:00
croneter
0d0a5948ac Fix rare case when playback would not start-up 2018-10-04 19:48:13 +02:00
croneter
be57db9200 Increase logging 2018-10-04 19:45:44 +02:00
croneter
7b4e7cbb22 Fix Kodi addons throwing jsonrpc errors (database reset needed)
- Fixes #539
2018-09-29 16:51:51 +02:00
croneter
c6e1a7029a Fix numbering of already existing playlist files 2018-09-23 16:03:50 +02:00
croneter
5fabaf6a8e Hopefully fix endless playlist sync loops 2018-09-23 15:06:41 +02:00
croneter
21fb1ad015 Ensure shows are deleted before seasons before episodes 2018-09-23 13:52:08 +02:00
croneter
35d0f6a49d Fix library sync crash on deleting episode with missing season 2018-09-23 13:45:57 +02:00
croneter
cbcdc74a8c Fix Typo 2018-09-22 12:07:30 +02:00
croneter
88ebf718d5 Optimize logging 2018-09-22 12:06:02 +02:00
croneter
e38d50bc54 Move PKC info label on user selection screen 2018-09-18 16:34:49 +02:00
croneter
e3328ad061 Switch to Plex style dialogs 2018-09-18 16:26:40 +02:00
croneter
e9e1b7b7de Revert "Change optionsdialog import behavior"
This reverts commit ad444a5da0.
2018-09-18 16:20:24 +02:00
croneter
ad444a5da0 Change optionsdialog import behavior 2018-09-18 14:18:07 +02:00
croneter
759ea44ad4 Include PKC info in plex.tv dialogs 2018-09-18 11:38:03 +02:00
croneter
f8218ffa4c Include PKC info in user selection dialog 2018-09-18 11:14:54 +02:00
croneter
6666d3fc3a Fix AttributeError on forcing texture caching 2018-09-17 18:13:33 +02:00
croneter
e1c01b184b Don't show a pre-sign-in dialog 2018-09-16 17:29:18 +02:00
croneter
dd62cded43 Simplify code 2018-09-16 17:18:46 +02:00
croneter
c6073e2426 Fix user not being able to close dialog 2018-09-16 17:18:37 +02:00
croneter
1fe244e8a6 Use Plex dialog 2018-09-16 16:13:08 +02:00
croneter
c4f6a441b6 Fix Info screen not returning 2018-09-16 16:08:44 +02:00
croneter
c7bb333e97 Fix AttributeError 2018-09-16 14:02:27 +02:00
croneter
4cf191cbb4 Switch paths 2018-09-16 14:00:52 +02:00
croneter
1a4135c6a4 Fix add-on settings not opening on installation 2018-09-16 13:35:07 +02:00
croneter
9dc86c9731 Fix UnicodeDecodeError for PMS with non ASCII chars 2018-09-16 13:33:20 +02:00
croneter
a82fda85ca New Plex.tv sign-in dialogs 2018-09-16 13:25:15 +02:00
croneter
3110d8c0ee Use Plex dialogs for initial PKC set-up 2018-09-15 16:53:06 +02:00
croneter
93fd45a4e1 Add new Plex yes-no dialog 2018-09-15 16:30:17 +02:00
croneter
029ea93268 Translate Plex info dialog button text 2018-09-15 16:15:14 +02:00
croneter
038bce1a27 Use Plex dialog 2018-09-15 16:12:10 +02:00
croneter
a7791bad0a Don't show a warning if user aborted user selection 2018-09-15 16:08:51 +02:00
croneter
2b684941b7 Merge branch 'savage93-master' into beta-version 2018-09-15 15:55:27 +02:00
croneter
1bf98cb27e Greatly speed up deleting of items on the Kodi side 2018-09-15 15:50:59 +02:00
croneter
3088078ff8 Fix empty pin entry field showing up 2018-09-15 15:46:06 +02:00
croneter
b5524d1206 Optimize code 2018-09-15 15:16:59 +02:00
croneter
0147e29cef Only try user login once 2018-09-15 15:15:28 +02:00
croneter
82a7e021ef Make home button close user selection dialog 2018-09-15 15:07:57 +02:00
croneter
6a32fd2c33 Enlargen home button 2018-09-15 14:24:14 +02:00
croneter
66d5ae1347 Replace power button with home button 2018-09-15 13:51:45 +02:00
savage93
e26753cc0c Translated recently added strings 2018-09-14 20:32:55 +02:00
croneter
98e38ae9a8 Add Plex dialog to switch users 2018-09-10 20:53:46 +02:00
croneter
233f6065ee Add Plex artwork and xml 2018-09-09 12:02:57 +02:00
croneter
b29e07846f Safely parse XMLs using defusedxml 2018-09-05 17:36:38 +02:00
croneter
0933dea407 Simplify code 2018-09-04 16:54:06 +02:00
croneter
d63f976da4 Update docstrings 2018-09-04 16:43:16 +02:00
croneter
7fe12968a1 Fix PKC trying to sync audio playlists even when audio sync disabled 2018-09-04 16:32:39 +02:00
croneter
cda881c25c Fix potential sync crash 2018-09-02 20:34:44 +02:00
croneter
e14994cf74 Fix Kodi hanging if media stream selection is aborted 2018-09-02 19:40:56 +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
db5857f1aa Update translations 2018-08-29 16:55:16 +02:00
croneter
456c0401cd Compatibility with Kodi Leia Beta 1 2018-08-29 16:33:36 +02:00
croneter
c2d9470fe9 Remove obsolete command 2018-08-23 15:49:01 +02:00
croneter
9a8fcbb8a5 Fix playback not resuming (Kodi 18 ignores listitem "StartOffset")
- Fixes #525
2018-08-23 15:23:38 +02:00
croneter
229a04e65b Less logging 2018-08-23 15:18:55 +02:00
croneter
e3a209c24b Fix playerid not being retrieved for Kodi 18 2018-08-23 15:16:23 +02:00
croneter
ce4ca71766 Fix typos 2018-08-23 13:33:08 +02:00
croneter
ac2a57b28d Prefer local trailers; new setting to list extras instead of playing trailer
- Fixes #515
2018-08-13 20:26:36 +02:00
croneter
abca9c32f9 Update translations 2018-08-10 08:49:52 +02:00
croneter
3b60e6ffd2 Fix Typo 2018-08-09 07:45:10 +02:00
croneter
3bd9b3b5a4 Force-deactivate playlist sync for Microsoft UWP for Kodi 18
- Fixes #521
2018-08-07 20:02:44 +02:00
croneter
3fd40b64c6 Fix library sync crash due to exotic playlist characters
- Fixes #523
2018-08-07 18:11:23 +02:00
croneter
5003fd87c9 Fix PKC not starting by decoupling watchdog/subprocess modules
- Fixes #521
2018-08-06 07:53:30 +02:00
croneter
57e064efa2 Log whether playlist sync is activated 2018-08-05 18:13:16 +02:00
croneter
53c10b0847 Fix PKC not starting by importing playlist module only when sync enabled
- Fixes #521
2018-08-05 18:10:18 +02:00
croneter
11a66a8465 Fix playback sometimes not starting and UnicodeEncodeError for logging
- Fixes #520
2018-08-05 14:44:24 +02:00
croneter
f5ea8cc3ec Choose trailer if several are present (DB reset required)
- Fixes #515
2018-08-04 15:11:21 +02:00
croneter
3f6f557dc3 Fix casting to PKC failing 2018-08-03 20:45:10 +02:00
croneter
8322609ef9 Fix library sync crashing due to Plex photo albums
- Fixes #517
2018-08-03 18:37:16 +02:00
croneter
5eafcbafb1 Move PKC playlist shortcut 2018-07-30 13:20:40 +02:00
croneter
ce30a3f03f Fix PKC tv show node "all" 2018-07-30 13:04:51 +02:00
croneter
5968e845d2 Access Plex Hubs. Listing will be different depending on Kodi section! 2018-07-27 16:01:27 +02:00
croneter
04725a8aca Fix year for songs missing
- Fixes #514
2018-07-27 14:49:30 +02:00
croneter
1ca9099a0e Fix Plex extras not playing
- Fixes #515
2018-07-27 14:05:44 +02:00
croneter
f0db5a82f8 Fix rare library sync crash
- Fixes #513
2018-07-27 13:38:41 +02:00
croneter
25d80521c7 Enable Kodi libraries for Plex Music libraries 2018-07-24 21:04:31 +02:00
croneter
777b9e15e4 Delete obsolete code 2018-07-19 15:30:52 +02:00
croneter
ad3c0a51d5 Increase logging for browsing 2018-07-19 15:07:08 +02:00
croneter
ccd953704e Only show Plex libraries in the applicable Kodi media category 2018-07-19 15:02:21 +02:00
croneter
1721aad580 Turn private into public method 2018-07-19 14:54:46 +02:00
croneter
232d3a3199 Optimize code 2018-07-19 14:53:16 +02:00
croneter
30f7cdf701 Less logging 2018-07-19 14:52:07 +02:00
croneter
6957b9a522 Retrieve strings from Kodi if no string is found for PKC 2018-07-19 13:54:36 +02:00
croneter
6e6d6cc110 New Playlists menu item for video libraries 2018-07-17 13:48:09 +02:00
croneter
38f5f9c694 Fix ImportError on first PKC run 2018-07-16 16:06:20 +02:00
croneter
06bfb95623 Hopefully fix playlist sync loops 2018-07-15 19:20:51 +02:00
croneter
59a64d227d Less logging 2018-07-13 07:31:21 +02:00
croneter
4e0429fcc9 Fix switching to __future__ module
- Fixes #507
2018-07-12 18:46:02 +02:00
croneter
141234c8b8 Fix "Prefer Kodi Artwork" toggle doing the exact opposite 2018-07-12 16:34:35 +02:00
croneter
726addd117 Fix "Prefer Kodi artwork" setting not being visible 2018-07-12 16:23:33 +02:00
croneter
61e185ae4f Improve logging 2018-07-12 10:50:45 +02:00
croneter
109fafcf4c Improve logging 2018-07-12 09:24:51 +02:00
croneter
1f5ce87bdc Improve logging for playlists 2018-07-12 07:58:48 +02:00
croneter
b8286c9b14 Fix KeyError on playlist full sync 2018-07-12 07:49:48 +02:00
croneter
c0d78bd273 Refactor code 2018-07-11 21:24:27 +02:00
croneter
e0108eeb89 Rewire partial playlist sync, part 2 2018-07-10 21:19:08 +02:00
croneter
f2d782c15a Fix slow sync. Fix endless sync of corrupted PMS elements
- Fixes #135
- Fixes #506
2018-07-10 20:37:26 +02:00
croneter
1626436094 Fix FutureWarning 2018-07-10 20:28:06 +02:00
croneter
ad54059289 Rewire partial playlist sync, part 1 2018-07-09 21:11:51 +02:00
croneter
2e0b23e299 Fix OnDeck widget for Direct Paths
- Fixes #505
2018-07-08 13:24:25 +02:00
croneter
c557cbdb93 Fix Plex Companion crashing when connected to Plex Web 2018-07-08 12:53:03 +02:00
croneter
bd34ee20e3 Revert "Fix Plex Companion crashing when connected to Plex Web"
This reverts commit baebd11825.
2018-07-08 12:46:22 +02:00
croneter
0d601d7309 Fix Plex Companion crash when connected to Plex Web playing playlist music 2018-07-08 12:37:38 +02:00
croneter
baebd11825 Fix Plex Companion crashing when connected to Plex Web 2018-07-08 12:28:28 +02:00
croneter
99ea9dd61f Improve Plex playback report when playing music playlist 2018-07-08 12:13:32 +02:00
croneter
9e7868141d Improve reliability in Kodi song playback 2018-07-08 11:52:59 +02:00
croneter
fcb5e131dc Less logging 2018-07-08 11:30:02 +02:00
croneter
e1c9690b57 Catch some errors if user mixes audio and video in Kodi playqueue
- Plex does not support mixed playqueues nor playlists
2018-07-08 11:08:30 +02:00
croneter
662dbba2e8 Fix playlist sync settings not disappearing 2018-07-07 19:32:39 +02:00
croneter
6f38472b17 Fix FutureWarning 2018-07-07 19:16:33 +02:00
croneter
70d809f179 Add some safety nets for playlist sync 2018-07-07 19:10:52 +02:00
croneter
e015770dd1 Optimize code 2018-07-07 18:59:40 +02:00
croneter
33afc448fd Clarify some comments 2018-07-07 18:57:09 +02:00
croneter
641520dcbb Optimize code 2018-07-07 18:32:11 +02:00
croneter
d44e782543 Fix playlists getting recreated and deleted in an endless loop 2018-07-07 18:21:50 +02:00
croneter
0166aaf7ba Decrease filesystem safety margin to 1 second 2018-07-06 21:48:07 +02:00
croneter
c29b47319f Drop directory filesystem events immediately 2018-07-06 21:44:08 +02:00
Croneter
44bbcddbdf Hopefully fix Kodi and Plex playlists getting out of sync
- Implement a special Watchdog observer that will wait for <timeout> AFTER a filesystem event has been received
2018-07-06 09:01:46 +02:00
Croneter
4fe95fdf12 Fix typo 2018-07-05 17:55:52 +02:00
Croneter
080e9184cc Fix and optimize startup of playlist sync 2018-07-05 16:38:06 +02:00
Croneter
f9571f009b Hide certain playlist settings under certain conditions 2018-07-05 16:12:34 +02:00
Croneter
248cbe2c90 Fix errors in Kodi log
- Fixes #504
2018-07-05 13:55:38 +02:00
Croneter
038e557e7b Fix UnboundLocalError 2018-07-05 13:10:42 +02:00
Croneter
e28a7af7ed Catch exception 2018-07-05 13:03:18 +02:00
Croneter
f6a0b70ca4 Deduplication 2018-07-05 12:59:13 +02:00
Croneter
89d55b8b60 Fix hard PKC not working (OSError: no such file) 2018-07-05 12:52:02 +02:00
Croneter
e62b909a75 Support for Plex collection artwork (PKC settings toggle under Artwork )
- Fixes #408
2018-07-05 12:46:40 +02:00
Croneter
7e0439b146 Update translations 2018-07-04 14:48:30 +02:00
Croneter
4f461ed02b Fix playback sometimes not starting up
- Fixes #492 UnboundLocalError
2018-07-04 09:08:39 +02:00
Croneter
768de346b1 Don't show artwork sync progress, reduce setting-writes
- Hopefully fixes #499
2018-07-04 08:17:37 +02:00
Croneter
50b457cb15 Fix imports
- Fixes #503
2018-07-04 08:05:24 +02:00
Croneter
98ba2b8caa Ignore case when deciding whether to sync playlists 2018-07-04 07:46:30 +02:00
Croneter
1eed16dd52 Allow to only sync specific Plex or Kodi playlists 2018-07-02 20:23:16 +02:00
Croneter
d918a26a00 Reset PKC setting to English only 2018-06-28 15:40:35 +02:00
Croneter
1cd037d4b6 Fix default settings string, only show in English
- Might fix #499
2018-06-28 15:38:33 +02:00
croneter
aacd882e8b Fix AttributeError and add_update has crashed
- Fixes #500
2018-06-24 16:05:04 +02:00
croneter
108944c4b2 Fix LibrarySync crashing due to Plex Companion messages 2018-06-24 11:19:42 +02:00
croneter
832863ad71 Append tv show and SxxExx to episode playlist entries 2018-06-24 10:47:35 +02:00
croneter
a89a935ede Merge branch 'stable-version' into beta-version 2018-06-24 10:06:36 +02:00
croneter
25c777bcad Compatibility with Kodi Krypton Alpha 2 2018-06-24 10:04:30 +02:00
croneter
463514186d Fix decoding of sys.argv 2018-06-23 19:15:24 +02:00
croneter
79281853ba Less logging 2018-06-23 18:44:31 +02:00
croneter
e8a35e06a9 Try to rename again 2018-06-23 18:35:06 +02:00
croneter
137425dcb1 GitHub fuckup: cases are ignored for Windows 2018-06-23 18:34:42 +02:00
Croneter
1234f61fc0 Fix encoding of file and path operations 2018-06-23 18:25:18 +02:00
Croneter
074c439e99 PEP8 2018-06-22 13:40:13 +02:00
Croneter
c03abddc27 Encode file paths correctly for all platforms 2018-06-22 13:39:38 +02:00
Croneter
9b76795ea4 Attempt to fix locking mechanisms
- Wraper to lock entire function was NOT working
2018-06-21 20:43:39 +02:00
Croneter
c440dc7779 Switch to absolute imports 2018-06-21 19:24:37 +02:00
Croneter
9c6fa31fda Fix UnboundLocalError for playlists 2018-06-20 12:31:18 +02:00
Croneter
2389f61b91 Speed up subtitle download to Kodi 2018-06-20 12:30:05 +02:00
croneter
ba04d85310 Merge branch 'stable-version' into beta-version 2018-06-17 17:09:07 +02:00
croneter
1136178381 Check all Kodi database versions before starting PKC 2018-06-17 13:38:58 +02:00
croneter
7297267613 Less logging 2018-06-17 13:21:22 +02:00
croneter
de626f5cd9 Fix KeyError on non-PKC playback startup 2018-06-17 12:35:09 +02:00
Croneter
0220c84554 PEP8 2018-06-15 15:16:55 +02:00
Croneter
9963163f0e PEP8 2018-06-15 15:15:35 +02:00
Croneter
12f1486f53 Merge branch 'stable-version' into beta-version 2018-06-15 14:41:15 +02:00
Croneter
51444111d2 PEP8 2018-06-15 14:40:29 +02:00
Croneter
1a58967111 PEP8 2018-06-15 14:15:39 +02:00
Croneter
b3c0374477 PEP8 2018-06-15 14:13:46 +02:00
Croneter
2c2029437a PEP8 2018-06-15 14:11:17 +02:00
Croneter
391cbab0be Remove obsolete variable 2018-06-15 14:09:40 +02:00
Croneter
0653b79306 PEP8 2018-06-15 14:08:43 +02:00
Croneter
c580638fb5 PEP8 2018-06-15 14:07:53 +02:00
Croneter
210701c366 PEP8 2018-06-15 14:07:08 +02:00
Croneter
bf8f238af4 PEP8 2018-06-15 14:05:48 +02:00
Croneter
18c6d8f784 Remove obsolete argument 2018-06-15 14:01:09 +02:00
Croneter
2037ba432b PEP8 2018-06-15 14:00:12 +02:00
Croneter
96dff29afe PEP8 2018-06-15 13:58:39 +02:00
Croneter
28ccd1a3b3 PEP8 2018-06-15 13:57:33 +02:00
Croneter
c14b9b4ed8 PEP8 2018-06-15 13:55:32 +02:00
Croneter
f427210f14 Remove obsolete function 2018-06-15 13:51:13 +02:00
Croneter
de846e7241 PEP8 2018-06-15 13:50:04 +02:00
Croneter
73403a8a7b PEP8 2018-06-15 13:49:18 +02:00
Croneter
1d277c26e1 PEP8 2018-06-15 13:47:22 +02:00
Croneter
d4bd51379d PEP8 2018-06-15 13:44:46 +02:00
Croneter
0d1275a1bb PEP8 2018-06-15 13:40:25 +02:00
Croneter
67d2638bc1 Update translations 2018-06-15 10:26:03 +02:00
Croneter
3419e8869f Fix KeyError 2018-06-14 21:08:49 +02:00
Croneter
c03b7c52c4 Detect playback from playlist more reliable for add-on paths 2018-06-14 21:01:54 +02:00
Croneter
a36307e0aa Fix add-on paths playstate and Plex Companion for playlists 2018-06-14 19:54:35 +02:00
Croneter
0a55e7fee8 Rewire detection of add-on paths playlists playback
- Pain to fix Kodi bugs
2018-06-14 19:43:21 +02:00
Croneter
e09cfa8cb3 Clear kodi_playlist_playback attribute correctly 2018-06-14 18:57:49 +02:00
Croneter
b135980981 Fix Kodi telling Plex companion false playqueue position 2018-06-14 16:40:26 +02:00
Croneter
7ccfb61a7c Detect playback from a Kodi playlist 2018-06-14 16:27:13 +02:00
Croneter
108c88114b Fix playback from playlists for add-on paths 2018-06-14 15:54:12 +02:00
Croneter
01d269f995 Don't try to get a Kodi library items for Plex clips 2018-06-14 15:44:53 +02:00
Croneter
2152c789c7 Fix library sync crash due to PMS sending string, not unicode 2018-06-12 19:43:09 +02:00
croneter
0c41bb1604 Use unicode paths, not strings for dir_util.copy_tree 2018-06-09 13:13:56 +02:00
Croneter
45c4d7f479 Fix Library Sync crash for Android
- Caused by PKC wanting to copy permissions bits as well
2018-06-09 13:13:44 +02:00
croneter
602966e035 Use unicode paths, not strings for dir_util.copy_tree 2018-06-09 13:09:31 +02:00
Croneter
15f3313c1f Fix Library Sync crash for Android
- Caused by PKC wanting to copy permissions bits as well
2018-06-09 12:56:21 +02:00
Croneter
69b8e98b39 Merge branch 'master' into playlists 2018-06-08 10:24:09 +02:00
Croneter
1f144d693c Fix migration not working 2018-06-08 10:07:47 +02:00
Croneter
c5ca8910d7 Merge branch 'master' into playlists 2018-06-07 17:41:46 +02:00
Croneter
807fb1614e Fix context menu missing "Delete item from PMS"
- Fixes #483
2018-06-07 17:23:24 +02:00
Croneter
ee1a33cc4c Fix searching for PMS if there is no internet connection
- Fixes #485
2018-06-07 17:15:37 +02:00
Croneter
65561eea47 Fix DB reset on Startup if PMS connection fails
- Should fix #484
2018-06-07 17:11:13 +02:00
Croneter
2f90a29acf Fix resume for On Deck widget for direct paths 2018-06-07 16:27:41 +02:00
croneter
136461160f Merge branch 'master' into playlists 2018-06-03 14:26:55 +02:00
croneter
9b1085c134 Less logging
- Fixes #482
2018-06-03 14:04:11 +02:00
croneter
0486934d81 Force a sync on startup even if Kodi is playing something
- Fixes #482
2018-06-03 13:48:00 +02:00
croneter
f9121d281c Direct paths: Don't download PMS sections twice 2018-06-03 13:32:25 +02:00
croneter
87b22f1588 Revert "Make sure that LOCK is released after adding one element"
This reverts commit c05b772e90.
- Should fix a racing condition if the playlist is cleared (picked up by both kodimonitor and playqueue monitor)
2018-06-02 17:31:57 +02:00
croneter
48810a227f Revert "Fix playqueue monitoring locking mechanism"
This reverts commit 1e43f1cc77.
- Should fix a racing condition if the playlist is cleared (picked up by both kodimonitor and playqueue monitor)
2018-06-02 17:26:36 +02:00
croneter
147d35ca24 Include Plex Home username in "Log-out Plex Home user" 2018-06-02 16:38:10 +02:00
croneter
bd73c03078 Merge branch 'hotfixes' into playlists 2018-06-02 16:12:47 +02:00
croneter
c10d4381c8 Update Czech translation 2018-06-01 20:44:21 +02:00
croneter
e85e514c8b Fix endless reboots if Plex music library missing 2018-06-01 20:36:24 +02:00
croneter
faf17f34d1 Merge branch 'hotfixes' of https://github.com/croneter/PlexKodiConnect into hotfixes 2018-06-01 19:56:47 +02:00
Croneter
ff4217b488 Specify exception type 2018-06-01 18:49:43 +02:00
Croneter
a4273c6c6e Declare PMS connection dead on first failed connection 2018-06-01 18:48:45 +02:00
Croneter
a6881a8a32 Fix KeyErrors if Kodi player does not return position
- Partially fixes #481
2018-06-01 18:43:56 +02:00
Croneter
7bf6d19708 Fix AttributeError 2018-05-30 13:10:54 +02:00
Croneter
114895c183 Fix logging 2018-05-30 11:24:51 +02:00
Croneter
b729cf5423 Fix logging 2018-05-30 10:41:46 +02:00
Croneter
7c92c01047 Fix Typo 2018-05-30 08:29:33 +02:00
Croneter
1f0977ec77 Fix Plex Companion failing leading to PMS connection loss 2018-05-30 08:20:30 +02:00
Croneter
06f9f6a7a5 Fix PKC add-on setting user changes not saving 2018-05-30 07:53:30 +02:00
croneter
8a2622c3f8 Fix playback of last item not starting up 2018-05-27 11:36:54 +02:00
croneter
ecc67b5707 Use float instead of int for resume 2018-05-27 11:13:19 +02:00
croneter
60bfff16dd Remove obsolete setting of resumetime for library items 2018-05-27 10:57:04 +02:00
croneter
6a66acb44c Use float for resume and runtime instead of int 2018-05-27 10:52:04 +02:00
croneter
7b4a3da023 Version bump 2018-05-26 19:00:19 +02:00
croneter
5c33f3c02a Fix episode widget resume not working (add-on paths)
- Hack alert, really...
- Need to reset the Kodi DB
2018-05-26 18:54:38 +02:00
croneter
ac7b7bb96d Revert "Another attempt to fix episode resume from widgets"
This reverts commit 04044ac896.
2018-05-26 17:28:17 +02:00
croneter
04044ac896 Another attempt to fix episode resume from widgets
- Tried to get as close as possible to emby DB
2018-05-26 17:28:11 +02:00
croneter
f68b167c0d Revert "Attempt to fix resume from widget not working"
This reverts commit a6bc0b9e69.
2018-05-24 19:36:14 +02:00
croneter
a6bc0b9e69 Attempt to fix resume from widget not working 2018-05-24 19:28:50 +02:00
croneter
8fbca537f4 Attach missing filename to plugin call 2018-05-22 20:31:32 +02:00
croneter
d1390c25c7 Revert "Try to fix widget resume for episodes for addon paths"
This reverts commit 95354fe564.
2018-05-20 18:54:31 +02:00
croneter
95354fe564 Try to fix widget resume for episodes for addon paths
- By introducing a second file_id in file and bookmark table
2018-05-20 18:15:09 +02:00
croneter
ca1151bc6d Speed up PKC start-up 2018-05-20 14:28:56 +02:00
croneter
ed213a4b34 Fix ValueError if plex.tv returns Plex Cloud URIs 2018-05-20 14:23:21 +02:00
croneter
f00b5fe59d Revert "Fix ValueError if plex.tv returns Plex Cloud URIs"
This reverts commit a7702573ad.
2018-05-20 14:22:05 +02:00
croneter
fe3293e986 Speed up checking of PMS connection, e.g. on startup 2018-05-20 14:17:49 +02:00
croneter
a7702573ad Fix ValueError if plex.tv returns Plex Cloud URIs 2018-05-20 14:16:50 +02:00
croneter
45e6baa34d Revert "Default to not show image caching notifications"
This reverts commit 5a993a2bf0.
2018-05-20 13:55:23 +02:00
croneter
80acc668ec Improve collection lookup; fix PKC caching wrong url 2018-05-20 13:52:23 +02:00
croneter
75994bff47 Prettify 2018-05-20 12:34:44 +02:00
croneter
7b7ee9fa8d PEP8 2018-05-20 12:28:49 +02:00
croneter
978278db7b Remove obsolete kwarg 2018-05-20 12:26:52 +02:00
croneter
a65981c1de Update translations 2018-05-18 19:54:36 +02:00
croneter
611ca5f138 Dummy modify strings.po 2018-05-18 19:41:15 +02:00
croneter
0a7752e392 Fallback connection if plex.direct does not resolve
- Fixes #472
- Partially fixes #478
2018-05-18 19:31:43 +02:00
Croneter
5a993a2bf0 Default to not show image caching notifications 2018-05-18 16:26:02 +02:00
Croneter
ba2098ac93 Merge branch 'master' of https://github.com/dazedcrazy/PlexKodiConnect into dazedcrazy-master 2018-05-18 16:00:28 +02:00
Croneter
84c2aa7fa0 Reduce CPU strain for artwork caching progress
- Fixes #477
2018-05-18 15:59:26 +02:00
dazedcrazy
f7dfc25058 contextmenu changes 2018-05-17 04:01:40 +01:00
dazedcrazy
e4fef8297e contextmenu changes 2018-05-16 18:33:43 +01:00
croneter
c63adaf2e3 Improve artwork caching counter in PKC settings 2018-05-15 20:46:16 +02:00
croneter
76193329d6 Fix PMS showing up twice
- Fixes #469
2018-05-15 19:39:34 +02:00
croneter
43c31ce419 Fix migration not working correctly for re-connecting PMS
- Fixes #469
2018-05-15 19:33:17 +02:00
Croneter
7ea2fbf417 Version bump 2018-05-14 20:59:32 +02:00
Croneter
0e1902cc91 Don't ask user for DB reset if forced by PKC 2018-05-14 20:51:14 +02:00
Croneter
abdfd00374 Increase logging 2018-05-14 20:43:48 +02:00
Croneter
e129c94053 Ensure movies and tv shows are synced before music 2018-05-14 20:23:39 +02:00
Croneter
6541b16810 Ensure a later migration if user downgraded PKC 2018-05-14 20:00:49 +02:00
Croneter
ce284f668a Fix migration 2018-05-14 19:57:36 +02:00
Croneter
f0195f14aa Use plex.direct url instead of local ip to use correct SSL certificate; thus fix artwork caching
- Fixes #461
- Migration necessary: re-connect to PMS to use plex.direct URI
2018-05-14 19:42:00 +02:00
Croneter
8b1d04af79 Revert "Increase timeout between syncing images"
This reverts commit 0807ce5314.
2018-05-14 17:56:39 +02:00
croneter
6c93934026 Version bump 2018-05-13 16:39:01 +02:00
croneter
8348b3a150 Update translations 2018-05-13 16:34:04 +02:00
croneter
1a261a3b9e Reset artwork sync status in PKC settings on DB reset 2018-05-13 16:15:48 +02:00
croneter
2191f59092 Fix context menu not working for shows in library view 2018-05-13 16:12:50 +02:00
croneter
4a948c1639 Fix Plex Companion playstate status for iOS
- Partially fixes #456
2018-05-13 15:50:26 +02:00
croneter
5241baef28 Show FanartTV lookup progress in PKC settings 2018-05-13 15:22:03 +02:00
croneter
f8560aec4d Optimize startup of additional fanart sync 2018-05-13 14:42:58 +02:00
croneter
9b2291dd47 Reduce logging 2018-05-13 14:22:50 +02:00
croneter
9b47d0970c Fix string 2018-05-13 14:21:32 +02:00
croneter
d16296395f Show caching progress for Plex images in the PKC settings 2018-05-13 14:20:39 +02:00
croneter
f9cc0f249d Tweak PKC settings 2018-05-13 13:34:14 +02:00
croneter
8d76bc53e5 Fix rare library sync errors
- Fixes #462
2018-05-13 12:31:54 +02:00
Croneter
ad9de09027 Merge branch 'hotfixes' into playlists 2018-05-04 19:03:47 +02:00
Croneter
63f7d5615d Finally support for Extras! 2018-05-04 19:03:27 +02:00
Croneter
ce29f5a60e Fix ValueError for third party add-ons calling PKC 2018-05-04 15:11:18 +02:00
Croneter
569cb71ca8 Refactor playlist and playqueue classes 2018-05-03 17:30:29 +02:00
Croneter
5bfe9b7c7f Also do a playlist full sync on library full sync 2018-05-03 17:20:23 +02:00
Croneter
25a9a3c4ce Optimize logging 2018-05-03 17:13:00 +02:00
Croneter
73655d354f Optimize logging 2018-05-03 14:02:00 +02:00
Croneter
2a862b5169 Optimize length for playlist filename (m3u instead of m3u8) 2018-05-03 08:29:14 +02:00
Croneter
6bcddc8382 raise PlaylistError instead of just returning 2018-05-03 08:24:41 +02:00
Croneter
ca1033801d Add setting to (de)activate playlist sync 2018-05-03 08:20:55 +02:00
Croneter
c61fc3241f Ensure that music playlists are not synced if music is deactivated 2018-05-03 08:01:26 +02:00
Croneter
df7bfd2e0c Improve logging 2018-05-03 07:56:32 +02:00
Croneter
f5a457a87d Rename variable 2018-05-03 07:53:28 +02:00
Croneter
a8d02bffdc Merge branch 'master' into playlists 2018-05-03 07:43:45 +02:00
Croneter
b357f43e79 Revert "Use list instead of set"
This reverts commit 5cea57e935.
Fixes #460
Fixes #458
2018-05-02 19:29:04 +02:00
Croneter
0c3db3e2f8 Delete all synced playlists on PKC (database) reset 2018-05-02 19:13:56 +02:00
Croneter
5b4ed1d6a6 Fix music playlists 2018-05-02 18:50:31 +02:00
Croneter
b00ec8989c Optimize logging 2018-05-02 18:22:23 +02:00
Croneter
63c829b042 Fix error message upon playlist deletion 2018-05-02 18:14:33 +02:00
Croneter
81b1d18192 Don't let librarysync crash if Plex playlist deletion doesnt work 2018-05-02 18:05:27 +02:00
Croneter
3016c9747f Fix possible AttributeError 2018-05-02 17:59:06 +02:00
Croneter
c3b649c1b1 Clean up code 2018-05-02 17:55:27 +02:00
Croneter
799f9ba25a Fix Plex playlist duplicating 2018-05-02 17:55:19 +02:00
Croneter
c98a8456ff Introduce playlist locking; override watchdog dispatching 2018-05-02 17:45:31 +02:00
Croneter
2971dd3f7c Extend websocket listening to Plex playlist changes 2018-05-02 17:27:35 +02:00
Croneter
0baa081dc6 Optimize logging 2018-05-02 16:57:27 +02:00
Croneter
5fd6587ff7 Fix deleting Plex playlists 2018-05-02 16:47:03 +02:00
Croneter
2f25453fe2 Plex playlist creation does not update hash; fix Kodi monitoring 2018-05-02 16:46:54 +02:00
Croneter
02e1917072 Increase logging 2018-05-02 16:20:20 +02:00
Croneter
94641b9ed6 Improve logging 2018-05-02 15:59:59 +02:00
Croneter
c4841ed946 Fix logging 2018-05-02 15:56:31 +02:00
Croneter
c36746dbdf Fix use of wrong function 2018-05-02 15:50:26 +02:00
Croneter
b33ed4ccbe Fix putting more items on Plex playlist 2018-05-02 15:44:54 +02:00
Croneter
61b0645314 Rename function 2018-05-02 15:34:21 +02:00
Croneter
e637f36a21 Save Plex playlist details on initialization 2018-05-02 15:17:58 +02:00
Croneter
376338a9b0 Fix initializing of playlists on the Plex side 2018-05-02 09:33:37 +02:00
Croneter
ba0aff0f54 Rename function 2018-05-01 18:08:31 +02:00
Croneter
6c3c9a4f93 Use m3u instead of m3u8 2018-05-01 17:59:51 +02:00
Croneter
9f4dbe6ee5 Increase logging 2018-05-01 17:13:00 +02:00
Croneter
341571e232 Fix saving Plex updatedAt value for new playlists 2018-05-01 17:09:58 +02:00
Croneter
8ee20b1bba Fix sync if Kodi playlist has been deleted 2018-05-01 16:52:12 +02:00
Croneter
20fef65b3d Fix playlist id and naming on playlist creation 2018-05-01 16:48:31 +02:00
Croneter
7ddfc0143d Revert "Remove API method playlist_type()"
This reverts commit 7b64b794f2.
2018-05-01 16:44:40 +02:00
Croneter
7dde71734c Fix updating playlist object from XML 2018-05-01 16:41:10 +02:00
Croneter
1a3a94894b Fix AttributeError for exceptions 2018-05-01 16:37:27 +02:00
Croneter
ff72648570 Fix AttributeError 2018-05-01 16:35:26 +02:00
Croneter
f8682fb8cb Fix AttributeErrors 2018-05-01 16:33:49 +02:00
Croneter
e2c90ac0f4 Fix AttributeErrors for Plex playlist id 2018-05-01 16:31:03 +02:00
Croneter
7b64b794f2 Remove API method playlist_type() 2018-05-01 16:30:04 +02:00
Croneter
6f6fb16352 Hopefully fix download of Plex playlists 2018-05-01 16:27:18 +02:00
Croneter
b448d1c06f Fix setting Kodi playlist path 2018-05-01 16:20:57 +02:00
Croneter
e8aba6b77b Increase logging 2018-05-01 16:18:06 +02:00
Croneter
26c588828e Fix ValueError 2018-05-01 16:12:25 +02:00
Croneter
4e16756829 Fix AttributeErrors 2018-05-01 16:09:35 +02:00
Croneter
1780b3948b Fix KeyError 2018-05-01 16:08:24 +02:00
Croneter
0cedfd7a7d Fix Plex playlist download 2018-05-01 16:04:26 +02:00
Croneter
df2b3810bf Fix FutureWarning for etree xmls 2018-05-01 15:24:58 +02:00
Croneter
1de2390cdd Fix IndexError for setting playlist path 2018-05-01 15:23:39 +02:00
Croneter
892458981d Fix AttributeError for setting playlist path 2018-05-01 15:21:29 +02:00
Croneter
151c679e29 Fix WindowsError for WatchDog trying to monitor playlists 2018-05-01 15:13:42 +02:00
Croneter
5ce97246d1 Fix TypeError for getting a PMS playlist 2018-05-01 14:59:57 +02:00
Croneter
f622eab809 Fix TypeError for PlaylistObject instantiation 2018-05-01 14:56:07 +02:00
Croneter
b50506b891 Fix AttributError due to false import 2018-05-01 14:55:11 +02:00
Croneter
e38f99f088 Playlist sync support, part 2 2018-05-01 14:48:49 +02:00
Croneter
ac8b8e6153 Optimize start of playlist monitor 2018-04-30 15:01:43 +02:00
Croneter
952261fb5a Add some comments 2018-04-30 14:18:14 +02:00
Croneter
e1c7ab5b04 PEP8 2018-04-30 14:16:45 +02:00
Croneter
b7644198c7 Merge branch 'master' into playlists 2018-04-29 15:12:11 +02:00
Croneter
0e421d16e3 Pull latest transifex translations 2018-04-29 14:59:04 +02:00
Croneter
29d9a29cb7 Merge branch 'hotfixes' into playlists 2018-04-29 14:44:32 +02:00
Croneter
0807ce5314 Increase timeout between syncing images 2018-04-29 14:39:36 +02:00
Croneter
f87a631674 Revert "Increase timeout between syncing images"
This reverts commit 62d6c8fe45.
2018-04-29 14:39:08 +02:00
Croneter
559bd5408f Optimize startup of image caching 2018-04-29 14:26:53 +02:00
Croneter
1ca2bdba79 Less logging 2018-04-29 14:16:56 +02:00
Croneter
62d6c8fe45 Increase timeout between syncing images
- Partially fixes #457
2018-04-29 14:14:31 +02:00
Croneter
d3ef80ed22 Cache missing posters and backgrounds/fanart on Kodi startup
- Partially fixes #457
2018-04-29 14:12:39 +02:00
Croneter
51f47452f2 Add toggle to deactivate image caching during playback
- Partially fixes #451 - you can now disable image caching during playback
2018-04-29 14:11:03 +02:00
Croneter
5cea57e935 Use list instead of set 2018-04-29 12:39:29 +02:00
Croneter
0a83d6c084 Playlist sync support, part 1 2018-04-28 09:12:29 +02:00
Croneter
7fb0f32bcf Fix TV show artwork Kodi native library (reset Kodi DB!) 2018-04-26 08:18:51 +02:00
Croneter
54c132d3e3 Fix music database if new music is added in the background 2018-04-26 08:01:27 +02:00
Croneter
8a08d85cce Kodi Leia: Fix playback failing
- Hopefully fixes #455
2018-04-23 19:50:16 +02:00
Croneter
7bc5f3ad16 Fix IndexError for certain Plex channels
- Fixes #454
2018-04-23 07:39:36 +02:00
Croneter
a376dbe2a5 Less logging 2018-04-20 16:52:25 +02:00
Croneter
3bba2199e8 Fix missing episode poster in certain views
- Fixes #453
2018-04-20 15:58:35 +02:00
Croneter
00613e7ef5 Fix episode artwork sometimes not being complete
- Partially fixes #453
2018-04-20 07:41:59 +02:00
Croneter
d4e15d6dfb Prettify 2018-04-19 11:52:36 +02:00
Croneter
165b85c52d Fix TV On Deck direct paths asking to choose between different media 2018-04-19 08:06:51 +02:00
Croneter
32a880cef0 Clean up code for userclient 2018-04-18 08:39:41 +02:00
croneter
f8ed5646c5 Fix PKC playback startup getting caught in infinity loop 2018-04-17 21:01:51 +02:00
croneter
57d95e57f3 Fix PKC not working anymore after using context menu on songs 2018-04-17 20:44:53 +02:00
croneter
d03b68b4e1 Fix deleting music album not working 2018-04-17 20:22:32 +02:00
croneter
678544d236 Rewire library sync, suspend sync during playback
- Fixes #451
2018-04-17 20:18:25 +02:00
croneter
88ef5f9eda Remove obsolete window variable 2018-04-15 18:54:24 +02:00
croneter
42ededd751 Fix docstring 2018-04-15 18:37:27 +02:00
croneter
3fe5cf571c Code cleanup 2018-04-15 18:33:20 +02:00
croneter
83e85a3ea9 Fix playback failing in certain cases 2018-04-15 18:13:48 +02:00
croneter
b4b05b70ec Fix logging string 2018-04-15 16:37:13 +02:00
croneter
5f26692e0f Code cleanup 2018-04-15 16:34:45 +02:00
croneter
ecc8df014c "Fix IndexError when emptying Kodi playqueue" 2018-04-15 13:16:58 +02:00
croneter
8bea313865 Revert "Fix IndexError when emptying Kodi playqueue"
This reverts commit a87b40c612.
2018-04-15 13:15:17 +02:00
Croneter
ba31050aac Less logging 2018-04-12 18:54:12 +02:00
Croneter
0f1e2e7dec Fix deletion of Plex music items
- Fixes #336
2018-04-12 18:52:37 +02:00
Croneter
8f30a466ff Increase speed for getting plex id from kodi id 2018-04-11 08:50:51 +02:00
Croneter
a87b40c612 Fix IndexError when emptying Kodi playqueue 2018-04-10 19:26:15 +02:00
Croneter
1e43f1cc77 Fix playqueue monitoring locking mechanism 2018-04-10 19:23:37 +02:00
Croneter
f6b3dfdf12 Fix Plex trailers screwing up playqueue
- Introduce a flag to check whether PKC itself made changes to the playqueue
2018-04-10 07:56:44 +02:00
Croneter
e6199819c4 Fix TypeError 2018-04-09 08:17:47 +02:00
Croneter
76e721b78a Incorporate PKC player in kodimonitor module 2018-04-09 08:13:54 +02:00
Croneter
74c0b32440 Remove obsolete import 2018-04-09 07:22:28 +02:00
Croneter
d65b8ec0c0 Remove obsolete window properties 2018-04-09 07:21:47 +02:00
Croneter
ec5dff4a8d Clean up code 2018-04-09 07:15:12 +02:00
Croneter
a53bd0f89c Remove obsolete import 2018-04-09 07:09:27 +02:00
croneter
7a4997da7a Direct paths: fix replaying item where playback was started via PMS 2018-04-08 15:38:13 +02:00
croneter
30abe0f2fb Fix some playqueue inconsistencies using Plex Companion
- Also fix movie helper and TV show helper add-ons
2018-04-08 14:34:38 +02:00
croneter
7ae831f7c3 Fix pretty printing of PKC playqueues not working 2018-04-08 12:37:25 +02:00
croneter
244df4184f Less logging 2018-04-07 14:34:27 +02:00
croneter
c1b2d3d54f Prettify music removal 2018-04-07 14:30:17 +02:00
Croneter
460b33d6d6 Update translations 2018-04-06 15:35:49 +02:00
Savage
414c33bde4 Added translation for Hungarian language 2018-04-06 13:45:11 +02:00
Croneter
8f9c485156 Update FR and NL translations 2018-04-05 17:53:20 +02:00
Croneter
4a2b816360 Update all translations 2018-04-05 16:58:34 +02:00
Croneter
dedf90f9be Remove most strings not being used by PKC
- For easier translations
2018-04-05 15:21:00 +02:00
Croneter
b7adbd8653 Remove some legacy settings 2018-04-05 15:20:15 +02:00
Croneter
61065e0cc5 Finally make PKC compatible with Kodi 18 Leia Alpha 1
- Fixes #339
2018-04-05 08:06:48 +02:00
croneter
c12c9c08d8 Simplify code 2018-04-03 17:07:37 +02:00
croneter
14ef7ae247 Fix information screen and Plex option not working
- Fixes #440
2018-04-03 16:53:59 +02:00
croneter
01d1d342aa Activate Kodi background updates to hide "Compressing Database" 2018-04-03 12:43:59 +02:00
croneter
f481bd2980 Do NOT delete playstates before getting new ones from the PMS 2018-04-02 18:32:52 +02:00
croneter
5b58db6cec Fix Plex Companion thinking video is playing again
- Fixes #449
2018-04-02 18:09:00 +02:00
croneter
98a544a764 Don't clean the Kodi file table 2018-04-02 17:19:34 +02:00
croneter
8c5baf80ee Only remember which player has been active if we got a Plex id 2018-04-02 17:09:44 +02:00
croneter
5facbddfc7 Warn if "Play next video automatically" is enabled, cause it breaks PKC playback report 2018-04-02 16:29:56 +02:00
croneter
0a978188b4 New JSON functions to retrieve and set Kodi settings 2018-04-02 16:27:08 +02:00
croneter
35ff51e39f Modify import 2018-04-01 10:45:22 +02:00
croneter
7d38ccf504 Hopefully fix ValueError for datetime.utcnow()
- Should fix #448
2018-04-01 10:18:15 +02:00
croneter
c05b772e90 Make sure that LOCK is released after adding one element
- Partially fixes #446
2018-03-31 20:34:09 +02:00
croneter
dcf2b9b4e4 Play the selected element first, then add the Kodi playqueue to the Plex playqueue
- Fixes #446
2018-03-31 20:32:55 +02:00
croneter
e81bee0101 Fix resetting PKC player state
- Should fix #445
2018-03-31 18:51:03 +02:00
croneter
9a4533d7e0 Ensure that playstate for ended (not stopped) video is recorded correctly 2018-03-31 15:37:05 +02:00
Croneter
3dd10ba29c Don't tell PMS last item is playing if non-Plex item is played 2018-03-29 07:37:20 +02:00
Croneter
cd5b3a3e2b Remove obsolete import 2018-03-29 07:35:54 +02:00
Croneter
f23f6da627 Fix PKC sometimes telling wrong item being played 2018-03-29 07:33:07 +02:00
Croneter
9f82b05c11 Fix rare KeyError for playback including trailers 2018-03-28 08:04:03 +02:00
Croneter
6aa3e612cf Adjust playback cleanup for empty video file 2018-03-27 18:20:36 +02:00
Croneter
fc836bebe6 Use an empty video file to "fail" playback 2018-03-27 18:07:16 +02:00
Croneter
b23c6e2932 Fix resume for On Deck and browse by folder 2018-03-27 08:20:39 +02:00
Croneter
f0393771a9 Fix "Use identical add-on paths for On Deck and browsing folders" 2018-03-27 08:02:31 +02:00
Croneter
d7891d6ec2 New API method to retrieve only filename 2018-03-27 08:01:24 +02:00
Croneter
bfd4415fa1 Use identical add-on paths for On Deck and browsing folders 2018-03-27 07:47:58 +02:00
Croneter
bb15f62648 Fix widget navigating to entire TV show not working 2018-03-22 18:51:11 +01:00
Croneter
79d87c5b01 Change default setting to force reload skin after playback stop to False
- Fixes #434
2018-03-22 17:27:57 +01:00
Croneter
22503657d2 Revert "Revert "Fix for "In Progress" not appearing""
This reverts commit 303adbf02e.
2018-03-22 17:26:11 +01:00
Croneter
baf60c2cc8 Simplify error message
- Fixes #435
2018-03-22 17:25:21 +01:00
Croneter
1a7ac665db Fix library sync crash TypeError
- Fixes #436
2018-03-22 17:03:26 +01:00
Croneter
4e4e1cea6b Fix resume not working for some Kodi interface languages 2018-03-22 16:56:54 +01:00
Croneter
82349bca88 Version bump 2018-03-20 11:56:51 +01:00
Croneter
d8555ee0cc Fix playback resuming potentially too often 2018-03-20 11:48:17 +01:00
Croneter
524466360f Link episode ListItem with Kodi library item
Enables full metadata such as Show and Season info
2018-03-20 11:26:01 +01:00
Croneter
3c1bb34f86 Remove obsolete code 2018-03-20 11:17:15 +01:00
Croneter
19770240aa Grab existing Kodi artwork for episodes 2018-03-20 11:08:09 +01:00
Croneter
4d2b040c08 Fix playback artwork for episodes 2018-03-20 10:37:42 +01:00
Croneter
f25eccb22c Code optimization 2018-03-20 09:16:29 +01:00
Croneter
88cece3066 Less logging 2018-03-20 08:52:01 +01:00
croneter
206c2a319b Tweak code for episode artwork 2018-03-18 19:18:44 +01:00
croneter
303adbf02e Revert "Fix for "In Progress" not appearing"
This reverts commit 600a22d158.
2018-03-18 15:23:54 +01:00
croneter
ea57eb5f93 Save NaN and not 0 to Kodi DB if playcount is zero 2018-03-18 15:08:55 +01:00
croneter
6fcbf29779 Addon paths: include real filename in plugin calls 2018-03-18 14:50:37 +01:00
croneter
7096aa35b2 Addon paths: Don't store show id in path 2018-03-18 13:48:29 +01:00
croneter
bb2f4601f5 Clean Kodi DB more thoroughly after playback start via PMS 2018-03-16 07:52:49 +01:00
croneter
600a22d158 Fix for "In Progress" not appearing
- Partially fixes #428
2018-03-16 07:37:27 +01:00
croneter
1d718c99c6 Always resume playback if playback initiated via context menu 2018-03-15 13:46:56 +01:00
croneter
491aa32586 Don't record last played date if state unwatched 2018-03-15 13:12:33 +01:00
croneter
229b0491b6 Do not play trailers for resumable movies using playback via PMS 2018-03-15 11:30:15 +01:00
croneter
f0c1562ab5 Remove obsolete resumable flag 2018-03-15 11:28:31 +01:00
croneter
8e1b77fcfe Fix correctly recording ended (not stopped!) video 2018-03-15 10:40:15 +01:00
croneter
4e85b65318 Direct paths: correctly clean up after context menu play 2018-03-15 10:25:51 +01:00
croneter
c48ef5012f Fix wrong item being reported using direct paths
- Fixes #428
2018-03-15 08:24:56 +01:00
croneter
bc8546b4ff Fix AttributeError on playback start
- Hopefully fixes #428
2018-03-14 07:41:53 +01:00
croneter
5012ab84c8 Fix videos not being correctly marked as played
- Hopefully fixes #423
2018-03-11 20:10:02 +01:00
croneter
46adc51cf6 Fix old playerstate not being copied/reset correctly 2018-03-11 18:57:00 +01:00
croneter
93e3d42e23 Fix playstates not being copied/reset correctly 2018-03-11 18:54:05 +01:00
croneter
8943083533 Fix tv shows not being correctly deleted
- Fixes #375
2018-03-11 15:23:32 +01:00
croneter
3961c8bc21 Fix episode rating not being correct 2018-03-11 13:02:04 +01:00
croneter
058d417e78 Fix AttributeError 2018-03-11 12:08:59 +01:00
croneter
2144995a29 Optimize code for deleting movies from Kodi DB 2018-03-11 12:08:27 +01:00
croneter
9101f49895 Cleanly remove all file references 2018-03-11 12:00:28 +01:00
croneter
456ef5cb34 Remove obsolete method 2018-03-11 11:48:54 +01:00
croneter
a7939f8b24 Also delete orphaned path entries in Kodi DB 2018-03-11 11:47:04 +01:00
croneter
97dc1c1856 Ensure file id references get deleted 2018-03-10 17:09:21 +01:00
croneter
5882a6ef3b Optimize code 2018-03-10 15:44:08 +01:00
croneter
5a2d3f4238 Optimize code 2018-03-10 15:03:31 +01:00
croneter
f2fea1bcde Optimize Kodi db method add_season 2018-03-10 15:02:06 +01:00
croneter
54a231a67f Remove comments 2018-03-10 14:56:46 +01:00
croneter
e642e30978 New api method grandparent title 2018-03-10 14:56:24 +01:00
croneter
04f94f0828 Use api method for parent id 2018-03-10 14:53:39 +01:00
croneter
44073a3201 Optimize DB path updates for TV shows 2018-03-10 14:51:00 +01:00
croneter
d74c26fd4c Fix disabling of background sync (websockets)
- Partially fixes #425
2018-03-10 12:58:11 +01:00
croneter
344e4337e1 Fix settings not being picked up correctly 2018-03-10 12:45:50 +01:00
croneter
2cd00f21b7 Improve playback startup resiliance
- Fixes #426
2018-03-10 12:24:57 +01:00
croneter
79dba00f27 Fix Kodi 18 log warnings by declaring all settings variables
- Fixes #414
2018-03-07 08:52:05 +01:00
croneter
11db94f84f Hardcode plugin-calls instead of using urlencode 2018-03-07 08:40:18 +01:00
croneter
a8ac23e74a Fix another UnicodeDecodeError for playlists
- Should fix #419
2018-03-07 07:52:13 +01:00
croneter
4332462075 Remove logging 2018-03-07 07:48:14 +01:00
croneter
2fb79b97f8 Fix UnicodeDecodeError for playqueue logging
- Fixes #419
2018-03-06 20:40:30 +01:00
croneter
62e973dbe2 Fixes to add-on paths playback startup 2018-03-06 18:23:56 +01:00
croneter
5af5412009 Version bump 2018-03-04 18:59:18 +01:00
croneter
377f721f1d Fix art and show info not showing for addon paths 2018-03-04 18:32:29 +01:00
croneter
e9abce7d12 Remove obsolete code 2018-03-04 18:02:55 +01:00
croneter
60c122523b Fix episode information not working 2018-03-04 15:29:45 +01:00
croneter
48cc6e3471 Fix music artwork not appearing 2018-03-04 14:22:39 +01:00
croneter
80b810c7e0 Update method description 2018-03-04 14:12:43 +01:00
croneter
cb8a3abdd8 Remove obsolete code 2018-03-04 13:52:44 +01:00
croneter
275283616e Revert "Start id numbering with 0, not 1"
This reverts commit 22ddd28f0b.
2018-03-04 13:39:40 +01:00
croneter
8272a67b5f Artwork overhaul part 2 2018-03-04 13:39:18 +01:00
croneter
b4716ba511 Artwork overhaul part 1 2018-03-03 14:40:12 +01:00
croneter
22ddd28f0b Start id numbering with 0, not 1 2018-03-02 07:48:38 +01:00
croneter
688023c906 Remove obsolete import 2018-03-02 07:36:45 +01:00
croneter
f31046bed1 Greatly speed up switch of PMS 2018-02-28 18:48:39 +01:00
croneter
ae15030bb5 Less logging 2018-02-28 17:42:21 +01:00
croneter
f4681011b9 Big Kodi DB overhaul - ensure video metadata updates/deletes correctly 2018-02-28 17:24:32 +01:00
croneter
f6336feb72 Increase logging 2018-02-28 13:45:53 +01:00
croneter
f0bbcb5086 Start Kodi ids at 0, not 1 2018-02-28 13:45:34 +01:00
croneter
db3be4cf09 Fix IntegrityError 2018-02-28 13:45:08 +01:00
croneter
6c851bd3a6 Merge branch 'hotfixes' of https://github.com/croneter/PlexKodiConnect into hotfixes 2018-02-28 07:02:09 +01:00
croneter
82ed5afb02 Further optimize DB access 2018-02-27 21:14:42 +01:00
croneter
8e2aaa6c09 Make sure obsolete show uniqueids get deleted 2018-02-26 11:22:18 +01:00
croneter
72d222144a Make sure obsolete uniqueid entries get deleted 2018-02-26 11:20:11 +01:00
croneter
b6fc820f81 Optimize DB access for ratings and unique id 2018-02-26 10:58:27 +01:00
croneter
5f7426da1c Less logging 2018-02-26 10:28:48 +01:00
croneter
e21c16f846 Delete playstates from Kodi DB 2018-02-26 09:33:13 +01:00
croneter
725132131c Delete streamdetails from Kodi DB 2018-02-26 09:18:44 +01:00
croneter
769fe8b926 Delete empty movie sets from Kodi DB 2018-02-26 09:06:35 +01:00
croneter
9540e3505c Remove obsolete code 2018-02-25 18:42:53 +01:00
croneter
1a2e8bf6ee Delete tags from Kodi DB 2018-02-25 18:31:45 +01:00
croneter
652f5757cf Delete studios from the Kodi DB 2018-02-25 18:20:44 +01:00
croneter
bad32e90ab Delete genres in Kodi DB 2018-02-25 18:15:17 +01:00
croneter
eedabf5888 Fix TypeErrors because SQL returns tuplex 2018-02-25 18:07:48 +01:00
croneter
1a77427591 Optimize code 2018-02-25 18:06:33 +01:00
croneter
818f370c46 Prettify 2018-02-25 17:51:36 +01:00
croneter
411f691547 Delete people entries from Kodi DB 2018-02-25 17:45:38 +01:00
croneter
b79ed87ea7 Ensure deletion of countries in Kodi DB for movies 2018-02-25 14:15:50 +01:00
croneter
5c944cd092 Fix kodidb_function.py classes 2018-02-25 13:42:20 +01:00
croneter
b42a9e2062 Prettify logging 2018-02-25 13:37:30 +01:00
croneter
ae6fb9ecfa Remove Kodi Helix support 2018-02-25 13:35:09 +01:00
croneter
eb0d1d21bb Revert "Don't list collections/sets also as Kodi tags"
This reverts commit 3f1da3c1ea.
2018-02-25 13:25:31 +01:00
croneter
3f1da3c1ea Don't list collections/sets also as Kodi tags 2018-02-25 13:10:48 +01:00
croneter
ca001a951f Don't repeatedly check plex.tv connection if offline
- Fixes #415
2018-02-25 13:00:46 +01:00
croneter
af0f03e534 Version bump 2018-02-23 17:40:42 +01:00
croneter
919cd6ddfd Fix info screen and actors not working 2018-02-23 17:22:57 +01:00
croneter
bf56160690 Fix trailers 2018-02-23 16:53:06 +01:00
croneter
c059856691 Simplify code 2018-02-23 16:18:10 +01:00
croneter
e6631c3c78 Get rid of Helix code 2018-02-23 16:10:52 +01:00
croneter
6ece9ab5cf Start cast order with 0 like Kodi 2018-02-23 16:10:11 +01:00
croneter
60b90b1f52 Fix Companion displaying and selecting wrong subtitle 2018-02-23 15:24:26 +01:00
croneter
edff54bb7e Don't cache subtitles if direct playing 2018-02-23 14:59:11 +01:00
croneter
11ac4fbe46 Fix playback startup failing 2018-02-23 13:23:49 +01:00
croneter
733e915506 Enable playback of existing Kodi playqueue 2018-02-23 13:18:08 +01:00
croneter
0b2592be5e Improvements to building PKC playlist elements 2018-02-23 13:06:18 +01:00
croneter
861f6213f1 New API method for guid 2018-02-23 12:41:18 +01:00
croneter
4909b4bc14 Remove obsolete imports 2018-02-22 18:20:42 +01:00
croneter
a33b93a6a1 Enable add-on paths for music 2018-02-22 17:38:52 +01:00
croneter
eeeb3efb7e Adjust Kodi bookmarks DB entries to resemble Kodi entries 2018-02-22 08:13:24 +01:00
croneter
b62a7a1a1d Fix add-on paths for tv shows 2018-02-22 08:05:07 +01:00
croneter
be5c1e6b8a Re-introduce dependency add-ons, part 1
We need them in order to keep the Kodi DB straight
2018-02-21 20:24:31 +01:00
croneter
faacbc6108 New method for grandparent ratingKey 2018-02-21 20:23:43 +01:00
croneter
d4b5dc99a1 Revert "Attempt to fix widget playback"
This reverts commit 4be376faac.
2018-02-21 08:47:44 +01:00
croneter
4be376faac Attempt to fix widget playback 2018-02-21 08:47:41 +01:00
croneter
40d670d002 Move check for direct paths and context menu play 2018-02-21 08:03:40 +01:00
croneter
933bd44ad5 Revert "Monitor for DB file path change"
This reverts commit aac22c3369.
2018-02-21 08:01:00 +01:00
croneter
cc37ffd809 Allow playback init for direct paths and context menu 2018-02-21 07:59:19 +01:00
croneter
bba42bb1bb Fail setResolvedUrl on 1st run
- Using add-on paths in the Kodi library, we need to make sure that the subsequent call of xbmc.setresolvedUrl fails or is forwarded once again
2018-02-20 19:43:12 +01:00
croneter
aac22c3369 Monitor for DB file path change 2018-02-20 18:02:34 +01:00
croneter
0173129ffc Correctly set-up paths table 2018-02-20 10:19:11 +01:00
croneter
fe6ccad959 Leave 'movies' in addon path in Kodi DB 2018-02-17 14:06:01 +01:00
croneter
a1eb926dc3 Revert "Attempt to fix Kodi overwriting paths in Kodi DB"
This reverts commit 8cd9deef40.
2018-02-17 13:48:57 +01:00
croneter
8cd9deef40 Attempt to fix Kodi overwriting paths in Kodi DB 2018-02-17 13:42:08 +01:00
croneter
ab1f28bb88 Fix TypeError when DB yet empty 2018-02-16 18:23:55 +01:00
croneter
121e8e0243 Hack for repeatedly starting same video using Addon Paths 2018-02-16 17:25:17 +01:00
croneter
7ce157accd Wipe all resume points before resyncing them 2018-02-15 20:15:53 +01:00
croneter
4df5851bc0 Optimize context menu 2018-02-15 19:47:01 +01:00
croneter
9e2ff58bc7 Inhibit idle shutdown only during initial sync 2018-02-15 17:47:45 +01:00
croneter
9f8c9a1636 Fix KeyError for server discovery
- Fixes #409
2018-02-15 17:44:58 +01:00
croneter
e321559121 Do not inhibit idle shutdown 2018-02-15 17:39:31 +01:00
croneter
74bed60c32 Don't mess with Kodi's screensaver settings 2018-02-15 17:36:28 +01:00
croneter
a2d0f98c9b Fix ignoring Companion updates for the playing item 2018-02-15 17:19:12 +01:00
croneter
7d61f153c3 Increase logging 2018-02-15 16:59:12 +01:00
croneter
fc1d77eff2 Fix ImportError 2018-02-15 16:52:25 +01:00
croneter
c55b687495 Catch PlaylistError in PlayqueueMonitor 2018-02-15 16:45:34 +01:00
croneter
aa756e60bc Ensure that we have unicode paths for database lookup 2018-02-15 08:22:37 +01:00
croneter
9b654f034c Fix Exception text 2018-02-15 08:15:50 +01:00
croneter
55a64d56b1 Add resiliance when adding items to Plex playqueue 2018-02-15 08:09:57 +01:00
croneter
be0eb19794 Revert "Fallback if we didn't get any info on playing element"
This reverts commit 2e7e7fef60.
2018-02-15 07:41:49 +01:00
croneter
2e7e7fef60 Fallback if we didn't get any info on playing element 2018-02-14 21:02:04 +01:00
croneter
66b8559eab Fix using plex instead of user token
- Fixes #407
2018-02-14 20:38:50 +01:00
croneter
feb91127cd Clear transient token, just in case 2018-02-14 20:11:32 +01:00
croneter
952ad796dd Remove obsolete code 2018-02-14 20:10:11 +01:00
croneter
97d777fdee Make sure that empty XML elements get deleted
- Fixes #402
2018-02-14 19:52:53 +01:00
croneter
7421018403 Fix KeyError when browsing On Deck 2018-02-13 07:24:39 +01:00
croneter
3fabb21dac Fix indent of xmls 2018-02-12 21:27:22 +01:00
croneter
754432f5bc Fix Kodi boot loop
- Fixes #402
2018-02-12 21:20:26 +01:00
croneter
af961dbaf4 Fix GB content ratings
- Should fix #401
2018-02-12 20:14:25 +01:00
croneter
1d79190574 Revert "Use api"
This reverts commit e595bd5e79.
2018-02-12 09:22:39 +01:00
croneter
e595bd5e79 Use api 2018-02-12 08:26:32 +01:00
croneter
66a24a39b6 Fix KeyError 2018-02-12 08:18:55 +01:00
croneter
0b5cd46d6c API code optimization 2018-02-12 08:10:39 +01:00
croneter
e02e9bcd1f Rename thread methods 2018-02-11 14:57:39 +01:00
croneter
5068327408 Prettify 2018-02-11 14:42:49 +01:00
croneter
ca11528593 Prettify 2018-02-11 13:24:00 +01:00
croneter
ca8ad96a05 Prettify 2018-02-11 12:59:04 +01:00
croneter
406c2b9f63 Prettify 2018-02-11 12:12:16 +01:00
croneter
055aadc048 Prettify 2018-02-11 12:06:04 +01:00
croneter
b2d37ec9b7 Add notification when searching for PMS 2018-02-10 18:07:10 +01:00
croneter
1151076660 Code refactoring 2018-02-10 17:59:20 +01:00
croneter
4fca4ecf63 Code refactoring 2018-02-09 17:48:25 +01:00
croneter
90a0c4b545 Replace websocket shutdown with close 2018-02-09 15:10:20 +01:00
croneter
96be262f78 Move minimal Kodi DB version to variables.py 2018-02-09 13:57:58 +01:00
croneter
31d42d0b04 Change bookmarks from Videoplayer to DVDPlayer 2018-02-08 16:02:29 +01:00
croneter
8c10c66bdc Mind Alexa transient token 2018-02-08 11:22:26 +01:00
croneter
bbb35856e0 Fix Alexa playback 2018-02-08 11:16:39 +01:00
croneter
e3882acf50 Remove obsolete code 2018-02-08 10:43:38 +01:00
croneter
15e97a63c2 Remove obsolete code 2018-02-08 10:35:10 +01:00
croneter
e393547e13 Compare playqueue items more reliably 2018-02-07 14:57:36 +01:00
croneter
0731ae0179 Enable resume within a playqueue 2018-02-07 14:32:58 +01:00
croneter
5f3aa91a54 Fix logging 2018-02-07 14:28:54 +01:00
croneter
e744ff2b97 Always detect if user resumes playback 2018-02-07 14:09:16 +01:00
croneter
5ca0f7d6af Fix playback cleanup if PKC causes stop 2018-02-07 13:57:07 +01:00
croneter
bdad905df3 Fix playback reporting not starting up correctly
- Should fix #400
2018-02-07 13:32:10 +01:00
croneter
447d233df1 Better logging 2018-02-07 13:09:50 +01:00
croneter
f279efb255 Less logging 2018-02-07 12:48:50 +01:00
croneter
c6ba6b42a8 Fix empty On Deck for tv shows
- Fixes #398
2018-02-06 21:00:32 +01:00
croneter
a9fb2e127e Fix TypeError when navigating
- Fixes #398
2018-02-06 20:26:10 +01:00
croneter
0d5d35c263 Less logging 2018-02-06 20:16:02 +01:00
croneter
d8de492d97 Fix trailers not playing 2018-02-06 20:12:44 +01:00
croneter
a2c2649bc9 Fix TypeError for trailers
You need to resync the Kodi database
2018-02-06 07:43:22 +01:00
croneter
764937e0b5 Fix Companion client resuming playback 2018-02-05 21:00:40 +01:00
croneter
a4f4d0b7a7 Remove obsolete code 2018-02-05 20:49:17 +01:00
croneter
0111b66cd1 Fix some addon paths 2018-02-05 20:44:41 +01:00
croneter
ed4ae181ec Fix weird resume from playback behavior 2018-02-05 20:23:35 +01:00
croneter
b4f8b435fb Fix trailers for widget items with resume point 2018-02-05 19:40:49 +01:00
croneter
66cdd4b176 Fix IntegrityError when adding missing album
- Should fix #395
2018-02-05 18:20:33 +01:00
croneter
6cb69ada3f Rework websocket playstate updates from the PMS
- Should fix #362
2018-02-05 17:48:50 +01:00
croneter
dea8e6d5f5 Use languageCode, not language for temp subtitles
- Fixes #394
2018-02-04 17:42:15 +01:00
croneter
e82d5fec6c Clear playqueue on using context menu 2018-02-04 17:36:18 +01:00
croneter
14635fea4d Ignore first 60s of playback like Plex 2018-02-04 16:58:10 +01:00
croneter
b9c1bbd8d3 Fix Companion playback for Plex Web 2018-02-04 15:36:30 +01:00
croneter
a1d790c741 Signal stop to Companion clients correctly 2018-02-04 12:31:28 +01:00
croneter
820b514740 Fix KeyErrors 2018-02-04 12:22:10 +01:00
croneter
57ec06ae4d Don't empty entire playqueue on Kodi exit 2018-02-04 12:17:05 +01:00
croneter
3174521475 Reintroduce Kodi playlist polling
There is no way around it - Kodi does not tell if the user swaps items in the Kodi playlist, unfortunately
2018-02-04 12:06:39 +01:00
croneter
199939c8b7 Fix skipping back in Kodi playlist 2018-02-03 17:03:36 +01:00
croneter
8d1bd52328 Fix Companion KeyError for music playback 2018-02-03 16:49:58 +01:00
croneter
a6ce6ae8d2 Fix KeyError for Kodi playerids 2018-02-03 16:43:39 +01:00
croneter
fd4422fa65 Fix Kodi queueing several items 2018-02-03 16:40:24 +01:00
croneter
adb43b2bbf Prettify 2018-02-03 16:20:10 +01:00
croneter
68887772df Fix missing containerKey 2018-02-03 16:16:53 +01:00
croneter
a2b4b48ddc Less logging 2018-02-03 15:57:37 +01:00
croneter
698217d374 Fix items being added twice to playqueue 2018-02-03 15:54:00 +01:00
croneter
c6edaf4304 Fix wrong exception type 2018-02-03 15:46:41 +01:00
croneter
bee845ca95 Fix PKC clearing Kodi playlist 2018-02-03 15:12:10 +01:00
croneter
35536fdc2f Remove obsolete playlistitem attribute 2018-02-03 15:04:05 +01:00
croneter
48dc22ee35 Fix PlaylistError 2018-02-03 14:59:43 +01:00
croneter
76bd6e934a Fix PlaylistError 2018-02-03 14:54:54 +01:00
croneter
6075642e9e Fix logging 2018-02-03 14:49:56 +01:00
croneter
c8c453c031 Clear playqueue if there was only 1 item in it 2018-02-03 14:26:58 +01:00
croneter
6cf5a08038 Less logging 2018-02-03 14:09:29 +01:00
croneter
5613d76d95 Less logging 2018-02-03 14:05:18 +01:00
croneter
0d11c6db58 Fix context menu playback 2018-02-03 14:04:17 +01:00
croneter
73f7fc7644 Less logging 2018-02-03 13:54:39 +01:00
croneter
a2193ab01f Prettify 2018-02-03 13:44:16 +01:00
croneter
bd85bb445e Enable context menu playback 2018-02-03 12:45:48 +01:00
croneter
a6a8c18711 Prettify 2018-02-01 13:55:40 +01:00
croneter
187a6131f0 Prettify 2018-02-01 08:19:51 +01:00
croneter
3fe1f184d6 Prettify 2018-02-01 07:56:54 +01:00
croneter
ff09ae6457 Force lowercase protocol for plugin playback 2018-02-01 07:44:12 +01:00
croneter
128582bf96 Fix Kodi player seeking too often 2018-02-01 07:16:09 +01:00
croneter
ef1baa2d1d Revert "Fix Kodi player seeking too often"
This reverts commit c5a3741289.
2018-02-01 07:15:37 +01:00
croneter
c5a3741289 Fix Kodi player seeking too often 2018-02-01 07:15:22 +01:00
croneter
a95e07d32b Enable resume for playback initiated by Companion 2018-01-31 20:54:11 +01:00
croneter
3aa5ee0408 Remove playbackutils.py 2018-01-31 07:47:43 +01:00
croneter
0eb526add4 Enable Kodi playback for an entire PMS xml 2018-01-31 07:42:23 +01:00
croneter
336d50cd3a Fix UnboundLocalError for Direct Paths 2018-01-30 07:51:14 +01:00
croneter
fc9ea2444e Introduce PlaylistError exception 2018-01-30 07:50:44 +01:00
croneter
a6e9869a14 Fix channels playback 2018-01-28 18:06:30 +01:00
croneter
fd2c6115fc Reduce logging 2018-01-28 17:56:33 +01:00
croneter
e661236440 Fix resume playback outside Kodi library 2018-01-28 17:53:51 +01:00
croneter
2d8bd3051a Fix PKC restoring cache directories 2018-01-28 17:36:36 +01:00
croneter
83833d76b3 Fix missing resume points 2018-01-28 17:28:02 +01:00
croneter
dfd5297cd3 Revamp playback start, part 7 2018-01-28 17:21:28 +01:00
croneter
0e3a7a1673 Encode listitem paths 2018-01-28 15:24:41 +01:00
croneter
88f9ec3dfa Merge branch 'hotfixes' of https://github.com/Pavuucek/PlexKodiConnect into Pavuucek-hotfixes 2018-01-28 13:59:48 +01:00
croneter
bc26d53945 Fix Kodi suddenly marking item as played 2018-01-28 13:55:00 +01:00
croneter
8da730ed8d Wait a bit less 2018-01-28 13:31:35 +01:00
croneter
ec0d382206 Fix releasing of default.py 2018-01-28 13:30:50 +01:00
croneter
15f6d7bf18 Let Kodi decide whether an item is resumable 2018-01-28 13:29:27 +01:00
croneter
f32d2cfcfc Revert "Let Kodi decide whether item is resumable"
This reverts commit d1fc9c0bff.
2018-01-28 13:28:29 +01:00
croneter
d1fc9c0bff Let Kodi decide whether item is resumable 2018-01-28 13:28:05 +01:00
croneter
2243bc42aa Fix release of default.py 2018-01-28 13:26:25 +01:00
croneter
05f9f56a4d More logging 2018-01-28 13:24:42 +01:00
croneter
dde330a704 Fix requests verify ssl certificate 2018-01-28 13:23:47 +01:00
croneter
906f61a847 Fix resume playback for extended context menu 2018-01-28 12:52:31 +01:00
croneter
6e6fbadb02 Fix repeated playback of same resumable item 2018-01-26 09:47:58 +01:00
croneter
cfff75926a Revamp playback start, part 6 2018-01-25 17:15:38 +01:00
croneter
510952f9de Avoid error in log file 2018-01-24 07:40:28 +01:00
Michal Kuncl
db0d629302 Restore cache directories after deleting. Fixes #392 2018-01-23 21:39:55 +01:00
croneter
307806e65f Fix playback starting in the background 2018-01-23 20:38:50 +01:00
croneter
e8d9252891 Prettify 2018-01-23 19:13:47 +01:00
croneter
4b0fa90f5e Remove obsolete code 2018-01-23 19:10:18 +01:00
croneter
4d79a17738 Detect resume playback outside of widgets also 2018-01-23 19:07:05 +01:00
croneter
66f6605406 Fix TypeError when logging weird PMS answers 2018-01-23 08:07:19 +01:00
croneter
e6520ad2e8 Fix KeyError on playback start 2018-01-23 07:59:53 +01:00
tomkat83
287b888b6f Revamp playback start, part 5 2018-01-22 11:20:37 +01:00
tomkat83
2791da9f65 Revamp playback start, part 4 2018-01-21 18:31:49 +01:00
croneter
7ecaa376a2 Revamp playback start, part 3 2018-01-21 13:42:22 +01:00
croneter
fb7eafb27a Revamp playback start, part 2 2018-01-10 20:14:05 +01:00
croneter
24f2f60209 Fix TypeError when PMS answer empty 2018-01-09 19:54:54 +01:00
tomkat83
f0a2955b83 Revamp playback start, part 1 2018-01-07 17:50:30 +01:00
tomkat83
671424ecbe Move PKC Kodi master lock hack to PKC startup 2018-01-07 15:44:20 +01:00
tomkat83
36bcd70c9d Do not check plex.tv connection on startup 2018-01-07 15:20:25 +01:00
tomkat83
607fdab326 Force-set some important Kodi settings
- Fixes #389
2018-01-07 15:16:53 +01:00
tomkat83
eb6b1fbe48 Remove obsolete code 2018-01-07 10:56:24 +01:00
tomkat83
e17824609a Greatly simplify handling of PKC playqueues 2018-01-06 15:19:12 +01:00
tomkat83
e0f1225c21 Move plex_playbackProbs to state.py 2018-01-06 12:55:24 +01:00
tomkat83
546e79d925 Move propertiesPlayback from window to state.py 2018-01-03 17:50:01 +01:00
tomkat83
ec4a5d2b7c Prettify 2018-01-02 15:39:48 +01:00
tomkat83
359a8d0221 Revert "Fix Plex ratingKey being stored as int, not str"
This reverts commit 6bfd67a41d.
2018-01-02 15:12:01 +01:00
tomkat83
f4e83f6be5 Better detect if PKC playback init is still ongoing 2018-01-02 15:11:49 +01:00
tomkat83
93b878ad78 Fix playlist item representation (str, not int) 2018-01-02 15:10:23 +01:00
tomkat83
6bfd67a41d Fix Plex ratingKey being stored as int, not str 2018-01-02 14:31:57 +01:00
tomkat83
b84a833e0d Remove unreliable check for playback init 2018-01-02 14:30:54 +01:00
tomkat83
ac3be93894 More Plex Companion fixes 2018-01-02 13:28:25 +01:00
tomkat83
95356d9483 Fix headers 2018-01-02 12:13:41 +01:00
tomkat83
14183cccca Fix Plex Companion headers & URL arguments 2018-01-02 11:48:44 +01:00
tomkat83
3a9f65d908 Remove obsolete code 2018-01-02 10:58:28 +01:00
tomkat83
18a9e77b33 Plex Companion optimizations 2018-01-01 18:36:28 +01:00
tomkat83
2e5249ca4f Don't allow spaces in devicename 2018-01-01 17:15:01 +01:00
tomkat83
6caa759ce1 Fix wrong partIndex 2018-01-01 14:23:08 +01:00
tomkat83
d8e4093696 Use variable.py's machineIdentifier 2018-01-01 13:46:21 +01:00
tomkat83
6c0ab38193 Fix wrong Plex machineIdentifier 2018-01-01 13:40:45 +01:00
tomkat83
5337ae5715 Major Plex Companion overhaul, part 6 2018-01-01 13:28:39 +01:00
tomkat83
cf15799df2 Clear and remove-items from Kodi playqueues once 2017-12-30 12:57:23 +01:00
tomkat83
ba0f22ac1e Prettify 2017-12-28 21:46:48 +01:00
tomkat83
bfefef548e Fix typo 2017-12-28 21:32:12 +01:00
tomkat83
2f90674f51 Major Plex Companion overhaul, part 5 2017-12-28 21:31:05 +01:00
tomkat83
e4ea7692b2 Add json to skip to certain playqueue position 2017-12-28 21:23:50 +01:00
tomkat83
4b5f7868bb Fix typo 2017-12-28 20:47:23 +01:00
tomkat83
f5a6531386 Fix typos 2017-12-28 18:29:51 +01:00
tomkat83
e358e9b3a5 PKC playqueues now log as dicts for pprint 2017-12-28 17:32:58 +01:00
tomkat83
771520cd96 Save transient token earlier to PKC playqueue 2017-12-28 16:56:48 +01:00
tomkat83
11df634c91 Fix TypeError 2017-12-28 15:45:48 +01:00
tomkat83
48c05c415d Merge branch 'patch-1' of https://github.com/Draic/PlexKodiConnect into Draic-patch-1 2017-12-28 15:33:38 +01:00
tomkat83
244a8e308f Disable Kodi msg "Loading media info from files" 2017-12-28 15:30:56 +01:00
tomkat83
6e00838ef0 Prettify 2017-12-28 15:24:36 +01:00
Draic
1ca8a46473
Hi10p should only trigger on h264
changed h265 to h264 as this should be the intended codec.
2017-12-23 16:42:40 +01:00
croneter
02f48dd15f Prettify 2017-12-21 09:43:16 +01:00
croneter
4547ec52af Major Plex Companion overhaul, part 4 2017-12-21 09:28:06 +01:00
tomkat83
47779bbbee Modify logging 2017-12-15 16:22:03 +01:00
tomkat83
72de3b6796 Companion: enable audio and subtitle stream switch 2017-12-15 16:11:19 +01:00
tomkat83
f0a3cd8c55 Avoid RuntimeError on exit 2017-12-15 16:08:20 +01:00
tomkat83
39d7bfd80f Clean up json_rpc 2017-12-15 13:22:12 +01:00
croneter
5f4016e22e Clean-up 2017-12-14 17:39:50 +01:00
croneter
bb0ba08329 Also update volume and mute on PMS updates 2017-12-14 17:19:09 +01:00
croneter
7100802cab Ensure that PKC signals playback stop on shutdown 2017-12-14 15:54:28 +01:00
croneter
502c013af0 Update all Kodi player properties for Companion update 2017-12-14 15:20:41 +01:00
croneter
b520fe2b79 Fix playstate remaining at zero 2017-12-14 10:34:40 +01:00
croneter
8189eb6b4c Companion: fix audio stream and subtitle stream 2017-12-14 10:22:48 +01:00
croneter
0b54e24947 Never have negative playstates 2017-12-14 10:21:30 +01:00
croneter
c0e7c78a11 Major Plex Companion overhaul, part 3 2017-12-14 08:29:38 +01:00
croneter
80c106d57f Fix some IndexErrors and KeyErrors 2017-12-13 20:41:29 +01:00
croneter
9cac51d5c9 Major Plex Companion overhaul, part 2 2017-12-13 20:14:27 +01:00
croneter
cc347d5654 Fix some KeyErrors 2017-12-11 19:24:21 +01:00
tomkat83
b1e2791ca8 Major Plex Companion overhaul, part 1 2017-12-10 19:01:22 +01:00
tomkat83
c3b5054477 Fixes to Companion /poll replies 2017-12-09 17:23:50 +01:00
tomkat83
41abcc8d2c Remove plexbmc plexsettings.py 2017-12-09 16:30:52 +01:00
tomkat83
90c76aa997 Init unique machine identifier earlier 2017-12-09 16:18:46 +01:00
tomkat83
39014fe7f4 Move kodi webserver details to state.py 2017-12-09 15:41:07 +01:00
tomkat83
cdd38c6ef7 Optimize some imports 2017-12-09 14:35:08 +01:00
tomkat83
73c7f866e6 Security fix: Companion shall not send Plex token 2017-12-09 13:54:30 +01:00
tomkat83
843bedbee6 Switch Companion to use json_rpc.py 2017-12-09 13:47:19 +01:00
tomkat83
cceb110354 Always return JSON RPC answer 2017-12-08 20:41:11 +01:00
tomkat83
9380a23867 Fix typo 2017-12-08 20:35:32 +01:00
tomkat83
dfdc6eefd0 Move jsonrpc function 2017-12-08 20:32:10 +01:00
tomkat83
34cd0fadb4 Delete obsolete screensaver function 2017-12-08 20:24:36 +01:00
croneter
f2bc95813a Centralize Kodi json rpc 2017-12-08 19:43:06 +01:00
croneter
f6b666e892 Move companion json rpc commands 2017-12-08 07:53:01 +01:00
croneter
a09b6a4562 Fix SSLError not being recognized as such
ConnectionError is ancestor of SSLError
2017-12-07 18:22:52 +01:00
croneter
18a5bcd7db Fix potentially telling wrong PMS to stop transcode 2017-12-07 18:19:54 +01:00
croneter
e6a5b1c157 Move Kodi playback info to state.py 2017-12-07 17:25:48 +01:00
croneter
65a48ebe7b Attach PMS xml piece to playlist item 2017-12-07 17:25:24 +01:00
croneter
2a6d8757e6 Class must only be initiated and used once
Hence no borg necessary
2017-12-07 17:15:54 +01:00
croneter
208997b167 Remove obsolete method 2017-12-07 17:15:13 +01:00
croneter
dc590d7ed1 Fx docstrings 2017-12-06 18:05:01 +01:00
croneter
a2a925edc0 Add docstrings 2017-12-06 11:40:27 +01:00
croneter
116a2956ac Minor Plex Companion improvements 2017-12-05 11:14:41 +01:00
tomkat83
9052b84011 Fix .strm playback failing for addon paths
- Partially fixes #354
2017-12-04 19:50:12 +01:00
tomkat83
f86582689b Only transcode 10bit video for h265
- Fixes #367
2017-12-04 19:41:59 +01:00
tomkat83
3e9e572e3c Merge branch 'hotfixes' of https://github.com/croneter/PlexKodiConnect into hotfixes 2017-11-05 12:53:05 +01:00
tomkat83
f1c784d458 Support playback of .strm files 2017-11-05 12:51:45 +01:00
croneter
eb66435d2d Russian translation, thanks @UncleStark, @xom2000, @AlexFreit 2017-10-09 22:28:31 +02:00
croneter
a8d4e2b8c1 Fix ValueError for channels 2017-10-09 22:12:30 +02:00
croneter
eaff533489 Fix AttributeError if Plex key is missing 2017-10-06 08:46:05 +02:00
croneter
e3dba1974f Code optimization 2017-10-06 08:42:04 +02:00
croneter
f3c71fadf2 Deal better with missing stream info (e.g. channels) 2017-10-06 08:41:16 +02:00
croneter
38d611aa27 PEP8 2017-10-06 08:09:21 +02:00
croneter
2f073c3a15 Enable channels for Plex home users 2017-10-02 18:18:05 +02:00
croneter
1e8ec2f0d7 Remove obsolete PKC settings show contextmenu 2017-10-02 17:49:57 +02:00
croneter
02a60fac20 Revert "More descriptive downloadable subtitles"
This reverts commit 8af180968b.
2017-10-02 17:41:28 +02:00
croneter
cb285f97e7 Revert "Fix subtitle languages showing up as unknown"
This reverts commit 345a24f896.
2017-10-02 17:36:54 +02:00
croneter
345a24f896 Fix subtitle languages showing up as unknown
- Fixes #342
2017-09-28 14:13:00 +02:00
tomkat83
12cf23a4b5 Revert "Sleep a bit before marking item as fully watched" 2017-09-23 18:52:42 +02:00
tomkat83
2bddec60db Fix items not getting marked as fully watched
- Hopefully fixes #341
2017-09-23 18:49:59 +02:00
tomkat83
aa83776a8b Move MARK_PLAYED_AT to variables.py 2017-09-23 18:40:30 +02:00
dazedcrazy
5cebbcb763 Update itemtypes.py 2017-09-23 14:56:26 +01:00
croneter
741c00ed64 Update translations 2017-09-17 14:07:14 +02:00
croneter
14b8df4f9c Fix Alexa websocket not exiting on Handshake Status 403 2017-09-15 20:01:20 +02:00
croneter
d7c3be5a68 Sleep a bit before marking item as fully watched 2017-09-13 20:21:09 +02:00
croneter
eaff13998b Remove obsolete imports 2017-09-13 20:01:17 +02:00
croneter
a3514ec104 Don't sleep before updating playstate to fully watched 2017-09-13 19:59:16 +02:00
croneter
14fc334422 Fix IndexError e.g. for channels if stream info missing 2017-09-13 15:41:06 +02:00
croneter
02ba51bc15 Merge branch 'hotfixes' of https://github.com/croneter/PlexKodiConnect into hotfixes 2017-09-13 15:32:49 +02:00
croneter
256d2c3f87 Fix KeyError for TV live channels for getGeople 2017-09-13 15:32:44 +02:00
tomkat83
9c17b8503a Reduce number of imports 2017-09-10 15:22:06 +02:00
tomkat83
6ed00a7b11 Reduce number of imports 2017-09-10 15:12:53 +02:00
tomkat83
47675bc60f Greatly speed up displaying context menu 2017-09-10 15:09:32 +02:00
tomkat83
cb39dbd19d Move pickl_window function 2017-09-10 15:06:46 +02:00
croneter
425915beaa Merge branch 'master' into hotfixes 2017-09-08 12:56:44 +02:00
croneter
826712340b Fix library sync crashing trying to display an error
- Fixes #340
2017-09-08 12:54:43 +02:00
croneter
6d4ad61c7b Ignore PMS message related to a bunch of items 2017-09-08 12:36:26 +02:00
croneter
060bc6f1d1 Detect Plex item deletion more reliably 2017-09-08 12:34:13 +02:00
croneter
1f0baf5128 Ignore PMS message related to an entire library 2017-09-08 12:12:29 +02:00
croneter
274ed4b430 Background sync now picks up more PMS changes 2017-09-08 12:06:31 +02:00
croneter
5fcccba105 Compile regex only once 2017-09-06 19:55:27 +02:00
croneter
fc03ebc8d4 Remove obsolete timestamp 2017-09-06 19:30:19 +02:00
croneter
3ada7d1a98 More specific exception handling 2017-09-06 19:26:48 +02:00
croneter
da4be6d7e4 Fix changed Plex metadata not synced repeatedly 2017-09-06 19:24:26 +02:00
croneter
81084ea479 Increase logging for websockets 2017-09-06 14:14:42 +02:00
croneter
b555df1061 Remove obsolete log level code 2017-09-06 13:43:52 +02:00
croneter
b0c62be75f Adjust log levels 2017-09-06 13:39:44 +02:00
croneter
32c43855f7 PKC logging now uses Kodi log levels 2017-09-06 13:31:15 +02:00
croneter
41b4493072 Sleep longer 2017-09-03 13:30:50 +02:00
croneter
d4bb8eed84 Fix resuming interrupted sync 2017-09-03 13:28:40 +02:00
croneter
882c592e45 Fix detecting changes to PKC settings 2017-09-03 13:23:18 +02:00
croneter
1a91149b5f Optimize code 2017-09-03 12:46:41 +02:00
croneter
ff1eb674b3 Revert "Adjust initial states"
This reverts commit e7de0f9218.
2017-09-03 12:44:03 +02:00
croneter
430b10ec1c Increase logging 2017-09-01 12:31:58 +02:00
croneter
e7de0f9218 Adjust initial states 2017-09-01 12:28:29 +02:00