Commit graph

295 commits

Author SHA1 Message Date
croneter
c2c13b715d Fix typo 2018-10-14 11:12:08 +02:00
croneter
c5741c7225 Use xml.etree.cElementTree whenever possible to avoid memory leaks 2018-10-13 20:17:16 +02:00
croneter
6be1f40373 Try to fix PKC for Enigma 2
- Hopefully fixes #545
2018-10-10 19:26:35 +02:00
croneter
25675a9136 Optimize resetting of Kodi and Plex databases
- Fixes #527
2018-10-10 19:18:06 +02:00
croneter
594e908508 Fix PKC not starting up on Enigma
- Fixes #545
2018-10-07 17:12:30 +02:00
croneter
c6e1a7029a Fix numbering of already existing playlist files 2018-09-23 16:03:50 +02:00
croneter
e3328ad061 Switch to Plex style dialogs 2018-09-18 16:26:40 +02:00
croneter
e9e1b7b7de Revert "Change optionsdialog import behavior"
This reverts commit ad444a5da0.
2018-09-18 16:20:24 +02:00
croneter
ad444a5da0 Change optionsdialog import behavior 2018-09-18 14:18:07 +02:00
croneter
4cf191cbb4 Switch paths 2018-09-16 14:00:52 +02:00
croneter
93fd45a4e1 Add new Plex yes-no dialog 2018-09-15 16:30:17 +02:00
croneter
029ea93268 Translate Plex info dialog button text 2018-09-15 16:15:14 +02:00
croneter
98e38ae9a8 Add Plex dialog to switch users 2018-09-10 20:53:46 +02:00
croneter
b29e07846f Safely parse XMLs using defusedxml 2018-09-05 17:36:38 +02:00
croneter
6957b9a522 Retrieve strings from Kodi if no string is found for PKC 2018-07-19 13:54:36 +02:00
croneter
4e0429fcc9 Fix switching to __future__ module
- Fixes #507
2018-07-12 18:46:02 +02:00
croneter
e0108eeb89 Rewire partial playlist sync, part 2 2018-07-10 21:19:08 +02:00
Croneter
768de346b1 Don't show artwork sync progress, reduce setting-writes
- Hopefully fixes #499
2018-07-04 08:17:37 +02:00
Croneter
d918a26a00 Reset PKC setting to English only 2018-06-28 15:40:35 +02:00
Croneter
1234f61fc0 Fix encoding of file and path operations 2018-06-23 18:25:18 +02:00
Croneter
c03abddc27 Encode file paths correctly for all platforms 2018-06-22 13:39:38 +02:00
Croneter
c440dc7779 Switch to absolute imports 2018-06-21 19:24:37 +02:00
croneter
bd73c03078 Merge branch 'hotfixes' into playlists 2018-06-02 16:12:47 +02:00
croneter
c63adaf2e3 Improve artwork caching counter in PKC settings 2018-05-15 20:46:16 +02:00
Croneter
0e1902cc91 Don't ask user for DB reset if forced by PKC 2018-05-14 20:51:14 +02:00
croneter
1a261a3b9e Reset artwork sync status in PKC settings on DB reset 2018-05-13 16:15:48 +02:00
Croneter
2a862b5169 Optimize length for playlist filename (m3u instead of m3u8) 2018-05-03 08:29:14 +02:00
Croneter
0c3db3e2f8 Delete all synced playlists on PKC (database) reset 2018-05-02 19:13:56 +02:00
Croneter
e38f99f088 Playlist sync support, part 2 2018-05-01 14:48:49 +02:00
Croneter
0a83d6c084 Playlist sync support, part 1 2018-04-28 09:12:29 +02:00
croneter
42ededd751 Fix docstring 2018-04-15 18:37:27 +02:00
croneter
7d38ccf504 Hopefully fix ValueError for datetime.utcnow()
- Should fix #448
2018-04-01 10:18:15 +02:00
croneter
f31046bed1 Greatly speed up switch of PMS 2018-02-28 18:48:39 +01:00
croneter
97d777fdee Make sure that empty XML elements get deleted
- Fixes #402
2018-02-14 19:52:53 +01:00
croneter
3fabb21dac Fix indent of xmls 2018-02-12 21:27:22 +01:00
croneter
754432f5bc Fix Kodi boot loop
- Fixes #402
2018-02-12 21:20:26 +01:00
croneter
e02e9bcd1f Rename thread methods 2018-02-11 14:57:39 +01:00
croneter
ca11528593 Prettify 2018-02-11 13:24:00 +01:00
croneter
ca8ad96a05 Prettify 2018-02-11 12:59:04 +01:00
croneter
1151076660 Code refactoring 2018-02-10 17:59:20 +01:00
croneter
4fca4ecf63 Code refactoring 2018-02-09 17:48:25 +01:00
croneter
ff09ae6457 Force lowercase protocol for plugin playback 2018-02-01 07:44:12 +01:00
tomkat83
671424ecbe Move PKC Kodi master lock hack to PKC startup 2018-01-07 15:44:20 +01:00
tomkat83
607fdab326 Force-set some important Kodi settings
- Fixes #389
2018-01-07 15:16:53 +01:00
croneter
4547ec52af Major Plex Companion overhaul, part 4 2017-12-21 09:28:06 +01:00
croneter
0b54e24947 Never have negative playstates 2017-12-14 10:21:30 +01:00
tomkat83
cdd38c6ef7 Optimize some imports 2017-12-09 14:35:08 +01:00
tomkat83
843bedbee6 Switch Companion to use json_rpc.py 2017-12-09 13:47:19 +01:00
tomkat83
dfdc6eefd0 Move jsonrpc function 2017-12-08 20:32:10 +01:00
tomkat83
34cd0fadb4 Delete obsolete screensaver function 2017-12-08 20:24:36 +01:00
croneter
f2bc95813a Centralize Kodi json rpc 2017-12-08 19:43:06 +01:00
croneter
f6b666e892 Move companion json rpc commands 2017-12-08 07:53:01 +01:00
tomkat83
cb39dbd19d Move pickl_window function 2017-09-10 15:06:46 +02:00
croneter
41b4493072 Sleep longer 2017-09-03 13:30:50 +02:00
croneter
cb459f2fd5 Enable many setting changes without Kodi restart 2017-08-22 08:16:21 +02:00
croneter
b103309ceb Library sync dialog code optimization 2017-08-18 09:53:10 +02:00
tomkat83
73d6bfde89 Fix playback not starting in some circumstances
- Fixes #330
2017-08-10 21:05:46 +02:00
tomkat83
73289d00f0 Fix Kodi playlists being empty
- Fixes #305
2017-06-06 20:12:16 +02:00
tomkat83
70f5991b6d Clarify 2017-05-29 17:11:04 +02:00
tomkat83
456959b676 Move method to function 2017-05-29 17:05:22 +02:00
tomkat83
8860edd592 Fix library sync crash due to UnicodeDecodeError
- Fixes #302
2017-05-29 15:39:11 +02:00
tomkat83
179e97b200 Warn user if a xml cannot be parsed 2017-05-22 21:31:19 +02:00
tomkat83
ad5744f435 Fix for Windows usernames with non-ASCII chars
- Fixes #286
2017-05-20 20:24:47 +02:00
Croneter
1bbb0e151d Increase logging 2017-05-18 07:37:28 +02:00
tomkat83
f3edcecd7d Remove obsolete tweaks for advancedsettings.xml 2017-05-17 14:51:18 +02:00
tomkat83
06727fca71 Fix thread methods 2017-05-17 13:55:24 +02:00
tomkat83
a63b90dd5f Revert "Revert "Code refactoring: avoid window vars in loops""
This reverts commit b6197231fa.
2017-05-17 10:09:50 +02:00
tomkat83
b6197231fa Revert "Code refactoring: avoid window vars in loops"
This reverts commit 6629fb41e3.
2017-05-14 16:41:22 +02:00
tomkat83
f83a304419 Fix OperationalError when resetting PKC 2017-05-12 12:52:27 +02:00
tomkat83
6629fb41e3 Code refactoring: avoid window vars in loops 2017-05-12 12:52:12 +02:00
tomkat83
9138cdbb67 Repace Kodi mkdirs with os.makedirs
- Partially fixes #296
2017-05-11 19:44:08 +02:00
tomkat83
fd84d97a46 Use xbmcvfs exists instead of os.path.exists
- Partially fixes #296
2017-05-11 19:26:13 +02:00
tomkat83
216159d96c Change to xbmcvfs mkdirs 2017-05-11 17:51:14 +02:00
tomkat83
44af9a20e5 Fix possible SQL injection vectors 2017-05-08 19:28:34 +02:00
tomkat83
722c3c1821 Fix TypeError, but for real now
- Fixes #290
2017-05-07 14:05:25 +02:00
tomkat83
ef0e2e2ba0 Plex Companion: escape HTML 2017-05-06 18:36:24 +02:00
tomkat83
cbb44e4ccf Major music overhaul: Direct Paths should now work!
- Remember to always use Direct Paths with Music ;-)
- Fixes #84
2017-05-06 17:04:09 +02:00
tomkat83
ee85db4570 Smarter function to set advancedsettings.xml values 2017-05-06 09:35:05 +02:00
tomkat83
3a878334b5 Fix PKC not storing network credentials correctly
- Fixes #287
2017-05-05 20:16:48 +02:00
tomkat83
b2cd6e1156 Avoid xbmcvfs entirely; use encoded paths
- Fixes #286
2017-05-03 20:30:33 +02:00
tomkat83
65c31b1eaa Use Kodi video cache setting for transcoding 2017-05-01 20:29:28 +02:00
tomkat83
be48743b1b Fix TypeError on manually entering PMS port
- Fixes #242
2017-03-01 18:51:18 +01:00
tomkat83
3cd76fa291 Fix screensaver not toggling back after full sync
- Fixes #197
2017-02-05 14:10:14 +01:00
tomkat83
4d957aa4a3 Better warnings when resetting the Kodi database
* @Pavuucek please have a look at the Czech translation file, very
bottom. Missing language tags are marked with `<!-- PLEASE UPDATE -->`
2017-02-02 18:45:31 +01:00
tomkat83
e96ceaaf19 Fix OperationalError upon database reset 2017-02-01 20:43:31 +01:00
tomkat83
c17ebf0647 Optimize imports for utils.py 2017-01-29 13:52:46 +01:00
tomkat83
289690813a Early compatibility with Kodi 18 Leia 2017-01-29 13:40:34 +01:00
tomkat83
a716f8a2c1 Clean out entrypoint.py 2017-01-24 19:59:38 +01:00
tomkat83
b1f6bd1edf Refactor service.py 2017-01-24 18:48:13 +01:00
tomkat83
579b52905e Code refactoring 2017-01-24 16:53:50 +01:00
tomkat83
8aba0d998d Code refactoring: put variables in one place 2017-01-24 16:04:42 +01:00
tomkat83
225776a145 Prevent OperationalError: database is locked
- Fixes #183
2017-01-20 16:00:17 +01:00
tomkat83
266ad70605 Rename database to plex.db 2017-01-04 20:09:09 +01:00
tomkat83
146f063fc9 Playqueues overhaul continued 2017-01-02 14:07:24 +01:00
tomkat83
0c2d4984ab Playqueues major haul-over 2016-12-27 17:33:52 +01:00
tomkat83
ad8b7c7d90 Merge Master 2016-12-20 16:13:19 +01:00
tomkat83
db02a001a8 Playlist major upgrade part 1 2016-12-03 11:50:05 +01:00
tomkat83
8d11fa2a90 Move KODILANGUAGE 2016-11-16 14:27:11 +01:00
tomkat83
02e8e3bf5c Fix not updating new user settings 2016-10-31 19:42:52 +01:00
tomkat83
e21c04e580 Fix smb credentials password not being url-encoded 2016-10-29 16:47:48 +02:00
tomkat83
e2776261c3 Initial Kodi context menu commit 2016-10-22 17:15:10 +02:00
tomkat83
a7820a9cf6 Try to prevent OperationalError: database is locked 2016-09-25 18:59:34 +02:00
tomkat83
ee6e441628 Fix log error 2016-09-04 17:14:52 +02:00
tomkat83
9dc691f558 Fix log error 2016-09-04 17:00:13 +02:00
tomkat83
13ca30c742 Cleanup utils.py 2016-09-02 19:31:27 +02:00
tomkat83
900290c75a Compatibility with latest Kodi Krypton. Fixes #80 2016-08-12 18:36:41 +02:00
tomkat83
a2693b3485 Optimize player and playlist instances 2016-08-07 15:33:36 +02:00
tomkat83
603e4e7867 Let wrapper return 2016-07-22 16:48:48 +02:00
tomkat83
898f2e6379 Decorator CatchExceptions 2016-07-22 16:41:02 +02:00
tomkat83
cfbc7f770c Use playing item filename and path to find ID
- Fixes #67
- Everything else doesn 't work
2016-06-25 16:02:40 +02:00
tomkat83
54c32adad6 Compatibility with latest Kodi Krypton
- Fixes #56
2016-06-19 15:01:25 +02:00
tomkat83
a92146abc2 Remove emby references 2016-05-31 08:06:42 +02:00
tomkat83
9786aab050 Fix UnicodeEncodeError for file paths
- Fixes #35
2016-05-15 16:33:53 +02:00
tomkat83
d01a8aafa1 Fix encoding and decoding 2016-05-07 22:17:12 +02:00
tomkat83
df38786638 Account for string.encode() not allowing args
- E.g. Android TV
2016-05-07 13:15:02 +02:00
tomkat83
496aa2593a Remove Emby reference from logs
- Fixes #24
2016-05-06 21:09:35 +02:00
tomkat83
d879a9d23c Additional artwork download from FanartTV! 2016-04-29 12:44:56 +02:00
tomkat83
b820953c52 Fix some merge conflicts 2016-04-26 14:41:58 +02:00
tomkat83
450437b812 Merge remote-tracking branch 'MediaBrowser/master' into develop 2016-04-26 13:53:19 +02:00
tomkat83
97c261bc4d Tune advancedsettings.xml
- Only set backgroundupdate to false for music library, if music is
enabled
2016-04-22 12:34:35 +02:00
im85288
9c2996af1e retrieve other artwork from fanarttv such as discart,banner etc 2016-04-15 20:44:54 +01:00
angelblue05
881c693c39 Replace incorrect addon reference 2016-04-15 14:15:13 -05:00
tomkat83
bf681f53c3 Fix smart playlists for Plex collections 2016-04-13 17:11:25 +02:00
Ian Mclaughlin
d95d854f70 Update utils.py
Add initial krypton support
2016-04-12 16:00:22 +01:00
tomkat83
24bb637606 Don't show Kodi popup when scanning Music 2016-04-08 13:57:55 +02:00
tomkat83
783fad33f1 Don't change Kodi settings xml if music is enabled
- Because Music is yet unstable
2016-04-07 08:55:49 +02:00
tomkat83
1f3598a7c4 Cleanup and Fixes
- Disable SSL warnings, finally
- Fix Plex Companion errors due to downloadutils switch
2016-04-06 18:23:51 +02:00
SpootDev
30dfe99e37 spelling 2016-04-03 19:54:36 -05:00
tomkat83
50b25ccf73 Fix TypeError with PMS item 'addedAt' missing 2016-04-02 10:43:50 +02:00
croneter
d191500552 Merge pull request #2 from gdachs/develop
made it compatible to Krypton
2016-04-02 10:07:18 +02:00
SpootDev
d915c4539e code reduce 2016-03-31 14:39:32 -05:00
tomkat83
7bb765bedd 'NameError: global name 'guidoc' is not defined' 2016-03-29 20:03:53 +02:00
tomkat83
6a2094d444 Backgroundsync using websockets 2016-03-27 16:57:20 +02:00
Gerald Dachs
2d6361d9d6 made it compatible to Krypton
initialize rating
2016-03-25 13:32:19 +01:00
tomkat83
d8deb4919e Shut down PKC correctly 2016-03-23 10:05:29 +01:00
tomkat83
cffe8acb69 Deactivate info "Gathering information from files"
However, Kodi STILL tries to gather info from music files unsuccessfully
(PMS http folder cannot be accessed)
2016-03-22 13:25:30 +01:00
tomkat83
a16b2bdeb3 Merge remote-tracking branch 'MediaBrowser/master' into develop 2016-03-17 10:03:00 +01:00
angelblue05
0afd338cc7 Make profiling a decorator
You can call it before any functions/methods using @utils.profiling()
<-- you can specify the sort order of the results, by default it sorts
by cumulative. It will print the results straight into the Kodi log.
2016-03-17 02:55:00 -05:00
tomkat83
fc29bd30b8 Fix network credentials dialog issues 2016-03-16 09:55:19 +01:00
tomkat83
aaa8ada3ea Use direct paths - not yet working for music 2016-03-15 20:26:45 +01:00
tomkat83
53c07d4b50 Fix Recently Added
Plex time was not converted to Kodi time
2016-03-13 14:50:29 +01:00
tomkat83
ae9d4924c2 Redesign fast sync 2016-03-11 14:42:14 +01:00
tomkat83
1ab657cd0b Change logging to show "Error" category 2016-03-08 14:02:01 +01:00
tomkat83
56af183288 Correct encoding
Kodi dialogs take unicode
2016-03-08 13:00:03 +01:00
tomkat83
b05ec9746a Remove obsolete check for method in processing metadata 2016-03-08 11:58:14 +01:00
tomkat83
a258f969ab Dedicated function to check whether directory exists 2016-03-07 16:30:50 +01:00
tomkat83
dc2ae721e6 Allow non-ASCI library names 2016-03-07 15:31:07 +01:00
tomkat83
c6503f8a8e Enable non-ASCI PMS server name and username 2016-03-07 13:01:45 +01:00
tomkat83
0afa304f52 utils.Window to return unicode in all cases 2016-03-07 09:47:30 +01:00
tomkat83
e784dab578 Overhaul userclient 2016-03-04 13:34:30 +01:00