Commit graph

281 commits

Author SHA1 Message Date
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
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