Commit graph

321 commits

Author SHA1 Message Date
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
5f7d8df6f7 Fix PKC complaining about files not found 2017-05-09 20:39:05 +02:00
tomkat83
21d13c6471 Fix multiple subtitles per language not showing
- Fixes #292
2017-05-08 19:15:50 +02:00
tomkat83
3d7caec69a Don't verify detected music paths 2017-05-06 17:22:29 +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
72ed20e47f Big transcoding overhaul
- Fixes #278
2017-05-01 19:51:10 +02:00
tomkat83
56400e54da Change Plex transcoding profile to Android 2017-05-01 14:22:47 +02:00
tomkat83
a4627ae1cb Add description 2017-05-01 13:10:28 +02:00
tomkat83
04dfd78a9b Fix for not detecting external subtitle language 2017-05-01 13:07:41 +02:00
tomkat83
e05bc6e126 Increase timeouts for PMS
- Fixes #283
2017-04-30 17:45:45 +02:00
tomkat83
ba83bd29fc Remove obsolete code 2017-04-30 17:28:12 +02:00
tomkat83
b0fe3cba24 Cleanup stream selection 2017-04-02 20:10:10 +02:00
RickDB
c049e8d05e Included additional info in stream selection dialog 2017-04-02 14:11:13 +02:00
tomkat83
2a5cf9d798 Add Plex ID to photo ListItems 2017-03-26 14:09:43 +02:00
tomkat83
319afd4f99 Fix videos not starting from ListItems 2017-03-19 12:54:29 +01:00
tomkat83
aa900c6b88 Rewire Kodi ListItem stuff 2017-03-19 12:14:16 +01:00
tomkat83
fdd07b77e3 Fix ValueError for Watch Later
- Fixes #235
2017-02-26 16:40:04 +01:00
tomkat83
806f237b70 Use unique TheTVDB link for episodes 2017-02-18 14:45:31 +01:00
tomkat83
1827f2506c Fix some possible connection issues 2017-02-05 16:11:31 +01:00
tomkat83
1343edc0d0 Fix userratings for Kodi Krypton 2017-02-02 15:23:54 +01:00
tomkat83
38a6c1eae6 Update logging 2017-02-01 16:56:37 +01:00
tomkat83
20223f5428 Increase logging 2017-02-01 12:55:31 +01:00
tomkat83
d9b83065e3 Ignore empty Plex Collections
- Fixes #184
2017-01-24 20:55:01 +01:00
tomkat83
1b74f25dfa Fix NameError 2017-01-24 18:06:17 +01:00
tomkat83
790f32e64c Fix AttributeErrors 2017-01-24 18:04:17 +01:00
tomkat83
6a503ad42a refactor PlexAPI.py 2017-01-24 18:00:35 +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
98384fb5e4 Hopefully compatibilty with Plex Cloud 2017-01-21 17:34:51 +01:00
tomkat83
f96faaa880 Revert "Add logging to find Plex Cloud info from plex.tv"
This reverts commit 14c36160a4.
2017-01-21 17:22:23 +01:00
tomkat83
40cbc4c6fd Revert "More logging to find Plex Cloud info"
This reverts commit 9ad3b54d30.
2017-01-21 17:22:13 +01:00
tomkat83
8f73d40018 Fix some connection issues
- Should fix #181
- Should fix error: (101, 'Network is unreachable')
2017-01-20 14:16:06 +01:00
tomkat83
9ad3b54d30 More logging to find Plex Cloud info 2017-01-20 13:58:52 +01:00
tomkat83
14c36160a4 Add logging to find Plex Cloud info from plex.tv 2017-01-15 18:32:40 +01:00
tomkat83
23383f1e8b Correctly use window var 2017-01-15 18:21:59 +01:00
tomkat83
8cdf5a8a7b Use window var instead of settings var 2017-01-15 18:21:21 +01:00
tomkat83
8680410ab2 New setting to force transcode all Plex images 2017-01-15 18:01:27 +01:00
tomkat83
ccaeca0019 Merge remote-tracking branch 'tempo/RAWPictureTranscoding' into develop 2017-01-15 17:34:38 +01:00
tomkat83
3fdee81833 Fix ValueError for plex.tv URLs 2017-01-12 19:37:31 +01:00
tomkat83
0dfafbbe3e Move playbackutils methods to API 2017-01-08 15:03:41 +01:00
tomkat83
e90f48cc8e Rename plex database fields; abstract types 2017-01-07 20:11:48 +01:00
tomkat83
ad80fdfe1d Rename embydb_functions to plexdb_functions 2017-01-04 20:57:16 +01:00
tomkat83
146f063fc9 Playqueues overhaul continued 2017-01-02 14:07:24 +01:00
tomkat83
9d2902baa5 Playqueues overhaul continued 2016-12-28 13:14:21 +01:00
Memesa
a457d96a60 Plex RAW photos/picture support
This feature was requested. I got it implemented by passing the path of
the image, if it is not a normal image file, through the
getTranscodeImagePath function in the PlexAPI class. This requests Plex
to transcode the file before sending it to Kodi. Slight disadvantage is
the maximum resolution of 1920x1080, but I doubt that will impact many
people.
2016-12-20 21:05:01 +01:00
tomkat83
ad8b7c7d90 Merge Master 2016-12-20 16:13:19 +01:00
tomkat83
4925864a61 Don't show a notification when searching for PMS 2016-12-17 14:48:06 +01:00
tomkat83
bdad097bd0 Less logging when checking connection 2016-12-17 13:09:18 +01:00
tomkat83
c51a2dfbaf Don't be too insistent when checking PMS connection 2016-12-17 13:08:21 +01:00
tomkat83
d1da07a8bf Speed up replacing Plex paths 2016-12-03 15:43:23 +01:00
tomkat83
0538a250a3 Fix for fanart url containing spaces 2016-11-17 12:21:15 +01:00
tomkat83
8d11fa2a90 Move KODILANGUAGE 2016-11-16 14:27:11 +01:00
tomkat83
9e270356df Code optimization 2016-11-05 16:38:56 +01:00
tomkat83
7e58fae9a2 Code optimization 2016-10-29 15:23:48 +02:00
tomkat83
50860573fa Fix Plex trailers not being synced
- Fixes #129
2016-10-26 21:34:58 +02:00
tomkat83
0bb4a26c33 Fix for missing Plex item bitDepth
- Fixes #130
2016-10-26 21:14:58 +02:00
tomkat83
c747e915b1 Fix TypeError if no extras available
- Fixes #123
2016-10-13 11:27:31 +02:00
tomkat83
0b7e6ec0a3 Compile regex only once 2016-09-25 19:21:12 +02:00
tomkat83
1ff7970e88 Remove imageCacheLimit and cap on thread-number 2016-09-17 15:20:43 +02:00
tomkat83
8743ce13af Remove obsolete code 2016-09-16 17:51:30 +02:00
tomkat83
a3d643c643 Use some file settings instead of window settings
- In case the user changes something while PKC is running
2016-09-16 17:42:39 +02:00
tomkat83
2fbdd54324 Speed up sync - download art in the background 2016-09-10 19:49:03 +02:00
tomkat83
affde8bbcb Fix getting Bit Depth from Plex metadata
- Fixes #98
2016-09-08 15:55:49 +02:00
tomkat83
67ca52a93e Consider several media streams if transcoding 2016-09-08 15:33:06 +02:00
tomkat83
aa48898316 Cleanup PlexAPI.py 2016-09-02 16:53:16 +02:00
tomkat83
04e31986b5 Force pick first media stream for direct path sync
- Otherwise user would need to choose media stream for every item with
several streams - cumbersome for large libraries with many such items
2016-07-12 20:27:59 +02:00
tomkat83
a0b1adbf70 Enable stream/media selection for direct play 2016-07-12 20:16:45 +02:00
tomkat83
ba191eafc7 Improve code stability
- NEVER use e.g. {} or [] as standard function arguments
2016-07-12 20:03:10 +02:00
tomkat83
3fb6443b2b Let user always play trailer in highest quality 2016-06-26 12:32:19 +02:00
tomkat83
aa60baeb97 Let the user pick between several streams
- And don't just pick the first one
2016-06-25 17:21:47 +02:00
tomkat83
133741b567 Allow direct paths for Plex photos 2016-06-19 16:12:56 +02:00
tomkat83
8ebb867f78 Use language codes ('spa'), not verbose 'español'. You will have to reset your Kodi DB manually to profit from this change. Fixes #61 2016-06-19 15:56:51 +02:00
tomkat83
792d4debeb Fix fanart.tv fallback to English not working
- Fixes #63
2016-06-19 15:34:27 +02:00
tomkat83
c13343c62f Plex Photos! Choose "Refresh Plex playlists/nodes" to use the new feature 2016-06-19 14:58:42 +02:00
tomkat83
6689b265f2 Plex photos 2016-06-12 17:22:22 +02:00
tomkat83
6d42ae7e32 Fix not download collection artwork 2016-06-08 20:34:49 +02:00
tomkat83
faf95f671c Reduce movie set/collection boilerplate
- To increase code maintainability
2016-06-08 19:50:24 +02:00
im85288
9dbcb5e6ff set artwork 2016-06-06 21:10:58 +01:00
tomkat83
5d8b423bd6 Groundworks for Plex photos 2016-06-04 18:48:22 +02:00
tomkat83
a92146abc2 Remove emby references 2016-05-31 08:06:42 +02:00
tomkat83
5544dfd2fe Fix DTS-HD audio is not correctly identified
- Fixes #42
- You need to reset the Kodi DB to take advantage
2016-05-29 20:03:31 +02:00
tomkat83
eea101872b Attempt to hide password on entering it 2016-05-29 17:45:19 +02:00
tomkat83
473f6fe58a More rewiring of connections 2016-05-29 16:52:00 +02:00
tomkat83
ae34b63de9 Re-wired connection manager 2016-05-24 19:00:39 +02:00
tomkat83
67755d6a23 Improvements to PMS connection checks 2016-05-18 20:10:20 +02:00
tomkat83
04bcaafdb4 Fix direct path replacing possibly several times
- Fixes #37
2016-05-17 20:15:46 +02:00
tomkat83
2fe457e496 Correct VideoCodec help string 2016-05-15 16:30:09 +02:00
tomkat83
cbf3638076 Merge conflicts: Force transcode 10bit videos 2016-05-15 16:25:38 +02:00
tomkat83
df38786638 Account for string.encode() not allowing args
- E.g. Android TV
2016-05-07 13:15:02 +02:00
tomkat83
8848d5167d Less logging 2016-05-07 11:58:37 +02:00
tomkat83
765fb2ddf2 Fix TypeError: encode() takes no keyword arguments
E.g. Android TV do not accept arguments for string.encode()
2016-05-07 11:55:35 +02:00
tomkat83
47409e1535 Fix UnicodeDecodeError with file paths on sync
- Plex sometimes seems to encode in latin1 instead of utf-8. What the
heck?!?
- Fixes #20
2016-05-06 22:16:56 +02:00
tomkat83
68ced3a4a1 Fix TypeError during Plex user switch
- Fixes #19
2016-05-01 10:28:08 +02:00
tomkat83
674f670dee Move API keys to settings file 2016-04-29 13:32:25 +02:00
tomkat83
d879a9d23c Additional artwork download from FanartTV! 2016-04-29 12:44:56 +02:00
tomkat83
0d96f6bf4f New setting: Show+SxxExx to Recently Added
- Fixes #12
2016-04-27 10:37:24 +02:00
tomkat83
3855bb16ed Fix UnicodeEncodeError, fixes #8 2016-04-26 19:19:52 +02:00
tomkat83
c7b52a1fa4 Merge conflicts: download action_type 2016-04-26 14:02:19 +02:00
tomkat83
0c880cd883 Fix TV show on deck view
- Fix TV show poster for episodes
- Added banner to setArtwork
- Cleaned up getAllArtwork
2016-04-22 10:26:40 +02:00
tomkat83
fbb6ca790c Revert "Include Plex resume data in CreateListItem"
This reverts commit 05d3242f22.
2016-04-19 15:20:11 +02:00
tomkat83
8bb0b240e2 Revert "Include Plex resume data in CreateListItem"
This reverts commit 6f5f73ae86.
2016-04-19 15:20:07 +02:00
tomkat83
133482001c Revert "Fixes to listitem setup"
This reverts commit f2dd8617f3.
2016-04-19 15:20:03 +02:00
tomkat83
f2dd8617f3 Fixes to listitem setup 2016-04-19 11:18:55 +02:00
tomkat83
6f5f73ae86 Include Plex resume data in CreateListItem 2016-04-18 12:30:34 +02:00
tomkat83
05d3242f22 Include Plex resume data in CreateListItem 2016-04-18 12:30:00 +02:00
tomkat83
9dd592b863 Deactivate 3rd party fanart lookup for now 2016-04-18 11:34:01 +02:00
tomkat83
93cd265e8f Groundworks for plex.tv Watch Later 2016-04-17 13:36:41 +02:00
tomkat83
8f69f4dfbf Merge remote-tracking branch 'im8528/master' into develop 2016-04-16 11:01:17 +02:00
im85288
9c2996af1e retrieve other artwork from fanarttv such as discart,banner etc 2016-04-15 20:44:54 +01:00
im85288
cbe3a28660 retrieve banner art when available 2016-04-15 12:22:56 +01:00
tomkat83
36884c0537 Fix Plex Date added missing 2016-04-15 09:32:04 +02:00
tomkat83
a089dc6e04 Correctly stop transcoding 2016-04-13 16:14:55 +02:00
tomkat83
61fb7694aa Fix Kodi checking for existing files and dirs 2016-04-13 14:15:31 +02:00
tomkat83
47938cf5c2 DoUtils: use authenticate instead of dontSignout 2016-04-13 10:48:45 +02:00
tomkat83
9d06225228 Centralize Direct Play and Direct Paths 2016-04-12 17:18:32 +02:00
tomkat83
4ca321faea Always direct play items, if possible 2016-04-11 18:57:20 +02:00
tomkat83
e53afe3fb9 Backwards compatibility py2.6: replace etree iter
- Make python 2.6 compatible: replace iter() with findall()
2016-04-09 16:26:08 +02:00
tomkat83
be71912496 Don't sign out on checking connections 2016-04-07 16:46:12 +02:00
tomkat83
b91145ecae Fix TV On Deck view and entire shows as watched
- Playcount was set to 0, not NULL/None in Kodi Database
2016-04-07 15:13:05 +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
tomkat83
260fc7adf8 Rewired download and PMS connection
- Look for PMS in the LAN, even if plex.tv is available
2016-04-06 16:24:03 +02:00
tomkat83
8bad79413c Move any download activities to one method 2016-04-05 20:10:29 +02:00
tomkat83
12add3d369 Move xArgsDeviceInfo to clientinfo 2016-04-05 18:23:00 +02:00
tomkat83
9929ab2eb5 Sleep when checking connection failed 2016-04-05 17:03:34 +02:00
tomkat83
fb46c41294 Try 3x before declaring plex connection dead 2016-04-05 11:20:39 +02:00
tomkat83
50b25ccf73 Fix TypeError with PMS item 'addedAt' missing 2016-04-02 10:43:50 +02:00
tomkat83
47d480eafd Ratings default to 0, not None 2016-04-02 10:31:21 +02:00
tomkat83
9dec68f6d9 Do background sync while playing
But no full sync
2016-03-29 19:45:32 +02:00
tomkat83
e73b467904 Music: set default rating to 0, not NULL 2016-03-28 10:40:30 +02:00
tomkat83
2ff7f7fa5c Music: scrape Studio/Label 2016-03-28 09:56:22 +02:00
tomkat83
1e49e9dea9 Background sync using websockets 2016-03-27 16:57:35 +02:00
tomkat83
8abd987d2b New Setting: Choose Plex Server from a list 2016-03-24 12:34:39 +01:00
tomkat83
eca710f2a9 Fix transcoding for HTTP, HTTPs still shaky 2016-03-24 10:24:11 +01:00
tomkat83
3a4349e647 Disable SSL warning in Log, clean Futurewarnings 2016-03-23 16:57:49 +01:00
tomkat83
2806c8002a Cleaned out https checks
- Disabled HTTP certificate warnings in log
2016-03-23 16:07:09 +01:00
tomkat83
feb01b748f Switch from xml.etree.cElementTree to .ElementTree
cElementTree has issues, e.g. during Kodi user profile switch
2016-03-23 09:42:59 +01:00
tomkat83
8d9620b408 Only remind once that direct paths are unverified 2016-03-21 17:54:04 +01:00
tomkat83
234a141cc6 Fix TV shows rating not showing up 2016-03-17 16:15:48 +01:00
tomkat83
9f8343113a Fixed some plex.tv token issue 2016-03-17 12:45:38 +01:00
tomkat83
09f0295e1c Sync theTVDB id for TV shows from Plex to Kodi 2016-03-16 18:47:57 +01:00
tomkat83
35bba8e581 Move validatePlayUrl 2016-03-16 18:33:18 +01:00
tomkat83
7f674acbac Redesign Kodi monitor and player
Allows now to have playback initiated by Kodi - especially when using
direct paths
2016-03-16 17:02:22 +01:00
tomkat83
aaa8ada3ea Use direct paths - not yet working for music 2016-03-15 20:26:45 +01:00
tomkat83
037925a030 Prep On Deck 2016-03-14 17:47:05 +01:00
tomkat83
4771c71978 Remove some logging 2016-03-14 10:00:03 +01:00
tomkat83
c2f1bca6c2 Fix KeyError for library sync 2016-03-14 09:56:04 +01:00
tomkat83
d300cc60d6 Fix tv show season posters not showing 2016-03-13 16:06:54 +01:00
tomkat83
53c07d4b50 Fix Recently Added
Plex time was not converted to Kodi time
2016-03-13 14:50:29 +01:00