mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Move theme music sync to update and make it an option
This commit is contained in:
parent
64f3161518
commit
f22ca2783c
4 changed files with 25 additions and 10 deletions
|
@ -1,8 +1,8 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<addon id="plugin.video.mb3sync"
|
<addon id="plugin.video.mb3sync"
|
||||||
name="MediaBrowser Syncer"
|
name="Emby Syncer"
|
||||||
version="0.0.1"
|
version="0.0.1"
|
||||||
provider-name="mediabrowser.tv">
|
provider-name="Emby.media">
|
||||||
<requires>
|
<requires>
|
||||||
<import addon="xbmc.python" version="2.1.0"/>
|
<import addon="xbmc.python" version="2.1.0"/>
|
||||||
</requires>
|
</requires>
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<string id="30010">Enable Performance Profiling</string>
|
<string id="30010">Enable Performance Profiling</string>
|
||||||
<string id="30011">Local caching system</string>
|
<string id="30011">Local caching system</string>
|
||||||
|
|
||||||
<string id="30014">MediaBrowser</string>
|
<string id="30014">Emby</string>
|
||||||
<string id="30015">Network</string>
|
<string id="30015">Network</string>
|
||||||
<string id="30016">Device Name</string>
|
<string id="30016">Device Name</string>
|
||||||
|
|
||||||
|
@ -233,6 +233,10 @@
|
||||||
<string id="30233">Don't Show Skin Compatibility Message</string>
|
<string id="30233">Don't Show Skin Compatibility Message</string>
|
||||||
<string id="30234">Add Show Name (Season + Episode)</string>
|
<string id="30234">Add Show Name (Season + Episode)</string>
|
||||||
|
|
||||||
|
<string id="30235">Extras</string>
|
||||||
|
<string id="30236">Sync Theme Music</string>
|
||||||
|
<string id="30237">Sync Extra Fanart</string>
|
||||||
|
|
||||||
<!-- Default views -->
|
<!-- Default views -->
|
||||||
<string id="30300">Active</string>
|
<string id="30300">Active</string>
|
||||||
<string id="30301">Clear Settings</string>
|
<string id="30301">Clear Settings</string>
|
||||||
|
|
|
@ -168,6 +168,10 @@ class WriteKodiDB():
|
||||||
CreateFiles().createSTRM(MBitem)
|
CreateFiles().createSTRM(MBitem)
|
||||||
CreateFiles().createNFO(MBitem)
|
CreateFiles().createNFO(MBitem)
|
||||||
|
|
||||||
|
#add theme music
|
||||||
|
if addon.getSetting("syncThemeMusic") == "true":
|
||||||
|
CreateFiles().copyThemeMusic(MBitem)
|
||||||
|
|
||||||
if(changes):
|
if(changes):
|
||||||
utils.logMsg("Updated item to Kodi Library", MBitem["Id"] + " - " + MBitem["Name"], level=0)
|
utils.logMsg("Updated item to Kodi Library", MBitem["Id"] + " - " + MBitem["Name"], level=0)
|
||||||
|
|
||||||
|
@ -307,6 +311,10 @@ class WriteKodiDB():
|
||||||
CreateFiles().createSTRM(MBitem)
|
CreateFiles().createSTRM(MBitem)
|
||||||
CreateFiles().createNFO(MBitem)
|
CreateFiles().createNFO(MBitem)
|
||||||
|
|
||||||
|
#add theme music
|
||||||
|
if addon.getSetting("syncThemeMusic") == "true":
|
||||||
|
CreateFiles().copyThemeMusic(MBitem)
|
||||||
|
|
||||||
if changes:
|
if changes:
|
||||||
utils.logMsg("Updated item to Kodi Library", MBitem["Id"] + " - " + MBitem["Name"])
|
utils.logMsg("Updated item to Kodi Library", MBitem["Id"] + " - " + MBitem["Name"])
|
||||||
|
|
||||||
|
@ -368,6 +376,10 @@ class WriteKodiDB():
|
||||||
|
|
||||||
CreateFiles().createNFO(MBitem)
|
CreateFiles().createNFO(MBitem)
|
||||||
|
|
||||||
|
#add theme music
|
||||||
|
if addon.getSetting("syncThemeMusic") == "true":
|
||||||
|
CreateFiles().copyThemeMusic(MBitem)
|
||||||
|
|
||||||
if changes:
|
if changes:
|
||||||
utils.logMsg("Updated item to Kodi Library", MBitem["Id"] + " - " + MBitem["Name"])
|
utils.logMsg("Updated item to Kodi Library", MBitem["Id"] + " - " + MBitem["Name"])
|
||||||
|
|
||||||
|
@ -683,9 +695,6 @@ class WriteKodiDB():
|
||||||
# create strm file
|
# create strm file
|
||||||
changes |= CreateFiles().createSTRM(item)
|
changes |= CreateFiles().createSTRM(item)
|
||||||
|
|
||||||
#add theme music
|
|
||||||
CreateFiles().copyThemeMusic(item)
|
|
||||||
|
|
||||||
if changes:
|
if changes:
|
||||||
utils.logMsg("MB3 Sync","Added movie to Kodi Library",item["Id"] + " - " + item["Name"])
|
utils.logMsg("MB3 Sync","Added movie to Kodi Library",item["Id"] + " - " + item["Name"])
|
||||||
|
|
||||||
|
@ -771,9 +780,6 @@ class WriteKodiDB():
|
||||||
#create nfo file
|
#create nfo file
|
||||||
changes = CreateFiles().createNFO(item)
|
changes = CreateFiles().createNFO(item)
|
||||||
|
|
||||||
#add theme music
|
|
||||||
CreateFiles().copyThemeMusic(item)
|
|
||||||
|
|
||||||
if changes:
|
if changes:
|
||||||
utils.logMsg("Added TV Show to Kodi Library ",item["Id"] + " - " + item["Name"])
|
utils.logMsg("Added TV Show to Kodi Library ",item["Id"] + " - " + item["Name"])
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<setting id="playCountSyncIndication" type="labelenum" label="Play Count Sync Indication:" values="None|Notify OnChange|Notify OnFinish|BG Progress|Dialog Progress" default="None" />
|
<setting id="playCountSyncIndication" type="labelenum" label="Play Count Sync Indication:" values="None|Notify OnChange|Notify OnFinish|BG Progress|Dialog Progress" default="None" />
|
||||||
</category>
|
</category>
|
||||||
|
|
||||||
<category label="30014"> <!-- MediaBrowser -->
|
<category label="30014"> <!-- Emby -->
|
||||||
<setting id="ipaddress" type="text" label="30000" default="" visible="true" enable="true" />
|
<setting id="ipaddress" type="text" label="30000" default="" visible="true" enable="true" />
|
||||||
<setting id="port" type="text" label="30030" default="8096" visible="true" enable="true" />
|
<setting id="port" type="text" label="30030" default="8096" visible="true" enable="true" />
|
||||||
<setting id="https" type="bool" label="Enable HTTPS" visible="true" enable="true" />
|
<setting id="https" type="bool" label="Enable HTTPS" visible="true" enable="true" />
|
||||||
|
@ -25,6 +25,11 @@
|
||||||
<setting id="deviceName" type="text" label="30016" default="Kodi"/>
|
<setting id="deviceName" type="text" label="30016" default="Kodi"/>
|
||||||
</category>
|
</category>
|
||||||
|
|
||||||
|
<category label="30235"> <!-- Extra Sync options -->
|
||||||
|
<setting id="syncThemeMusic" type="bool" label="30236" default="false" visible="true" enable="true" />
|
||||||
|
<!-- <setting id="syncExtraFanart" type="bool" label="30237" default="false" visible="true" enable="true" /> -->
|
||||||
|
</category>
|
||||||
|
|
||||||
<category label="30022"> <!-- Advanced -->
|
<category label="30022"> <!-- Advanced -->
|
||||||
<setting id="logLevel" type="enum" label="30004" values="None|Info|Debug" default="0" />
|
<setting id="logLevel" type="enum" label="30004" values="None|Info|Debug" default="0" />
|
||||||
<setting id="smbusername" type="text" label="30007" default="" visible="true" enable="true" />
|
<setting id="smbusername" type="text" label="30007" default="" visible="true" enable="true" />
|
||||||
|
|
Loading…
Reference in a new issue