Commit graph

4627 commits

Author SHA1 Message Date
croneter
ab52521f73 Fix UnboundLocalError: local variable 'identifier' referenced before assignment 2021-10-30 18:34:35 +02:00
Christopher Kaliszewski
20e6a3d24c Add auto skip intro functionality 2021-10-24 01:50:15 -04:00
croneter
20f5d9d561 Fix Kodi JSON racing condition on playback startup and KeyError 2021-10-22 21:20:08 +02:00
croneter
49fce5a2cd Track video streams as well; refactor reporting of playback progress; only switch audio stream if different 2021-10-20 14:55:39 +02:00
croneter
4f7e54591c Fix TypeError for Plex Companion switching audio or subtitle stream 2021-10-19 08:36:05 +02:00
croneter
0d41321d7f Fix PKC not being able to register as a PMS client 2021-10-18 16:51:09 +02:00
croneter
aa14e8259f Fix Plex Web's Plex Companion connection terminating suddenly 2021-10-18 16:51:09 +02:00
croneter
f3754fa2e3 Use ThreadingHTTPServer instead of own threaded HTTPServer 2021-10-18 16:39:12 +02:00
croneter
8c64e2a17c Fix http server headers Connection:keep-alive and Content-Type for XMLs 2021-10-18 16:39:11 +02:00
croneter
e6171127dc Don't simply swallow all http server exceptions 2021-10-18 16:39:11 +02:00
croneter
d37fbb6c1a Remove obsolete BaseHTTPRequestHandler method 2021-10-18 16:39:11 +02:00
croneter
c107eb2ed8 Do not send a Connection: close header 2021-10-18 16:39:11 +02:00
croneter
492e235a53 If receiving a Companion request, reply with a code 200 xml 2021-10-18 16:39:11 +02:00
croneter
4d3e36fbdb Add missing HTTP headers that Plex for Window's Plex Companion uses 2021-10-18 16:39:11 +02:00
croneter
d8db463423 Improve logging for http client 2021-10-18 16:39:11 +02:00
croneter
f2e03e878e Do not close http output stream when responding 2021-10-18 09:53:26 +02:00
croneter
56a3cdbbd8 Use super() for subclassing BaseHTTPRequestHandler 2021-10-18 08:58:09 +02:00
croneter
ff5df50bb7 Lost patience with Kodi 19: drop use of Python multiprocessing entirely 2021-10-17 11:34:08 +02:00
croneter
e0e899c6d0
Merge pull request #1661 from croneter/py3-fix-tmdb
Fix Receiving init() missing 1 required positional argument: ‘certification_country’
2021-10-16 11:46:02 +02:00
croneter
56755cf506 Fix Receiving init() missing 1 required positional argument: ‘certification_country’ 2021-10-16 11:40:43 +02:00
croneter
b2634d6f96 Update translations from Transifex 2021-10-09 18:09:12 +02:00
croneter
266e2975a9 Add playback settings to let the user choose whether Plex or Kodi provides the default audio and subtitle streams on playback start 2021-10-09 17:23:47 +02:00
croneter
d4f9dd427f
Merge pull request #1644 from croneter/py3-fix-multiprocessing
Android: Fix broken Python multiprocessing module (a Kodi 19.2 bug)
2021-09-30 14:57:33 +02:00
croneter
7e3a1c9ddc
Merge pull request #1643 from croneter/py3-fix-subs
Refactor stream code and fix Kodi not activating subtitle when it should
2021-09-30 14:57:21 +02:00
croneter
5f0a256a16
Merge pull request #1642 from croneter/py3-fix-typeerror
Direct Paths: Fix TypeError: "element indices must be integers" on playback startup
2021-09-30 14:57:02 +02:00
croneter
3d535fe2bf Android: Fix broken Python multiprocessing module (a Kodi 19.2 bug) 2021-09-30 14:33:43 +02:00
croneter
79e912e2bb Direct Paths: Fix TypeError: element indices must be integers for subtitles 2021-09-30 14:17:52 +02:00
croneter
fa28ebfac1 Fix whitespace 2021-09-30 13:31:23 +02:00
croneter
fee6e23a23 Refactor and fix Kodi not activating subtitle when it should 2021-09-30 13:12:37 +02:00
croneter
594ca9b667 Fix logging if fanart.tv lookup fails 2021-09-24 16:24:57 +02:00
croneter
33ad095080 Fix download not always returning entire requests.response object 2021-09-24 16:02:32 +02:00
croneter
22f4d22af8
Merge pull request #1629 from croneter/py3-tell-pms
Tell the PMS if a video's audio stream or potentially subtitle stream has changed. For subtitles, this functionality is broken due to a Kodi bug
2021-09-19 13:45:39 +02:00
croneter
3480c8fb49 Tell the PMS if a video's audio stream or potentially subtitle stream has changed. For subtitles, this functionality is broken due to a Kodi bug 2021-09-19 13:40:16 +02:00
croneter
e65ce668b7 Remove some obsolete comments 2021-09-19 13:37:24 +02:00
croneter
a1f2a676fb Refactor usage of a media part's id 2021-09-13 14:35:58 +02:00
croneter
b500b7b659 Refactoring: playlist and playqueue items to use API instead of xml 2021-09-13 13:26:04 +02:00
croneter
b4ec68bf82 Refactoring: move all exceptions in a single module 2021-09-13 11:24:06 +02:00
croneter
d7b0b670d1 Disentangle and optimize some code
Rename method

