Merge branch 'develop' into translations
This commit is contained in:
commit
626e67cab1
7 changed files with 41 additions and 39 deletions
|
@ -2,6 +2,14 @@
|
||||||
|
|
||||||
Thanks a ton for contributing to PlexKodiConnect!
|
Thanks a ton for contributing to PlexKodiConnect!
|
||||||
|
|
||||||
|
|
||||||
|
## Programming
|
||||||
|
|
||||||
* Please make pull requests towards the **develop** branch, not the master branch. Hence please fork the **develop** branch and not the master branch
|
* Please make pull requests towards the **develop** branch, not the master branch. Hence please fork the **develop** branch and not the master branch
|
||||||
* Thanks if you can follow the Python style guide [PEP8](https://www.python.org/dev/peps/pep-0008/) to keep things neat and clean
|
* Thanks if you can follow the Python style guide [PEP8](https://www.python.org/dev/peps/pep-0008/) to keep things neat and clean
|
||||||
* Thanks if you add some comments to make your code more readable ;-)
|
* Thanks if you add some comments to make your code more readable ;-)
|
||||||
|
|
||||||
|
|
||||||
|
## Translations
|
||||||
|
|
||||||
|
* Please [only use crowdin.com](https://crowdin.com/project/plexkodiconnect/invite) to help with translations. Don't use Github pull requests.
|
|
@ -75,8 +75,9 @@ PKC currently provides the following features:
|
||||||
- Different PKC interface languages:
|
- Different PKC interface languages:
|
||||||
+ English
|
+ English
|
||||||
+ German
|
+ German
|
||||||
+ Czech (thanks @Pavuucek)
|
+ Czech, thanks @Pavuucek
|
||||||
+ More coming up
|
+ Spanish, thanks @bartolomesoriano
|
||||||
|
+ More coming up: [you can help!](https://crowdin.com/project/plexkodiconnect/invite)
|
||||||
- [Plex Watch Later / Plex It!](https://support.plex.tv/hc/en-us/sections/200211783-Plex-It-)
|
- [Plex Watch Later / Plex It!](https://support.plex.tv/hc/en-us/sections/200211783-Plex-It-)
|
||||||
- [Plex Companion](https://support.plex.tv/hc/en-us/sections/200276908-Plex-Companion): fling Plex media (or anything else) from other Plex devices to PlexKodiConnect
|
- [Plex Companion](https://support.plex.tv/hc/en-us/sections/200276908-Plex-Companion): fling Plex media (or anything else) from other Plex devices to PlexKodiConnect
|
||||||
- [Plex Transcoding](https://support.plex.tv/hc/en-us/articles/200250377-Transcoding-Media)
|
- [Plex Transcoding](https://support.plex.tv/hc/en-us/articles/200250377-Transcoding-Media)
|
||||||
|
|
20
addon.xml
20
addon.xml
|
@ -21,19 +21,19 @@
|
||||||
</item>
|
</item>
|
||||||
</extension>
|
</extension>
|
||||||
<extension point="xbmc.addon.metadata">
|
<extension point="xbmc.addon.metadata">
|
||||||
|
<summary lang="en">Native Integration of Plex into Kodi</summary>
|
||||||
|
<summary lang="cs">Úplná integrace Plexu do Kodi</summary>
|
||||||
|
<summary lang="de">Komplette Integration von Plex in Kodi</summary>
|
||||||
|
<summary lang="es">Native Integration of Plex into Kodi</summary>
|
||||||
|
<description lang="en">Connect Kodi to your Plex Media Server. This plugin assumes that you manage all your videos with Plex (and none with Kodi). You might lose data already stored in the Kodi video and music databases (as this plugin directly changes them). Use at your own risk!</description>
|
||||||
|
<description lang="cs">Připojte Kodi ke svému Plex Media Serveru. Tento doplněk předpokládá, že spravujete veškerá svá videa pomocí Plexu (nikoliv pomocí Kodi). Můžete přijít o data uložená ve video a hudební databázi Kodi (tento doplněk je přímo mění). Používejte na vlastní nebezpečí!</description>
|
||||||
|
<description lang="de">Verbindet Kodi mit deinem Plex Media Server. Dieses Addon geht davon aus, dass du all deine Videos mit Plex verwaltest (und keine direkt mit Kodi). Du wirst möglicherweise Daten verlieren, die bereits in der Kodi Video- und/oder Musik-Datenbank gespeichert sind (da dieses Addon beide Datenbanken direkt verändert). Verwende auf eigene Gefahr!</description>
|
||||||
|
<description lang="es">Connect Kodi to your Plex Media Server. This plugin assumes that you manage all your videos with Plex (and none with Kodi). You might lose data already stored in the Kodi video and music databases (as this plugin directly changes them). Use at your own risk!</description>
|
||||||
<platform>all</platform>
|
<platform>all</platform>
|
||||||
<language>en cs de es</language>
|
<license>GPL v2.0</license>
|
||||||
<license>GNU GENERAL PUBLIC LICENSE. Version 2, June 1991</license>
|
|
||||||
<forum>https://forums.plex.tv</forum>
|
<forum>https://forums.plex.tv</forum>
|
||||||
<website>https://github.com/croneter/PlexKodiConnect</website>
|
<website>https://github.com/croneter/PlexKodiConnect</website>
|
||||||
|
<email></email>
|
||||||
<source>https://github.com/croneter/PlexKodiConnect</source>
|
<source>https://github.com/croneter/PlexKodiConnect</source>
|
||||||
<summary lang="en">Native Integration of Plex into Kodi</summary>
|
|
||||||
<description lang="en">Connect Kodi to your Plex Media Server. This plugin assumes that you manage all your videos with Plex (and none with Kodi). You might lose data already stored in the Kodi video and music databases (as this plugin directly changes them). Use at your own risk!</description>
|
|
||||||
<summary lang="cs">Úplná integrace Plexu do Kodi</summary>
|
|
||||||
<description lang="cs">Připojte Kodi ke svému Plex Media Serveru. Tento doplněk předpokládá, že spravujete veškerá svá videa pomocí Plexu (nikoliv pomocí Kodi). Můžete přijít o data uložená ve video a hudební databázi Kodi (tento doplněk je přímo mění). Používejte na vlastní nebezpečí!</description>
|
|
||||||
<summary lang="de">Komplette Integration von Plex in Kodi</summary>
|
|
||||||
<description lang="de">Verbindet Kodi mit deinem Plex Media Server. Dieses Addon geht davon aus, dass du all deine Videos mit Plex verwaltest (und keine direkt mit Kodi). Du wirst möglicherweise Daten verlieren, die bereits in der Kodi Video- und/oder Musik-Datenbank gespeichert sind (da dieses Addon beide Datenbanken direkt verändert). Verwende auf eigene Gefahr!</description>
|
|
||||||
<summary lang="es">Native Integration of Plex into Kodi</summary>
|
|
||||||
<description lang="es">Connect Kodi to your Plex Media Server. This plugin assumes that you manage all your videos with Plex (and none with Kodi). You might lose data already stored in the Kodi video and music databases (as this plugin directly changes them). Use at your own risk!</description>
|
|
||||||
</extension>
|
</extension>
|
||||||
</addon>
|
</addon>
|
|
@ -474,7 +474,16 @@ class PlexAPI():
|
||||||
if PMS['uuid'] in self.g_PMS:
|
if PMS['uuid'] in self.g_PMS:
|
||||||
log.debug('We already know of PMS %s from plex.tv'
|
log.debug('We already know of PMS %s from plex.tv'
|
||||||
% PMS['serverName'])
|
% PMS['serverName'])
|
||||||
continue
|
# Update with GDM data - potentially more reliable than plex.tv
|
||||||
|
self.updatePMSProperty(PMS['uuid'], 'ip', PMS['ip'])
|
||||||
|
self.updatePMSProperty(PMS['uuid'], 'port', PMS['port'])
|
||||||
|
self.updatePMSProperty(PMS['uuid'], 'local', '1')
|
||||||
|
self.updatePMSProperty(PMS['uuid'], 'scheme', 'http')
|
||||||
|
self.updatePMSProperty(PMS['uuid'],
|
||||||
|
'baseURL',
|
||||||
|
'http://%s:%s' % (PMS['ip'],
|
||||||
|
PMS['port']))
|
||||||
|
else:
|
||||||
self.declarePMS(PMS['uuid'], PMS['serverName'], 'http',
|
self.declarePMS(PMS['uuid'], PMS['serverName'], 'http',
|
||||||
PMS['ip'], PMS['port'])
|
PMS['ip'], PMS['port'])
|
||||||
# Ping to check whether we need HTTPs or HTTP
|
# Ping to check whether we need HTTPs or HTTP
|
||||||
|
|
|
@ -605,6 +605,7 @@ class LibrarySync(Thread):
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# Empty movies, tv shows?
|
# Empty movies, tv shows?
|
||||||
log.error('Path hack failed with error message: %s' % str(e))
|
log.error('Path hack failed with error message: %s' % str(e))
|
||||||
|
setScreensaver(value=screensaver)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def processView(self, folderItem, kodi_db, plex_db, totalnodes):
|
def processView(self, folderItem, kodi_db, plex_db, totalnodes):
|
||||||
|
|
|
@ -278,33 +278,15 @@ def create_actor_db_index():
|
||||||
|
|
||||||
def getScreensaver():
|
def getScreensaver():
|
||||||
# Get the current screensaver value
|
# Get the current screensaver value
|
||||||
query = {
|
params = {'setting': "screensaver.mode"}
|
||||||
|
return JSONRPC('Settings.getSettingValue').execute(params)['result']['value']
|
||||||
|
|
||||||
'jsonrpc': "2.0",
|
|
||||||
'id': 0,
|
|
||||||
'method': "Settings.getSettingValue",
|
|
||||||
'params': {
|
|
||||||
|
|
||||||
'setting': "screensaver.mode"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return loads(xbmc.executeJSONRPC(dumps(query)))['result']['value']
|
|
||||||
|
|
||||||
def setScreensaver(value):
|
def setScreensaver(value):
|
||||||
# Toggle the screensaver
|
# Toggle the screensaver
|
||||||
query = {
|
params = {'setting': "screensaver.mode", 'value': value}
|
||||||
|
log.debug('Toggling screensaver to "%s": %s'
|
||||||
'jsonrpc': "2.0",
|
% (value, JSONRPC('Settings.setSettingValue').execute(params)))
|
||||||
'id': 0,
|
|
||||||
'method': "Settings.setSettingValue",
|
|
||||||
'params': {
|
|
||||||
|
|
||||||
'setting': "screensaver.mode",
|
|
||||||
'value': value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
log.debug("Toggling screensaver: %s %s"
|
|
||||||
% (value, xbmc.executeJSONRPC(dumps(query))))
|
|
||||||
|
|
||||||
|
|
||||||
def reset():
|
def reset():
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
from os import path as os_path
|
from os import path as os_path
|
||||||
from sys import path as sys_path
|
from sys import path as sys_path, argv
|
||||||
|
|
||||||
from xbmc import translatePath, Monitor, sleep
|
from xbmc import translatePath, Monitor, sleep
|
||||||
from xbmcaddon import Addon
|
from xbmcaddon import Addon
|
||||||
|
@ -100,6 +100,7 @@ class Service():
|
||||||
log.warn("Number of sync threads: %s"
|
log.warn("Number of sync threads: %s"
|
||||||
% settings('syncThreadNumber'))
|
% settings('syncThreadNumber'))
|
||||||
log.warn("Log Level: %s" % logLevel)
|
log.warn("Log Level: %s" % logLevel)
|
||||||
|
log.warn("Full sys.argv received: %s" % argv)
|
||||||
|
|
||||||
# Reset window props for profile switch
|
# Reset window props for profile switch
|
||||||
properties = [
|
properties = [
|
||||||
|
|
Loading…
Reference in a new issue