Commit graph

2832 commits

Author SHA1 Message Date
croneter
4b0fa90f5e Remove obsolete code 2018-01-23 19:10:18 +01:00
croneter
4d79a17738 Detect resume playback outside of widgets also 2018-01-23 19:07:05 +01:00
croneter
66f6605406 Fix TypeError when logging weird PMS answers 2018-01-23 08:07:19 +01:00
croneter
e6520ad2e8 Fix KeyError on playback start 2018-01-23 07:59:53 +01:00
tomkat83
287b888b6f Revamp playback start, part 5 2018-01-22 11:20:37 +01:00
tomkat83
2791da9f65 Revamp playback start, part 4 2018-01-21 18:31:49 +01:00
croneter
7ecaa376a2 Revamp playback start, part 3 2018-01-21 13:42:22 +01:00
croneter
fb7eafb27a Revamp playback start, part 2 2018-01-10 20:14:05 +01:00
croneter
24f2f60209 Fix TypeError when PMS answer empty 2018-01-09 19:54:54 +01:00
tomkat83
f0a2955b83 Revamp playback start, part 1 2018-01-07 17:50:30 +01:00
tomkat83
671424ecbe Move PKC Kodi master lock hack to PKC startup 2018-01-07 15:44:20 +01:00
tomkat83
36bcd70c9d Do not check plex.tv connection on startup 2018-01-07 15:20:25 +01:00
tomkat83
607fdab326 Force-set some important Kodi settings
- Fixes #389
2018-01-07 15:16:53 +01:00
tomkat83
eb6b1fbe48 Remove obsolete code 2018-01-07 10:56:24 +01:00
tomkat83
e17824609a Greatly simplify handling of PKC playqueues 2018-01-06 15:19:12 +01:00
tomkat83
e0f1225c21 Move plex_playbackProbs to state.py 2018-01-06 12:55:24 +01:00
tomkat83
546e79d925 Move propertiesPlayback from window to state.py 2018-01-03 17:50:01 +01:00
tomkat83
ec4a5d2b7c Prettify 2018-01-02 15:39:48 +01:00
tomkat83
359a8d0221 Revert "Fix Plex ratingKey being stored as int, not str"
This reverts commit 6bfd67a41d.
2018-01-02 15:12:01 +01:00
tomkat83
f4e83f6be5 Better detect if PKC playback init is still ongoing 2018-01-02 15:11:49 +01:00
tomkat83
93b878ad78 Fix playlist item representation (str, not int) 2018-01-02 15:10:23 +01:00
tomkat83
6bfd67a41d Fix Plex ratingKey being stored as int, not str 2018-01-02 14:31:57 +01:00
tomkat83
b84a833e0d Remove unreliable check for playback init 2018-01-02 14:30:54 +01:00
tomkat83
ac3be93894 More Plex Companion fixes 2018-01-02 13:28:25 +01:00
tomkat83
95356d9483 Fix headers 2018-01-02 12:13:41 +01:00
tomkat83
14183cccca Fix Plex Companion headers & URL arguments 2018-01-02 11:48:44 +01:00
tomkat83
3a9f65d908 Remove obsolete code 2018-01-02 10:58:28 +01:00
tomkat83
18a9e77b33 Plex Companion optimizations 2018-01-01 18:36:28 +01:00
tomkat83
2e5249ca4f Don't allow spaces in devicename 2018-01-01 17:15:01 +01:00
tomkat83
6caa759ce1 Fix wrong partIndex 2018-01-01 14:23:08 +01:00
tomkat83
d8e4093696 Use variable.py's machineIdentifier 2018-01-01 13:46:21 +01:00
tomkat83
6c0ab38193 Fix wrong Plex machineIdentifier 2018-01-01 13:40:45 +01:00
tomkat83
5337ae5715 Major Plex Companion overhaul, part 6 2018-01-01 13:28:39 +01:00
tomkat83
cf15799df2 Clear and remove-items from Kodi playqueues once 2017-12-30 12:57:23 +01:00
tomkat83
ba0f22ac1e Prettify 2017-12-28 21:46:48 +01:00
tomkat83
bfefef548e Fix typo 2017-12-28 21:32:12 +01:00
tomkat83
2f90674f51 Major Plex Companion overhaul, part 5 2017-12-28 21:31:05 +01:00
tomkat83
e4ea7692b2 Add json to skip to certain playqueue position 2017-12-28 21:23:50 +01:00
tomkat83
4b5f7868bb Fix typo 2017-12-28 20:47:23 +01:00
tomkat83
f5a6531386 Fix typos 2017-12-28 18:29:51 +01:00
tomkat83
e358e9b3a5 PKC playqueues now log as dicts for pprint 2017-12-28 17:32:58 +01:00
tomkat83
771520cd96 Save transient token earlier to PKC playqueue 2017-12-28 16:56:48 +01:00
tomkat83
11df634c91 Fix TypeError 2017-12-28 15:45:48 +01:00
tomkat83
48c05c415d Merge branch 'patch-1' of https://github.com/Draic/PlexKodiConnect into Draic-patch-1 2017-12-28 15:33:38 +01:00
tomkat83
244a8e308f Disable Kodi msg "Loading media info from files" 2017-12-28 15:30:56 +01:00
tomkat83
6e00838ef0 Prettify 2017-12-28 15:24:36 +01:00
Draic
1ca8a46473
Hi10p should only trigger on h264
changed h265 to h264 as this should be the intended codec.
2017-12-23 16:42:40 +01:00
croneter
02f48dd15f Prettify 2017-12-21 09:43:16 +01:00
croneter
4547ec52af Major Plex Companion overhaul, part 4 2017-12-21 09:28:06 +01:00
tomkat83
47779bbbee Modify logging 2017-12-15 16:22:03 +01:00
tomkat83
72de3b6796 Companion: enable audio and subtitle stream switch 2017-12-15 16:11:19 +01:00
tomkat83
f0a3cd8c55 Avoid RuntimeError on exit 2017-12-15 16:08:20 +01:00
tomkat83
39d7bfd80f Clean up json_rpc 2017-12-15 13:22:12 +01:00
croneter
5f4016e22e Clean-up 2017-12-14 17:39:50 +01:00
croneter
bb0ba08329 Also update volume and mute on PMS updates 2017-12-14 17:19:09 +01:00
croneter
7100802cab Ensure that PKC signals playback stop on shutdown 2017-12-14 15:54:28 +01:00
croneter
502c013af0 Update all Kodi player properties for Companion update 2017-12-14 15:20:41 +01:00
croneter
b520fe2b79 Fix playstate remaining at zero 2017-12-14 10:34:40 +01:00
croneter
8189eb6b4c Companion: fix audio stream and subtitle stream 2017-12-14 10:22:48 +01:00
croneter
0b54e24947 Never have negative playstates 2017-12-14 10:21:30 +01:00
croneter
c0e7c78a11 Major Plex Companion overhaul, part 3 2017-12-14 08:29:38 +01:00
croneter
80c106d57f Fix some IndexErrors and KeyErrors 2017-12-13 20:41:29 +01:00
croneter
9cac51d5c9 Major Plex Companion overhaul, part 2 2017-12-13 20:14:27 +01:00
croneter
cc347d5654 Fix some KeyErrors 2017-12-11 19:24:21 +01:00
tomkat83
b1e2791ca8 Major Plex Companion overhaul, part 1 2017-12-10 19:01:22 +01:00
tomkat83
c3b5054477 Fixes to Companion /poll replies 2017-12-09 17:23:50 +01:00
tomkat83
41abcc8d2c Remove plexbmc plexsettings.py 2017-12-09 16:30:52 +01:00
tomkat83
90c76aa997 Init unique machine identifier earlier 2017-12-09 16:18:46 +01:00
tomkat83
39014fe7f4 Move kodi webserver details to state.py 2017-12-09 15:41:07 +01:00
tomkat83
cdd38c6ef7 Optimize some imports 2017-12-09 14:35:08 +01:00
tomkat83
73c7f866e6 Security fix: Companion shall not send Plex token 2017-12-09 13:54:30 +01:00
tomkat83
843bedbee6 Switch Companion to use json_rpc.py 2017-12-09 13:47:19 +01:00
tomkat83
cceb110354 Always return JSON RPC answer 2017-12-08 20:41:11 +01:00
tomkat83
9380a23867 Fix typo 2017-12-08 20:35:32 +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
croneter
a09b6a4562 Fix SSLError not being recognized as such
ConnectionError is ancestor of SSLError
2017-12-07 18:22:52 +01:00
croneter
18a5bcd7db Fix potentially telling wrong PMS to stop transcode 2017-12-07 18:19:54 +01:00
croneter
e6a5b1c157 Move Kodi playback info to state.py 2017-12-07 17:25:48 +01:00
croneter
65a48ebe7b Attach PMS xml piece to playlist item 2017-12-07 17:25:24 +01:00
croneter
2a6d8757e6 Class must only be initiated and used once
Hence no borg necessary
2017-12-07 17:15:54 +01:00
croneter
208997b167 Remove obsolete method 2017-12-07 17:15:13 +01:00
croneter
dc590d7ed1 Fx docstrings 2017-12-06 18:05:01 +01:00
croneter
a2a925edc0 Add docstrings 2017-12-06 11:40:27 +01:00
croneter
116a2956ac Minor Plex Companion improvements 2017-12-05 11:14:41 +01:00
tomkat83
9052b84011 Fix .strm playback failing for addon paths
- Partially fixes #354
2017-12-04 19:50:12 +01:00
tomkat83
f86582689b Only transcode 10bit video for h265
- Fixes #367
2017-12-04 19:41:59 +01:00
tomkat83
3e9e572e3c Merge branch 'hotfixes' of https://github.com/croneter/PlexKodiConnect into hotfixes 2017-11-05 12:53:05 +01:00
tomkat83
f1c784d458 Support playback of .strm files 2017-11-05 12:51:45 +01:00
croneter
eb66435d2d Russian translation, thanks @UncleStark, @xom2000, @AlexFreit 2017-10-09 22:28:31 +02:00
croneter
a8d4e2b8c1 Fix ValueError for channels 2017-10-09 22:12:30 +02:00
croneter
eaff533489 Fix AttributeError if Plex key is missing 2017-10-06 08:46:05 +02:00
croneter
e3dba1974f Code optimization 2017-10-06 08:42:04 +02:00
croneter
f3c71fadf2 Deal better with missing stream info (e.g. channels) 2017-10-06 08:41:16 +02:00
croneter
38d611aa27 PEP8 2017-10-06 08:09:21 +02:00
croneter
2f073c3a15 Enable channels for Plex home users 2017-10-02 18:18:05 +02:00
croneter
1e8ec2f0d7 Remove obsolete PKC settings show contextmenu 2017-10-02 17:49:57 +02:00
croneter
02a60fac20 Revert "More descriptive downloadable subtitles"
This reverts commit 8af180968b.
2017-10-02 17:41:28 +02:00
croneter
cb285f97e7 Revert "Fix subtitle languages showing up as unknown"
This reverts commit 345a24f896.
2017-10-02 17:36:54 +02:00
croneter
345a24f896 Fix subtitle languages showing up as unknown
- Fixes #342
2017-09-28 14:13:00 +02:00
tomkat83
12cf23a4b5 Revert "Sleep a bit before marking item as fully watched" 2017-09-23 18:52:42 +02:00
tomkat83
2bddec60db Fix items not getting marked as fully watched
- Hopefully fixes #341
2017-09-23 18:49:59 +02:00
tomkat83
aa83776a8b Move MARK_PLAYED_AT to variables.py 2017-09-23 18:40:30 +02:00
dazedcrazy
5cebbcb763 Update itemtypes.py 2017-09-23 14:56:26 +01:00
croneter
741c00ed64 Update translations 2017-09-17 14:07:14 +02:00
croneter
14b8df4f9c Fix Alexa websocket not exiting on Handshake Status 403 2017-09-15 20:01:20 +02:00
croneter
d7c3be5a68 Sleep a bit before marking item as fully watched 2017-09-13 20:21:09 +02:00
croneter
eaff13998b Remove obsolete imports 2017-09-13 20:01:17 +02:00
croneter
a3514ec104 Don't sleep before updating playstate to fully watched 2017-09-13 19:59:16 +02:00
croneter
14fc334422 Fix IndexError e.g. for channels if stream info missing 2017-09-13 15:41:06 +02:00
croneter
02ba51bc15 Merge branch 'hotfixes' of https://github.com/croneter/PlexKodiConnect into hotfixes 2017-09-13 15:32:49 +02:00
croneter
256d2c3f87 Fix KeyError for TV live channels for getGeople 2017-09-13 15:32:44 +02:00
tomkat83
9c17b8503a Reduce number of imports 2017-09-10 15:22:06 +02:00
tomkat83
6ed00a7b11 Reduce number of imports 2017-09-10 15:12:53 +02:00
tomkat83
47675bc60f Greatly speed up displaying context menu 2017-09-10 15:09:32 +02:00
tomkat83
cb39dbd19d Move pickl_window function 2017-09-10 15:06:46 +02:00
croneter
425915beaa Merge branch 'master' into hotfixes 2017-09-08 12:56:44 +02:00
croneter
826712340b Fix library sync crashing trying to display an error
- Fixes #340
2017-09-08 12:54:43 +02:00
croneter
6d4ad61c7b Ignore PMS message related to a bunch of items 2017-09-08 12:36:26 +02:00
croneter
060bc6f1d1 Detect Plex item deletion more reliably 2017-09-08 12:34:13 +02:00
croneter
1f0baf5128 Ignore PMS message related to an entire library 2017-09-08 12:12:29 +02:00
croneter
274ed4b430 Background sync now picks up more PMS changes 2017-09-08 12:06:31 +02:00
croneter
5fcccba105 Compile regex only once 2017-09-06 19:55:27 +02:00
croneter
fc03ebc8d4 Remove obsolete timestamp 2017-09-06 19:30:19 +02:00
croneter
3ada7d1a98 More specific exception handling 2017-09-06 19:26:48 +02:00
croneter
da4be6d7e4 Fix changed Plex metadata not synced repeatedly 2017-09-06 19:24:26 +02:00
croneter
81084ea479 Increase logging for websockets 2017-09-06 14:14:42 +02:00
croneter
b555df1061 Remove obsolete log level code 2017-09-06 13:43:52 +02:00
croneter
b0c62be75f Adjust log levels 2017-09-06 13:39:44 +02:00
croneter
32c43855f7 PKC logging now uses Kodi log levels 2017-09-06 13:31:15 +02:00
croneter
41b4493072 Sleep longer 2017-09-03 13:30:50 +02:00
croneter
d4bb8eed84 Fix resuming interrupted sync 2017-09-03 13:28:40 +02:00
croneter
882c592e45 Fix detecting changes to PKC settings 2017-09-03 13:23:18 +02:00
croneter
1a91149b5f Optimize code 2017-09-03 12:46:41 +02:00
croneter
ff1eb674b3 Revert "Adjust initial states"
This reverts commit e7de0f9218.
2017-09-03 12:44:03 +02:00
croneter
430b10ec1c Increase logging 2017-09-01 12:31:58 +02:00
croneter
e7de0f9218 Adjust initial states 2017-09-01 12:28:29 +02:00
croneter
ee02d5c9f4 Increase logging 2017-09-01 12:19:27 +02:00
croneter
cb459f2fd5 Enable many setting changes without Kodi restart 2017-08-22 08:16:21 +02:00
croneter
261a0aad4c Allow replace path settings changes without reboot 2017-08-22 07:18:19 +02:00
croneter
ce508257a3 Move Kodi DB check flag to state.py 2017-08-21 19:42:41 +02:00
croneter
66eb599a14 Code optimization 2017-08-21 19:38:41 +02:00
croneter
7b6834b326 Code optimization 2017-08-21 18:59:47 +02:00
croneter
5f45cc1c9b Remove obsolete function 2017-08-21 18:53:52 +02:00
croneter
31be5f30f3 Move init of syncs to state.py 2017-08-21 18:53:38 +02:00
croneter
5585f8a4e0 Revert "Sleep longer"
This reverts commit b045c49ad0.
2017-08-21 08:03:08 +02:00
croneter
b045c49ad0 Sleep longer 2017-08-21 08:02:44 +02:00
croneter
a2b145e4ec Force show sync if user manually initiated 2017-08-21 08:01:48 +02:00