Merge remote-tracking branch 'MediaBrowser/master' into develop
This commit is contained in:
commit
dc44f1a879
5 changed files with 56 additions and 32 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<addon id="plugin.video.plexkodiconnect"
|
<addon id="plugin.video.plexkodiconnect"
|
||||||
name="PlexKodiConnect"
|
name="PlexKodiConnect"
|
||||||
version="1.1.80"
|
version="1.1.81"
|
||||||
provider-name="croneter">
|
provider-name="croneter">
|
||||||
<requires>
|
<requires>
|
||||||
<import addon="xbmc.python" version="2.1.0"/>
|
<import addon="xbmc.python" version="2.1.0"/>
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
version 1.1.81
|
||||||
|
- Fix missing deviceId
|
||||||
|
- Fix to newly added album/songs (if you experienced the bug, you will need to reset to fix it. Know that moving forward, it is corrected.)
|
||||||
|
|
||||||
version 1.1.80
|
version 1.1.80
|
||||||
- Add refresh for video nodes
|
- Add refresh for video nodes
|
||||||
- Fix for home videos (being unable to back out of the menu). Running refresh playlists/nodes will fix this.
|
- Fix for home videos (being unable to back out of the menu). Running refresh playlists/nodes will fix this.
|
||||||
|
|
|
@ -1933,12 +1933,23 @@ class Music(Items):
|
||||||
# No album Id associated to the song.
|
# No album Id associated to the song.
|
||||||
self.logMsg("Song itemid: %s has no albumId." % itemid, 1)
|
self.logMsg("Song itemid: %s has no albumId." % itemid, 1)
|
||||||
return
|
return
|
||||||
|
except TypeError:
|
||||||
|
# No album found. Let's create it
|
||||||
|
self.logMsg("Album database entry missing.", 1)
|
||||||
|
emby_albumId = item['AlbumId']
|
||||||
|
album = self.emby.getItem(emby_albumId)
|
||||||
|
self.add_updateAlbum(album)
|
||||||
|
emby_dbalbum = emby_db.getItem_byId(emby_albumId)
|
||||||
|
try:
|
||||||
|
albumid = emby_dbalbum[0]
|
||||||
|
self.logMsg("Found albumid: %s" % albumid, 1)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
# No album found, create a single's album
|
# No album found, create a single's album
|
||||||
|
self.logMsg("Failed to add album. Creating singles.", 1)
|
||||||
kodicursor.execute("select coalesce(max(idAlbum),0) from album")
|
kodicursor.execute("select coalesce(max(idAlbum),0) from album")
|
||||||
albumid = kodicursor.fetchone()[0] + 1
|
albumid = kodicursor.fetchone()[0] + 1
|
||||||
if kodiversion in (16, 17):
|
if kodiversion == 16:
|
||||||
# Kodi Jarvis, Krypton
|
# Kodi Jarvis
|
||||||
query = (
|
query = (
|
||||||
'''
|
'''
|
||||||
INSERT INTO album(idAlbum, strGenres, iYear, strReleaseType)
|
INSERT INTO album(idAlbum, strGenres, iYear, strReleaseType)
|
||||||
|
|
|
@ -258,7 +258,7 @@ class PlaybackUtils():
|
||||||
|
|
||||||
############### -- ADD MAIN ITEM ONLY FOR HOMESCREEN ###############
|
############### -- ADD MAIN ITEM ONLY FOR HOMESCREEN ###############
|
||||||
|
|
||||||
if homeScreen and not sizePlaylist:
|
if homeScreen and not seektime and not sizePlaylist:
|
||||||
# Extend our current playlist with the actual item to play
|
# Extend our current playlist with the actual item to play
|
||||||
# only if there's no playlist first
|
# only if there's no playlist first
|
||||||
self.logMsg("Adding main item to playlist.", 1)
|
self.logMsg("Adding main item to playlist.", 1)
|
||||||
|
|
|
@ -107,6 +107,15 @@ class PlayUtils():
|
||||||
except (IndexError, KeyError):
|
except (IndexError, KeyError):
|
||||||
playurl = item['Path']
|
playurl = item['Path']
|
||||||
|
|
||||||
|
if item.get('VideoType'):
|
||||||
|
# Specific format modification
|
||||||
|
type = item['VideoType']
|
||||||
|
|
||||||
|
if type == "Dvd":
|
||||||
|
playurl = "%s/VIDEO_TS/VIDEO_TS.IFO" % playurl
|
||||||
|
elif type == "BluRay":
|
||||||
|
playurl = "%s/BDMV/index.bdmv" % playurl
|
||||||
|
|
||||||
# Assign network protocol
|
# Assign network protocol
|
||||||
if playurl.startswith('\\\\'):
|
if playurl.startswith('\\\\'):
|
||||||
playurl = playurl.replace("\\\\", "smb://")
|
playurl = playurl.replace("\\\\", "smb://")
|
||||||
|
|
Loading…
Reference in a new issue