Commit graph

4128 commits

Author SHA1 Message Date
croneter
c1bb083933 Cleanup plex_api.py 2019-03-30 17:32:42 +01:00
croneter
1ac19109ba Turn urllib and urlparse unicode-safe 2019-03-30 17:32:42 +01:00
croneter
b4d036ed6b Monkey patch xml.etree.ElementTree to always return unicode 2019-03-30 09:56:22 +01:00
croneter
d5781d0906 Remove obsolete method 2019-03-30 09:54:31 +01:00
croneter
88cc4e220c Remove obsolete method 2019-03-30 09:54:24 +01:00
croneter
5aa7e1d39b
Merge pull request #805 from croneter/update-translations
Update translations
2019-03-29 14:25:49 +01:00
croneter
068379c0eb
Merge pull request #802 from croneter/quick-fix-direct-paths
Fix UnicodeEncodeError for Direct Paths and some PKC video nodes
2019-03-29 14:25:37 +01:00
croneter
2c4fcfa581 Update translations 2019-03-29 14:24:28 +01:00
croneter
e1bdce2b99 Revert need to reset the Kodi DB 2019-03-29 14:03:46 +01:00
croneter
90f445cc75 Fix UnicodeEncodeError 2019-03-28 20:08:45 +01:00
croneter
2013b498d6 Add function to urlencode unicode 2019-03-28 20:07:40 +01:00
croneter
456897a3cc
Merge pull request #800 from croneter/fix-direct-music
Fix duplicate music entries for direct paths (forces a Kodi database reset!)
2019-03-28 14:04:53 +01:00
croneter
de80885aa5 Fix playback sometimes not being reported for direct paths 2019-03-28 13:48:50 +01:00
croneter
c308c06929 Fix duplicate music entries for direct paths (requires DB reset!) 2019-03-28 13:47:35 +01:00
croneter
de19813a85
Merge pull request #794 from croneter/fix-nfs-masterlock
Fix Kodi Masterlock for nfs paths (requires restart)
2019-03-26 18:49:50 +01:00
croneter
648d88b9b2
Merge pull request #791 from croneter/fix-widget-loading
Wait for PKC to authorize before loading widgets
2019-03-26 18:48:51 +01:00
croneter
c072f0f439
Merge pull request #790 from croneter/fix-startup
Fix TypeError on Kodi start
2019-03-26 18:48:34 +01:00
croneter
5a8eb0db4b Fix Kodi Masterlock for nfs paths (requires restart) 2019-03-26 18:00:35 +01:00
croneter
8a2ce01aee Wait for PKC to authorize before loading widgets 2019-03-25 20:54:55 +01:00
croneter
448714e6a2 Fix TypeError on Kodi start 2019-03-25 20:51:28 +01:00
croneter
d05c29776c Fix UnicodeDecodeError for libraries with non-ASCII paths 2019-03-25 17:47:42 +01:00
croneter
2c101d9145
Merge pull request #783 from croneter/fix-widgets
Fix node paths for skins
2019-03-21 20:35:14 +01:00
croneter
c996d51085 Fix video node path for widgets 2019-03-21 20:22:41 +01:00
croneter
7cb6c75f3b Fix adding of show title, season and episode number 2019-03-21 20:06:52 +01:00
croneter
9665f34ee6 Fix Typo 2019-03-20 19:19:57 +01:00
croneter
a8a229967c
Merge pull request #777 from croneter/fix-profile-switch
Fix PKC synching playstate to wrong user on profile switch. Be aware that Kodi profile switches are error-prone
2019-03-17 17:59:20 +01:00
croneter
58b15e69a9
Merge pull request #775 from croneter/fix-nodes
Fix nodes for skin use
2019-03-17 17:58:28 +01:00
croneter
392f3f6359
Merge pull request #774 from croneter/fix-unicode
Fix sync not working due to non-ASCII Plex library names
2019-03-17 17:58:15 +01:00
croneter
71af3d0ca6
Merge pull request #773 from croneter/fix-direct-paths
Fix playback sometimes not being reported for direct paths
2019-03-17 17:58:00 +01:00
croneter
b5b9dd51a5
Merge pull request #771 from croneter/fix-playlist-sync
Fix 'NoneType' object has no attribute 'kodi_path'
2019-03-17 17:57:49 +01:00
croneter
815cd20d39 Ensure Plex companion thread quits on time 2019-03-17 17:56:31 +01:00
croneter
9d07a58c50 Replace waitForAbort() with sleep() 2019-03-17 17:56:31 +01:00
croneter
d068c37c49 Fix PKC synching playstate to wrong user on profile switch
- BUT: Kodi profiles seem to be a mess!
2019-03-17 16:53:13 +01:00
croneter
ba4f1d15d6 Increase logging 2019-03-17 16:26:48 +01:00
croneter
3c70a84704 Catch all exceptions, just in case 2019-03-17 15:42:29 +01:00
croneter
37bbf61a63 Ensure that reference to threader is gone on shutdown 2019-03-17 15:33:42 +01:00
croneter
41483e6731 Add more exit points when synching 2019-03-17 15:31:02 +01:00
croneter
9a6485737f Fix 'all' video node not leading to all library items 2019-03-17 12:57:38 +01:00
croneter
a2b57909cb Hopefully fix On Deck video node not working 2019-03-17 12:57:38 +01:00
croneter
3d4642dc56 Fix sync not working due to non-ASCII Plex library names 2019-03-17 11:54:09 +01:00
croneter
68ca41545c Fix playback sometimes not being reported for direct paths 2019-03-17 11:41:43 +01:00
croneter
db0f7f283e Simplify code to get path and filename 2019-03-17 11:30:44 +01:00
croneter
eef0eda426 Fix 'NoneType' object has no attribute 'kodi_path' 2019-03-16 17:47:23 +01:00
croneter
c6e635b39b Fix float() argument must be a string or a number 2019-03-16 17:34:47 +01:00
croneter
7d040e37ae
Merge pull request #759 from croneter/version-bump
Beta version bump 2.7.5
2019-03-10 18:06:12 +01:00
croneter
bda58deb6e
Merge pull request #722 from croneter/widget_overhaul
Giant overhaul of widgets
2019-03-10 18:01:13 +01:00
croneter
86cde7c69a
Merge pull request #760 from croneter/fix-keyerror
Fix some KeyErrors when playing songs
2019-03-10 18:00:53 +01:00
croneter
e50c0c011e Allow searching the PMS 2019-03-10 18:00:05 +01:00
croneter
5b7595c681 Rework widgets and listitems 2019-03-10 18:00:04 +01:00
croneter
4ea77370e8 Beta version bump 2.7.5
- Includes a migration!
2019-03-10 13:27:27 +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
c69176d4a1 Fix some KeyErrors when playing songs 2019-03-09 16:19:29 +01:00
croneter
349829a754 Fix PKC not synching new items if an older Kodi db is present 2019-02-26 17:41:35 +01:00
croneter
c17dda40dd
Merge pull request #744 from croneter/fix-theme-log-entries
Fix PKC trying to initialize playqueues over and over again
2019-02-24 11:27:03 +01:00
croneter
33cae69cc4 Fix PKC not starting due to a higher version Kodi database 2019-02-24 11:19:35 +01:00
croneter
36c78b0d6e Fix PKC trying to initialize playqueues over and over again 2019-02-23 08:53:37 +01:00
croneter
a9ff70fac7 Fix PKC not exiting correctly due to a call to xbmc.getCondVisibility 2019-02-22 08:11:58 +01:00
croneter
fa9ca95e2e Remove obsolete check for Kodi profile switch 2019-02-21 09:15:29 +01:00
croneter
2c12f2e705 Update to new style Python class 2019-02-21 08:47:52 +01:00
croneter
3c9eb71324 Fix websocket threads not exiting correctly 2019-02-21 08:47:36 +01:00
croneter
f63ef92b8f
Merge pull request #735 from croneter/update-translations
Update translations
2019-02-16 19:06:22 +01:00
croneter
78def504bc
Merge pull request #732 from croneter/fix-typeerror
Fix rare TypeError: unsupported operand type(s) for /: 'NoneType' and 'int' on playback startup
2019-02-16 19:05:50 +01:00
croneter
2942300f10
Merge pull request #731 from croneter/improve-db
Improve plex db lookups by creating better db indicees
2019-02-16 19:05:36 +01:00
croneter
a45cb02bc0 Update translations 2019-02-16 19:04:01 +01:00
croneter
4a83aae573 Fix TypeError: unsupported operand type(s) for /: 'NoneType' and 'int' 2019-02-16 17:59:03 +01:00
croneter
056150a2da Improve plex db lookups by creating better db indicees 2019-02-16 14:05:09 +01:00
croneter
823f6b6e3f Fix KeyError: u'kodi_type' 2019-02-16 12:17:56 +01:00
croneter
94da14744d Fix PKC crashing on recreating the database 2019-02-08 15:33:29 +01:00
croneter
d8aada43a6
Merge pull request #714 from croneter/version-bump
Beta version bump 2.6.8
2019-02-08 15:20:25 +01:00
croneter
a9bfae2b13
Merge pull request #715 from croneter/codacy
Implement Codacy suggestions
2019-02-08 15:20:11 +01:00
croneter
7a0b9c8fca
Merge pull request #713 from croneter/fix-collections
Fix processing of collections in special cases
2019-02-08 15:20:00 +01:00
croneter
80f3542737
Merge pull request #712 from croneter/fix-videos-disappearing
Fix movies or shows disappearing in fringe cases
2019-02-08 15:19:50 +01:00
croneter
da1cb6e3d7
Merge pull request #717 from croneter/fix-playlists
Fix rare case where thousands of identical playlists could be generated
2019-02-08 15:19:37 +01:00
croneter
a0d6674f7e
Merge pull request #711 from croneter/fix-unresponsive
Fix PKC becoming unresponsive
2019-02-08 15:19:23 +01:00
croneter
d617535a05 Beta version bump 2.6.8 2019-02-08 15:18:41 +01:00
croneter
873c9e74f5 Fix rare case where thousands of identical playlists could be generated 2019-02-08 15:15:52 +01:00
croneter
e6cd80a7dd Implement Codacy suggestions 2019-02-08 13:52:33 +01:00
croneter
1a1e4b113d Prompt user to select libraries to sync upon changing PMS 2019-02-08 13:24:14 +01:00
croneter
50d770718d Choose which Plex libraries PKC should sync 2019-02-08 13:24:14 +01:00
croneter
6447281404 Fix processing of collections in special cases 2019-02-08 13:02:55 +01:00
croneter
f98e2df42f Fix movies or shows disappearing in fringe cases 2019-02-08 13:01:10 +01:00
croneter
cd728b4c32 Fix PKC becoming unresponsive 2019-02-08 12:59:12 +01:00
croneter
3b18a92ab4 Fix PKC becoming unresponsive 2019-02-08 12:58:53 +01:00
croneter
05a6700d55
Merge pull request #708 from croneter/improve-playerror-messages
Improve error messages when playback failes
2019-02-06 16:16:09 +01:00
croneter
c7eab63960 Improve error message when playback failes 2019-02-06 16:14:14 +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
63201db07d
Merge pull request #707 from croneter/version-bump
Beta version bump 2.6.6
2019-02-05 18:59:53 +01:00
croneter
d8796a174e
Merge pull request #706 from croneter/fix-pms-logs
Optimize headers for communication with PMS to appear like a Plex Media Player
2019-02-05 18:59:43 +01:00
croneter
6bf0cf4894
Merge pull request #705 from croneter/improve-sync-dialog
Improve sync dialog
2019-02-05 18:59:28 +01:00
croneter
950a2de0f5
Merge pull request #704 from croneter/fix-slow-sync
Greatly speed up sync for episodes, especially for large libraries
2019-02-05 18:59:16 +01:00
croneter
74dc249a37 Enforce database reset 2019-02-05 18:57:50 +01:00
croneter
9208cf2cb3 Optimize headers for communication with PMS to appear like PMP 2019-02-05 18:52:10 +01:00
croneter
01c0c36244 Increase batch size for playstates by a factor 10 2019-02-05 16:54:40 +01:00
croneter
ca16f73637 Make sure we're not showing an item's title while synching playstate 2019-02-05 15:48:24 +01:00
croneter
4786372490 Improve sync dialog for Estuary by switching item's title and sync count 2019-02-05 15:48:02 +01:00
croneter
2234e49cf8 Greatly speed up episode sync for large libraries 2019-02-05 15:32:50 +01:00
croneter
e65c9d6c94 Increase sync processing batch size from 200 to 500 2019-02-05 13:21:08 +01:00
croneter
0e16eb703a Do not allow insecure HTTPS websocket connections for Kodi Leia in any case 2019-02-05 13:10:00 +01:00
croneter
7b21caceae Allow websocket redirects 2019-02-05 13:09:59 +01:00
croneter
bf6e52bf20
Merge pull request #698 from croneter/improve-logging
Improve logging
2019-02-04 16:23:49 +01:00
croneter
664470df6a
Merge pull request #697 from croneter/fix-extras
Fix extras not playing
2019-02-04 16:23:36 +01:00
croneter
edb72fba36
Merge pull request #696 from croneter/hide-ssl-setting
Hide "Verify SSL certificate" setting for Kodi 18 Krypton
2019-02-04 16:23:23 +01:00
croneter
426318a552 Update translations 2019-02-04 16:21:52 +01:00
croneter
76004f1aa6 Improve logging 2019-02-04 16:15:58 +01:00
croneter
20225f12b4 Fix extras not playing 2019-02-04 12:51:16 +01:00
croneter
8169907192 Hide "Verify SSL certificate" setting for Kodi 18 Krypton 2019-02-04 10:30:55 +01:00
croneter
b206d1a99f Update German strings 2019-02-03 20:50:21 +01:00
croneter
2b0d63da6f
Merge pull request #691 from croneter/change-user
Show logged in Plex home user in the settings and allow changing it
2019-02-03 20:32:06 +01:00
croneter
033919d09b
Merge pull request #690 from croneter/fix-music
Fix music items getting deleted on startup
2019-02-03 20:31:53 +01:00
croneter
f90b470f5b Never ignore SSL certificate errors for Kodi >= 18 - just like Kodi 2019-02-03 20:28:50 +01:00
croneter
ae3f24f6ca
Merge pull request #687 from croneter/manual_ip
Improve dialog to manually enter PMS IP and port
2019-02-03 20:25:48 +01:00
croneter
a7222af648
Merge pull request #686 from croneter/fix-resume
Fix playback not starting at the beginning
2019-02-03 20:24:04 +01:00
croneter
2c77bd28af Implement Codacy suggestions 2019-02-03 20:22:41 +01:00
croneter
662ed1bdfc Show logged in Plex home user in the settings and allow changing it 2019-02-03 19:12:35 +01:00
croneter
8f8ccd1daf Fix music items getting deleted on startup 2019-02-03 17:20:36 +01:00
croneter
01609e4d72 Better inform the user if problems arise with manual PMS IP input 2019-02-03 16:44:37 +01:00
croneter
1071d75857 Improve dialog to manually enter PMS IP and port 2019-02-03 10:53:19 +01:00
croneter
09c2ad1b80 Fix playback not starting at the beginning 2019-02-02 20:50:01 +01:00
croneter
6c8b17d7b8 Fix PKC crashing on Xbox 2019-02-02 15:58:07 +01:00
croneter
7f0abcee7d
Merge pull request #673 from croneter/pr_improve_dialogs
Improve pop-up "Searching for PMS"
2019-02-02 13:43:34 +01:00
croneter
cb97734cf9
Merge pull request #671 from croneter/pr_fix_futurewarning
Fix FutureWarning
2019-02-02 13:43:24 +01:00
croneter
0de47c7b3e
Merge pull request #670 from croneter/pr_attributeerror
Fix artwork caching AttributeError: 'ImageCachingThread' object has no attribute 'cancel'
2019-02-02 13:43:09 +01:00
croneter
10e6caf3cd
Merge pull request #669 from croneter/pr_fix_delete
Fix PKC not deleting all the items it should
2019-02-02 13:42:58 +01:00
croneter
1d17dd867c
Merge pull request #668 from croneter/pr_sequence_item
Fix playlist sync: sequence item 0: expected string or unicode
2019-02-02 13:39:47 +01:00
croneter
b858373aeb Also show a pop-up if PKC searches for changed PMS address on PKC startup 2019-02-02 13:24:31 +01:00
croneter
65fe1ed399 Show info pop-up "Searching for PMS" until PKC displays the results 2019-02-02 13:02:45 +01:00
croneter
fb9c560ccd Fix FutureWarning 2019-02-02 11:34:16 +01:00
croneter
996adc2c03 Fix artwork caching AttributeError 2019-02-02 11:30:03 +01:00
croneter
3a9fcacd5c Fix PKC not deleting all the items it should 2019-02-02 11:24:55 +01:00
croneter
d09d2e6aaf Fix playlist sync: sequence item 0: expected string or unicode 2019-02-02 10:53:10 +01:00
croneter
fdbe42a05a Fix keyError sessionKey for weird PMS messages 2019-02-02 10:42:57 +01:00
croneter
dfeba07ab6
Merge pull request #648 from croneter/user_fix
Fix TV sections not being deleted e.g. after user switch
2019-01-30 18:27:12 +01:00
croneter
5f72d50ed0
Merge pull request #647 from croneter/less_dialogs
Don't show a library sync error pop-up when full sync is interrupted
2019-01-30 18:23:46 +01:00
croneter
ae7eaadd1e
Merge pull request #645 from croneter/http_direct_paths
Fix to correctly escape paths
2019-01-30 18:23:30 +01:00
croneter
c388789fbd Add error notification is full sync is unsuccessful 2019-01-30 18:05:28 +01:00
croneter
a39127af1c Update translations 2019-01-30 17:57:21 +01:00
croneter
4e10a9da8b Force database reset 2019-01-30 17:40:20 +01:00
croneter
8cb4e5f8fc Fix to cleanly delete all songs and albums 2019-01-30 15:54:19 +01:00
croneter
624fe87fd1 Fix to cleanly delete all episodes and seasons 2019-01-30 15:54:19 +01:00
croneter
a279cf5198 Fix deleting entire Plex library sections
Typo plex_type - section_type
2019-01-30 15:54:13 +01:00
croneter
dcff85e203 Fix TV sections not being deleted e.g. after user switch 2019-01-30 10:58:20 +01:00
croneter
5298370413 Don't show an error pop-up if full sync is interrupted 2019-01-30 09:34:38 +01:00
croneter
5f1241adde Fix to correctly escape paths 2019-01-29 13:52:23 +01:00
croneter
d10011cc50
Merge pull request #641 from croneter/update_translations
Update translations
2019-01-29 08:27:14 +01:00
croneter
b5d0e4f428
Merge pull request #640 from croneter/fix_kodi_fileid
Fix KeyError: u'kodi_fileid' for some Plex websocket messages
2019-01-29 08:27:05 +01:00
croneter
a09dfd2b0d Update translations 2019-01-29 08:16:56 +01:00
croneter
3450bc5294 Don't lock Plex DB when processing websocket messages 2019-01-29 08:09:42 +01:00
croneter
91fe4f827d Fix KeyError: u'kodi_fileid' for some Plex websocket messages 2019-01-29 08:05:15 +01:00