Commit graph

308 commits

Author SHA1 Message Date
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
tomkat83
9097f06392 Fix librarysync key error 2016-03-11 14:47:41 +01:00
tomkat83
ae9d4924c2 Redesign fast sync 2016-03-11 14:42:14 +01:00
tomkat83
a3c2d21757 Fix userclient 2016-03-10 16:02:46 +01:00
tomkat83
5be1e3a24a Fix KeyError in library sync 2016-03-10 12:47:30 +01:00
tomkat83
55b3d44899 Overhaul userclient
Again...
2016-03-09 15:37:27 +01:00
tomkat83
e635f43845 Improve sync resiliance and GDM discovery
Improve sync resiliance to bad connections (e.g. behind a firewall)
2016-03-08 17:41:07 +01:00
tomkat83
100421ce2d Connect to remote PMS 2016-03-08 14:50:43 +01:00
tomkat83
56af183288 Correct encoding
Kodi dialogs take unicode
2016-03-08 13:00:03 +01:00
tomkat83
c0f2067856 Don't log header if checking connection to a PMS 2016-03-07 14:10:47 +01:00
tomkat83
4996d7122f Bugfix: enforce PIN for protected users
Bugfix for Plex.tv bug: don't allow protected user to get a token if
pin= in url is omitted
2016-03-07 13:10:38 +01:00
tomkat83
c6503f8a8e Enable non-ASCI PMS server name and username 2016-03-07 13:01:45 +01:00
tomkat83
e784dab578 Overhaul userclient 2016-03-04 13:34:30 +01:00
tomkat83
4e44579c1f General bug squishing 2016-03-03 15:28:44 +01:00
tomkat83
c2ecdacec4 Settings overhaul. Also added many German translations 2016-03-03 14:00:48 +01:00
tomkat83
47ad159a5f Add PMS collections to tv shows 2016-03-01 16:28:48 +01:00
tomkat83
e8f1382916 Add PMS collection tags to movies 2016-03-01 16:18:12 +01:00
tomkat83
70393b1b86 Fix URL tokens 2016-02-19 16:10:19 +01:00
tomkat83
bcbbb1b42f Plex Music!
Playing does not work yet, but Lib sync is up
2016-02-12 16:53:49 +01:00
tomkat83
39f1d0c367 Fix dbid not found if playQueue sent 2016-02-11 10:30:29 +01:00
tomkat83
99129e5a78 Connection close, not keep-alive 2016-02-10 16:15:57 +01:00
tomkat83
f968d2eef8 Improve setPartNumber 2016-02-07 18:05:59 +01:00
tomkat83
0f14019e5b Overhaul Plex Companion 2016-02-07 12:38:50 +01:00
tomkat83
125daea6ef Transcoding up 2016-02-04 20:23:04 +01:00
tomkat83
c63e4c1bc4 Redesign playbackutils 2016-02-03 13:01:13 +01:00
tomkat83
fa0003a5eb Overhaul PlexAPI. Only using XMLs now, no JSONs 2016-02-01 10:33:33 +01:00
tomkat83
6aa3f62b79 Plexcompanion 1st version for entrypoint.py, playbackutils.py, PlexAPI.py 2016-01-31 16:13:40 +01:00
tomkat83
8912a0b601 Overhaul Part 1 2016-01-29 20:07:21 +01:00
tomkat83
40c8b6f683 Moved many functions to PlexFunctions.py 2016-01-27 16:33:02 +01:00
tomkat83
e5311981b4 Small fixes 2016-01-27 15:14:30 +01:00
tomkat83
0d4c8ae53e Added logging decorator 2016-01-26 17:20:13 +01:00
tomkat83
079f43c644 User switch fix, part 1 2016-01-25 10:36:24 +01:00
tomkat83
613e033b48 Fix playing trailers directly via Plex Companion 2016-01-24 16:12:28 +01:00
tomkat83
e0330c1a28 Fixed plex companion headers and resume point 2016-01-23 15:53:24 +01:00
tomkat83
48ba7f0869 Plex Companien (Plexbmc helper) version 0.1 2016-01-22 15:37:20 +01:00
tomkat83
c1c19cbc68 Merge conflicts sync 2016-01-15 10:04:47 +01:00
tomkat83
40c02395a2 Added UpdateUserdata to Movies and TV Shows 2016-01-14 16:17:24 +01:00
tomkat83
eddfa23a71 Plex home user switch finally working 2016-01-14 14:47:34 +01:00
tomkat83
6e8bd3e7da Plex.tv sign in with 4 digit PIN 2016-01-14 10:20:19 +01:00
tomkat83
1f8eb7f2ab Trying to change Plex.tv sign in process 2016-01-13 14:56:44 +01:00
tomkat83
79f95100c5 Switch user v01 2016-01-12 17:23:55 +01:00
tomkat83
ca731ba41e Pass resume point back to PMS 2016-01-12 13:57:26 +01:00
tomkat83
57e6d40af2 Plex trailers directly playable now 2016-01-12 11:47:48 +01:00
tomkat83
5e8fd41938 Checksum for season 2016-01-11 17:37:01 +01:00
tomkat83
c854ee621e videonodes v0.1 2016-01-11 09:57:45 +01:00
tomkat83
de3a058463 Sped up initial sync 2016-01-11 07:55:22 +01:00
tomkat83
5da6b4153e TV shows sync v0.1 2016-01-09 16:14:02 +01:00
tomkat83
8c18879271 Switch to threaded Movie metadata processing 2016-01-07 17:27:48 +01:00
tomkat83
cef41188e0 Movies now direct playing. Trailers playing but always transcoding 2016-01-05 16:05:20 +01:00
tomkat83
93ad4ae0cb Movie with multiple parts now working 2016-01-03 19:17:59 +01:00
tomkat83
1970e00b16 Playbackutils now cycles correctly over XML reply; trailers thus working 2016-01-03 15:41:12 +01:00
tomkat83
7f9dfca2d6 Trailers up. BUT: first trailer is repeated indefinitely 2016-01-03 13:36:00 +01:00
tomkat83
e0ccaf16ad Fix getting Metadata for streaming 2016-01-02 09:28:31 +01:00
tomkat83
a134259cb5 Fix resume and runtime 2016-01-01 20:36:02 +01:00
tomkat83
5c35ce651b Add Addonname to user selection dialog 2016-01-01 14:50:51 +01:00
tomkat83
bc65b6082d Direct playing movie works 2016-01-01 14:40:40 +01:00
tomkat83
681e57b350 Fix getting Stream metadata 2015-12-31 12:46:41 +01:00
tomkat83
3fe10ba851 Switched metadata processing from JSON to XML 2015-12-31 10:53:22 +01:00
tomkat83
f2294569e6 Syncing Movie pictures now finally works
Had to add Plex credentials to URL
2015-12-30 16:37:30 +01:00
tomkat83
1e7acfc927 Moving getallartworks to PlexAPI 2015-12-30 15:57:55 +01:00
tomkat83
25f5d65343 Movie sync working. 2015-12-30 13:25:37 +01:00
tomkat83
54a20f0b13 Before recoding Plexmovies function 2015-12-29 14:13:32 +01:00
tomkat83
88f649d36d Movie Sync Alpha version 2015-12-28 18:47:16 +01:00
tomkat83
43765a6675 Fixes 2015-12-28 13:10:05 +01:00
tomkat83
92eac70c0b Small fixes user authorization 2015-12-28 10:35:27 +01:00
tomkat83
8604fab2d4 Fixes to loading user 2015-12-28 09:17:17 +01:00
tomkat83
557c3f03a1 Code for Plex home not being used (1 user only) 2015-12-28 09:00:43 +01:00
tomkat83
48a248ff59 Plex home user authentication done! 2015-12-27 17:12:46 +01:00
tomkat83
6ea38c7dfb Start user authentication 2015-12-27 16:27:49 +01:00
tomkat83
dd1e873b20 Choose Plex user. Connection fixes 2015-12-27 14:42:54 +01:00
tomkat83
6c40455ac6 Trying to fix SSL issues. Seems to be a Kodi request issue for very first calls?!?
still get "[Errno 8] _ssl.c:510: EOF occurred in violation of protocol"
2015-12-27 13:20:53 +01:00
tomkat83
e6db2e1b96 Added PlexAPI.py. Adjusted settings.xml 2015-12-27 12:09:07 +01:00