Simplify some code

Clarify some code
2021-09-13 10:09:03 +02:00
croneter
727cf98771 Transcoding: Fix Plex burning-in subtitles when it should not 2021-09-13 10:04:29 +02:00
croneter
6e5dac46bb Fix RecursionError if videos lie in a root directory 2021-09-11 16:47:28 +02:00
croneter
f1433c3e97 Implement Kodi's "Reset resume position" 2021-09-09 13:55:20 +02:00
croneter
930d930301 Initial compatibility with Kodi 20 Nexus 2021-09-08 11:28:34 +02:00
Antonio Martin
90e9c9c27f Used general term in fanart.tv mapping for prefix completion 2021-09-03 22:25:17 +02:00
Antonio Martin
32dc7697bc Download landscape artwork from fanart.tv 2021-09-03 22:24:59 +02:00
croneter
68cc54c2f4
Merge pull request #1600 from croneter/py3-fix-subtitles
Use Plex settings for audio and subtitle stream selection. This is a best guess regarding subtitles as Plex and Kodi are not sharing much info
2021-09-03 22:19:33 +02:00
croneter
789d8459d1 Fix PlexKodiConnect setting the Plex subtitle to None 2021-09-03 22:13:32 +02:00
croneter
43cc23505a Use Plex settings for audio and subtitle stream selection 2021-09-03 17:54:27 +02:00
croneter
b738688096 Revert "Fix PlexKodiConnect changing subtitles for all videos on the PMS"
This reverts commit 3ef55f5526.
2021-09-03 17:46:39 +02:00
croneter
3ef55f5526 Fix PlexKodiConnect changing subtitles for all videos on the PMS 2021-08-22 18:03:54 +02:00
croneter
ab737ca5d0 Addon Paths: Fix Kodi scanning entire video file on playback start 2021-08-15 11:08:21 +02:00
croneter
2a06103eba Improve logging for converting Unix timestamps 2021-08-01 15:41:58 +02:00
croneter
b222df108d
Merge pull request #1563 from croneter/py3-fix-context-manager
Fix errors when PKC tries to edit files that don't exist yet
2021-07-25 15:25:25 +02:00
croneter
f2d94d9cb5 Fix AttributeError: module 'resources.lib.utils' has no attribute 'ParseError' 2021-07-25 15:21:54 +02:00
croneter
953b8383bb Fix errors when PKC tries to edit files but they don't exist yet 2021-07-25 15:20:43 +02:00
croneter
5b32021e26 Fix Regression: AttributeError 2021-07-25 11:03:34 +02:00
croneter
6974cff389
Merge pull request #1554 from croneter/py3-fix-recursion
Fix RecursionError: maximum recursion depth exceeded
2021-07-25 10:58:25 +02:00
croneter
cbcc4d1a74
Merge pull request #1553 from croneter/py3-fix-websocket
Bump websocket client: fix AttributeError: 'NoneType' object has no attribute 'is_ssl'
2021-07-25 10:57:42 +02:00
croneter
b1979262fe Fix RecursionError: maximum recursion depth exceeded 2021-07-25 10:53:22 +02:00
croneter
0cc271031c Bump websocket client: fix AttributeError: 'NoneType' object has no attribute 'is_ssl' 2021-07-25 10:30:27 +02:00
croneter
96e67d31fb Fix a racing condition that could lead to the sync getting stuck 2021-07-25 10:19:20 +02:00
croneter
38e4f6e20f
Merge pull request #1545 from croneter/py3-locked-database
Fix likelyhood of `database is locked` error occuring
2021-07-23 11:04:16 +02:00
croneter
a83bac03aa
Merge pull request #1544 from croneter/py3-increase-logging
Fix a racing condition that could lead to the sync process getting stuck
2021-07-23 11:03:59 +02:00
croneter
1711beaf95
Merge pull request #1541 from croneter/py3-fix-attributeerror
Fix AttributeError: module 'urllib' has no attribute 'parse'
2021-07-23 11:03:49 +02:00
croneter
ce72f07fec
Merge pull request #1538 from croneter/py3-anidb
Support for the Plex HAMA agent to let Kodi identify animes (using Kodi's uniqueID 'anidb')
2021-07-23 11:03:35 +02:00
croneter
7c2ad31a21 Fix likelyhood of database is locked error occuring 2021-07-23 10:49:10 +02:00
croneter
143c6271aa Switch to context manager 2021-07-23 10:31:09 +02:00
croneter
07a69a8fa5 Remove obsolete methods 2021-07-23 10:31:09 +02:00
croneter
c664f05718 Fix a racing condition that could lead to the sync getting stuck
Fixup racing
2021-07-23 10:30:51 +02:00
croneter
e36656dc81 Improve logging
fixup logging
2021-07-23 10:30:45 +02:00
croneter
78a3cc434a Fix AttributeError: module 'urllib' has no attribute 'parse' 2021-07-18 14:46:04 +02:00
BrutuZ
423e87046d Support forced HAMA IDs when using tvdb uniqueID 2021-07-18 12:20:57 +02:00
BrutuZ
b8569df1b3 Support for the Plex HAMA agent to let Kodi identify animes (using Kodi's uniqueID 'anidb')
Support HAMA's forced AniDB IDs
2021-07-18 12:18:48 +02:00
croneter
3983011066
Merge pull request #1520 from croneter/py3-update-translations
Update translations from Transifex
2021-06-05 15:44:52 +02:00
croneter
defa43d596
Merge pull request #1515 from croneter/py3-fix-versions
Fix auto-picking of video stream if several video versions are available
2021-06-05 15:44:20 +02:00
croneter
4f9c2d88ea Update translations from Transifex 2021-06-05 15:41:53 +02:00
croneter
f3b97e42f8 Fix auto-picking of video stream if several video versions are available 2021-06-05 14:54:13 +02:00
croneter
f53d817908 Add an additional Plex Hub "PKC Continue Watching" that merges the Plex Continue Watching with On Deck 2021-06-05 14:05:20 +02:00
croneter
bb3fa955b2 Fix websockets and AttributeError: 'NoneType' object has no attribute 2021-05-29 16:41:19 +02:00
croneter
485dfeceb6
Merge pull request #1499 from croneter/fix-arrow
Get rid of Python arrow; hopefully fix many Python import errors (also occuring in other add-ons!)
2021-05-26 21:06:01 +02:00
croneter
8d2b3ac1af Get rid of Python arrow; hopefully fix many Python import errors (also occuring in other add-ons!) 2021-05-26 21:00:41 +02:00
croneter
c0ec4cc23e Attempt to fix websocket threading issues and AttributeError: 'NoneType' object has no attribute 'is_ssl' or 'settimeout' 2021-05-26 20:50:55 +02:00
croneter
6d566c6cd2
Merge pull request #1490 from croneter/py3-update-websockets
Update websocket client to 1.0.0
2021-05-24 20:30:01 +02:00
croneter
9872266c61
Merge pull request #1494 from croneter/py3-fix-typeerror
Fix videos not starting due to a TypeError
2021-05-24 20:29:52 +02:00
croneter
7720d3f392 Fix videos not starting due to TypeError 2021-05-24 20:26:25 +02:00
croneter
f5b8084543 Show warning message to remind user to use Estuary for database resets 2021-05-24 15:51:41 +02:00
croneter
cb7a5c04e0 Update websocket client to 1.0.0 2021-05-24 13:02:57 +02:00
croneter
0e1d6c5832
Merge pull request #1486 from croneter/py3-fix-direct-paths
Direct Paths: fix several issues with episodes
2021-05-24 09:43:26 +02:00
croneter
bf5591354b Force PKC database reset 2021-05-24 09:39:26 +02:00
croneter
5a0de0e5f7 Fix PKC widgets not working at all in some cases 2021-05-24 09:35:36 +02:00
croneter
cfdcfb4bc4 Direct Paths: fix several issues with episodes 2021-05-23 18:03:18 +02:00
croneter
f33152049e
Merge pull request #1472 from croneter/py3-fix-attributeerror
Fix AttributeError: module 'shutil' has no attribute 'copy_tree'
2021-05-14 08:52:08 +02:00
croneter
4f8b4a9f44 Fix AttributeError: module 'shutil' has no attribute 'copy_tree' 2021-05-14 08:46:06 +02:00
croneter
56a74255b6 Fix Alexa and RuntimeError: dictionary keys changed during iteration 2021-05-02 14:35:24 +02:00
croneter
7760174900 Fix regression: fix add-on paths always falling back to direct paths 2021-05-02 14:10:33 +02:00
croneter
991eaad5df
Merge pull request #1464 from croneter/fix-message
Add PKC setting to disable verification whether we can access a media file
2021-05-02 13:50:14 +02:00
croneter
e6bf68b6f2
Merge pull request #1463 from croneter/adjust-paths
Direct paths: corrections to more closely mirror Kodi's way of saving movie and tv show files to the db
2021-05-02 13:49:53 +02:00
croneter
74a19966d2
Merge pull request #1462 from croneter/fix-playlists
Make sure that the correct file system encoding is used for playlists
2021-05-02 13:49:27 +02:00
croneter
054332079d Require Kodi database reset for PKC versions < 3.1.3 2021-05-02 13:40:02 +02:00
croneter
a355aee718 Direct paths: set exclude=0 and allAudio=0 in video path table 2021-05-02 13:38:31 +02:00
croneter
f716df0c29 Direct paths: fix pathId in Kodi movie table 2021-05-02 13:38:25 +02:00