Commit graph

81 commits

Author SHA1 Message Date
croneter
436b1fda83 Automatically convert source code from Python 2 to 3 using futurize 2020-12-18 17:10:20 +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
80abe0b34b Fix playback report not working after having played a non-Plex video file 2019-08-10 12:01:23 +02:00
croneter
a46cb731cf Refactor Plex API 2019-06-12 11:53:41 +02:00
croneter
36c78b0d6e Fix PKC trying to initialize playqueues over and over again 2019-02-23 08:53:37 +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
6dc436da91 Rewire PKC startup and authentication mechanism 2018-11-25 17:03:19 +01:00
croneter
e87edb07f0 Fix PKC playQueue manager not picking up Plex ids correctly 2018-11-23 09:05:51 +01:00
croneter
3e41f63c62 Move xbmc.Player() 2018-11-23 08:41:05 +01:00
croneter
2aadcbd198 Fix AttributeError 2018-11-20 18:39:18 +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
4e0429fcc9 Fix switching to __future__ module
- Fixes #507
2018-07-12 18:46:02 +02:00
croneter
c0d78bd273 Refactor code 2018-07-11 21:24:27 +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
1234f61fc0 Fix encoding of file and path operations 2018-06-23 18:25:18 +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
136461160f Merge branch 'master' into playlists 2018-06-03 14:26:55 +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
61b0645314 Rename function 2018-05-02 15:34:21 +02:00
Croneter
ba0aff0f54 Rename function 2018-05-01 18:08:31 +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
c05b772e90 Make sure that LOCK is released after adding one element
- Partially fixes #446
2018-03-31 20:34:09 +02: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
121e8e0243 Hack for repeatedly starting same video using Addon Paths 2018-02-16 17:25:17 +01:00
croneter
c55b687495 Catch PlaylistError in PlayqueueMonitor 2018-02-15 16:45:34 +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
e393547e13 Compare playqueue items more reliably 2018-02-07 14:57:36 +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
c6edaf4304 Fix wrong exception type 2018-02-03 15:46:41 +01:00
croneter
a95e07d32b Enable resume for playback initiated by Companion 2018-01-31 20:54:11 +01:00
croneter
0eb526add4 Enable Kodi playback for an entire PMS xml 2018-01-31 07:42:23 +01:00
croneter
fb7eafb27a Revamp playback start, part 2 2018-01-10 20:14:05 +01:00
tomkat83
e17824609a Greatly simplify handling of PKC playqueues 2018-01-06 15:19:12 +01:00
tomkat83
5337ae5715 Major Plex Companion overhaul, part 6 2018-01-01 13:28:39 +01:00
tomkat83
2f90674f51 Major Plex Companion overhaul, part 5 2017-12-28 21:31:05 +01:00
tomkat83
771520cd96 Save transient token earlier to PKC playqueue 2017-12-28 16:56:48 +01:00
croneter
4547ec52af Major Plex Companion overhaul, part 4 2017-12-21 09:28:06 +01:00
tomkat83
cdd38c6ef7 Optimize some imports 2017-12-09 14:35:08 +01:00
croneter
f2bc95813a Centralize Kodi json rpc 2017-12-08 19:43:06 +01:00
tomkat83
cee2bfcc6c Better way to sync progress to another account
- Partially fixes #297
2017-05-25 14:21:27 +02:00