Commit graph

61 commits

Author SHA1 Message Date
croneter
b4ec68bf82 Refactoring: move all exceptions in a single module 2021-09-13 11:24:06 +02:00
croneter
427fc47e7a Remove obsolete imports 2020-12-27 17:22:22 +01:00
croneter
9c975cfe24 Fix playlist sync: __bool__ returning str instead of bool 2020-12-27 17:22:15 +01:00
croneter
193778f0f4 Fix hashing for playlists 2020-12-27 17:22:15 +01:00
croneter
88a84672c3 Remove encoding and decoding of filepaths 2020-12-27 17:22:14 +01:00
croneter
c22b4c782d Remove obsolete encodes and decodes 2020-12-27 13:16:44 +01:00
croneter
e32fa567bc Adjust urllib.parse unquote, quote, quote_plus, unquote 2020-12-27 13:16:42 +01:00
croneter
4b4dc1afbf Fix class __repr__ to account for Python 3 2020-12-18 19:59:33 +01:00
croneter
58eaa14043 Clean up imports 2020-12-18 17:43:24 +01:00
croneter
436b1fda83 Automatically convert source code from Python 2 to 3 using futurize 2020-12-18 17:10:20 +01:00
croneter
1207ab485c Fix rare KeyError: None when trying to sync the playlist 2020-12-17 17:33:55 +01:00
croneter
25f972f30f Refactor direct and add-on paths. Enables use of Plex music playlists synched to Kodi 2020-02-27 16:29:08 +01:00
croneter
80181873d1 Fix OperationalError when starting with a fresh PKC installation 2019-12-08 16:41:43 +01:00
croneter
f4ea051c81
Merge pull request #1073 from croneter/fix-userswitch
Optimize threads by using events instead of a polling mechanism. Fixes PKC becoming unresponsive, e.g. when switching users
2019-11-30 16:27:06 +01:00
croneter
c85e1e2bd0 Optimize threads by using events instead of a polling mechanism. Fixes PKC become unresponsive, e.g. when switching users 2019-11-30 13:48:51 +01:00
croneter
56324b1e88 Fix OperationalError when resetting PKC 2019-11-25 08:03:06 +01:00
croneter
80d55a5388 Fix PKC throwing error if m3u playlist contains resume information 2019-10-31 07:47:34 +01:00
croneter
34e84cd037 Correctly detect whether we already synched a Kodi playlist 2019-08-02 11:32:03 +02:00
croneter
335bfc34c5
Merge pull request #946 from croneter/faster-playlists
Faster sync of playlists
2019-08-02 10:50:55 +02:00
croneter
91da038413
Merge pull request #950 from croneter/fix-check
Remove obsolete check if path is indeed in unicode
2019-08-02 10:50:30 +02:00
croneter
46830d29a9
Merge pull request #949 from croneter/unicode
Add unicode representation to Playlist() class
2019-08-02 10:49:56 +02:00
croneter
26fa1ff909 Use file size and last modification time to compare Kodi playlist files instead of slow MD5 hash of file 2019-08-01 14:53:49 +02:00
croneter
dca1bb6835 Remove obsolete check 2019-08-01 14:51:45 +02:00
croneter
53f77a7a97 Add unicode representation to Playlist() class 2019-08-01 14:50:09 +02:00
croneter
85e0909105 Fix potential playlist sync issues with dot in playlist name 2019-08-01 14:38:44 +02:00
croneter
eb3e655213 Cleanup due to wrong assumption that kodi playlist hash was unique 2019-06-28 15:54:55 +02:00
croneter
a46cb731cf Refactor Plex API 2019-06-12 11:53:41 +02:00
croneter
1ac19109ba Turn urllib and urlparse unicode-safe 2019-03-30 17:32:42 +01:00
croneter
eef0eda426 Fix 'NoneType' object has no attribute 'kodi_path' 2019-03-16 17:47:23 +01:00
croneter
c99cead6f5 Ignore all file events for playlists caused by PKC 2019-03-10 13:22:38 +01:00
croneter
8c51ee5c7a Ignore all websocket playlist messages caused by PKC 2019-03-10 13:22:38 +01:00
croneter
62ecefdcca Less logging 2019-03-10 11:25:02 +01:00
croneter
873c9e74f5 Fix rare case where thousands of identical playlists could be generated 2019-02-08 15:15:52 +01:00
croneter
1787e51c7c Zentrally register threads and introduce a way to wait for their suspension 2019-02-06 14:19:10 +01:00
croneter
d09d2e6aaf Fix playlist sync: sequence item 0: expected string or unicode 2019-02-02 10:53:10 +01:00
croneter
a9f51f9ac4 Faster way to initialize playlists on the Plex side
- Partially fixes #578
2018-12-24 17:06:01 +01:00
croneter
e9f49be7f3 Fix PKC recreating playlists too often 2018-12-23 13:01:50 +01:00
croneter
db6a7ba9b4 Shutdown playlist sync if necessary
- Partially fixes #578
2018-12-23 11:12:47 +01:00
croneter
1c25441e99 Fix AttributeError when a playlist disappeared
- Should fix #568
2018-12-11 14:57:43 +01:00
croneter
dac7cdd47e Fix KeyError when synching playlists
- Should fix #568
2018-12-09 13:10:15 +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
a16eae143a Rewire kodi database access 2018-11-08 21:22:16 +01:00
croneter
9bab18367c Fix turning generator into list 2018-10-25 13:19:46 +02:00
croneter
4246711b1e Remove old plexdb_functions 2018-10-24 17:17:02 +02:00
croneter
e935b7c97b Rewire llibrary sync, part 3 2018-10-21 16:56:13 +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
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