Commit graph

3062 commits

Author SHA1 Message Date
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
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
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