mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Version bump 3.1.16
Additional logging, fix kodi source.
This commit is contained in:
parent
387cfafa5a
commit
bd489769ca
3 changed files with 9 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<addon id="plugin.video.emby"
|
||||
name="Emby"
|
||||
version="3.1.15a"
|
||||
version="3.1.16a"
|
||||
provider-name="angelblue05">
|
||||
<requires>
|
||||
<import addon="xbmc.python" version="2.25.0"/>
|
||||
|
|
|
@ -96,6 +96,7 @@ class FullSync(object):
|
|||
''' Select all or whitelist libraries. Provides a new list.
|
||||
'''
|
||||
if not dialog("yesno", heading="{emby}", line1=_(33125), nolabel=_(33126), yeslabel=_(33127)):
|
||||
LOG.info("Selected sync later.")
|
||||
raise LibraryException('SyncLibraryLater')
|
||||
|
||||
choices = [x['Name'] for x in libraries]
|
||||
|
@ -105,6 +106,7 @@ class FullSync(object):
|
|||
if selection is None:
|
||||
raise LibraryException('LibrarySelection')
|
||||
elif not selection:
|
||||
LOG.info("Nothing was selected.")
|
||||
raise LibraryException('SyncLibraryLater')
|
||||
|
||||
if 0 in selection:
|
||||
|
@ -128,6 +130,7 @@ class FullSync(object):
|
|||
|
||||
''' Main sync process.
|
||||
'''
|
||||
LOG.info("starting sync with %s", self.sync['Libraries'])
|
||||
start_time = datetime.datetime.now()
|
||||
|
||||
for library in list(self.sync['Libraries']):
|
||||
|
|
|
@ -31,7 +31,9 @@ def sources():
|
|||
|
||||
xml = etree.Element('sources')
|
||||
video = etree.SubElement(xml, 'video')
|
||||
files = etree.SubElement(xml, 'files')
|
||||
etree.SubElement(video, 'default', attrib={'pathversion': "1"})
|
||||
etree.SubElement(files, 'default', attrib={'pathversion': "1"})
|
||||
|
||||
video = xml.find('video')
|
||||
count = 2
|
||||
|
@ -49,11 +51,13 @@ def sources():
|
|||
etree.SubElement(source, 'path', attrib={'pathversion': "1"}).text = "smb://"
|
||||
etree.SubElement(source, 'allowsharing').text = "true"
|
||||
|
||||
files = xml.find('files')
|
||||
|
||||
for source in xml.findall('.//path'):
|
||||
if source.text == 'http://kodi.emby.media':
|
||||
break
|
||||
else:
|
||||
source = etree.SubElement(video, 'source')
|
||||
source = etree.SubElement(files, 'source')
|
||||
etree.SubElement(source, 'name').text = "kodi.emby.media"
|
||||
etree.SubElement(source, 'path', attrib={'pathversion': "1"}).text = "http://kodi.emby.media"
|
||||
etree.SubElement(source, 'allowsharing').text = "true"
|
||||
|
|
Loading…
Reference in a new issue