mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 09:46:11 +00:00
Merge remote-tracking branch 'refs/remotes/origin/master' into develop
This commit is contained in:
commit
dabdee9604
6 changed files with 16 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<addon id="plugin.video.emby"
|
||||
name="Emby"
|
||||
version="2.3.0"
|
||||
version="2.3.1"
|
||||
provider-name="Emby.media">
|
||||
<requires>
|
||||
<import addon="xbmc.python" version="2.19.0"/>
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
version 2.3.1
|
||||
- minor fixes
|
||||
|
||||
version 2.3.0
|
||||
- New stable version
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ class Credentials(object):
|
|||
if self.credentials is None:
|
||||
try:
|
||||
with open(os.path.join(self.path, 'data.txt')) as infile:
|
||||
self.credentials = json.load(infile)
|
||||
self.credentials = json.load(unicode(infile))
|
||||
|
||||
except Exception as e: # File is either empty or missing
|
||||
log.warn(e)
|
||||
|
@ -54,7 +54,7 @@ class Credentials(object):
|
|||
self.credentials = data
|
||||
# Set credentials to file
|
||||
with open(os.path.join(self.path, 'data.txt'), 'w') as outfile:
|
||||
json.dump(data, outfile, indent=4, ensure_ascii=False)
|
||||
json.dump(unicode(data), outfile, indent=4, ensure_ascii=False)
|
||||
else:
|
||||
self._clear()
|
||||
|
||||
|
|
|
@ -62,10 +62,11 @@ class Items(object):
|
|||
@classmethod
|
||||
def path_validation(cls, path):
|
||||
# Verify if direct path is accessible or not
|
||||
verify_path = path
|
||||
if not os.path.supports_unicode_filenames:
|
||||
path = path.encode('utf-8')
|
||||
verify_path = path.encode('utf-8')
|
||||
|
||||
if window('emby_pathverified') != "true" and not xbmcvfs.exists(path):
|
||||
if window('emby_pathverified') != "true" and not xbmcvfs.exists(verify_path):
|
||||
if dialog(type_="yesno",
|
||||
heading="{emby}",
|
||||
line1="%s %s. %s" % (lang(33047), path, lang(33048))):
|
||||
|
|
|
@ -746,8 +746,8 @@ class KodiItems(object):
|
|||
tag_id = self.cursor.fetchone()[0] + 1
|
||||
|
||||
query = "INSERT INTO tag(idTag, strTag) values(?, ?)"
|
||||
self.cursor.execute(query, (tag_id, name))
|
||||
log.debug("Create idTag: %s name: %s", tag_id, name)
|
||||
self.cursor.execute(query, (tag_id, tag))
|
||||
log.debug("Create idTag: %s name: %s", tag_id, tag)
|
||||
|
||||
finally:
|
||||
# Assign tag to item
|
||||
|
|
|
@ -528,8 +528,11 @@ class Music(Items):
|
|||
artist_full = emby.getItem(artist_eid)
|
||||
self.add_updateArtist(artist_full)
|
||||
artist_edb = emby_db.getItem_byId(artist_eid)
|
||||
artistid = artist_edb[0]
|
||||
finally:
|
||||
artistid = artist_edb[0] if artist_edb else None
|
||||
except Exception:
|
||||
artistid = None
|
||||
|
||||
if artistid:
|
||||
# Link song to artist
|
||||
self.kodi_db.link_song_artist(artistid, songid, index, artist_name)
|
||||
|
||||
|
|
Loading…
Reference in a new issue