Merge remote-tracking branch 'refs/remotes/origin/master' into develop

This commit is contained in:
angelblue05 2016-07-31 15:30:36 -05:00
commit 7d2ce335e8
3 changed files with 39 additions and 18 deletions

View file

@ -7,15 +7,15 @@ The Emby addon for Kodi combines the best of Kodi - ultra smooth navigation, bea
View this short [Youtube video](https://youtu.be/IaecDPcXI3I?t=119) to give you a better idea of the general process. View this short [Youtube video](https://youtu.be/IaecDPcXI3I?t=119) to give you a better idea of the general process.
1. Install the Emby repository for Kodi, from the repo install the Emby addon. 1. Install the Emby for Kodi repository, from the repo install the Emby addon.
2. Within a few seconds you should be prompted for your server-details (or auto discovered). If not, try to restart Kodi 2. Within a few seconds you should be prompted for your server-details (or it may be auto discovered). If not, try to restart Kodi
3. Once you're succesfully authenticated to your Emby server, the initial sync will start. 3. Once you're succesfully authenticated with your Emby server, the initial sync will start.
4. The first sync of the Emby server to local Kodi database may take some time depending on your device and library size. 4. The first sync of the Emby server to the local Kodi database may take some time depending on your device and library size.
5. Once the full sync is done, you can browse your media in Kodi, syncs will be automatically done in the background. 5. Once the full sync is done, you can browse your media in Kodi, and syncs will be done automatically in the background.
### Our Wiki ### Our Wiki
If you need additional information on Emby for Kodi, check out our [wiki](https://github.com/MediaBrowser/plugin.video.emby/wiki). If you need additional information for Emby for Kodi, check out our [wiki](https://github.com/MediaBrowser/plugin.video.emby/wiki).
### What does Emby for Kodi do? ### What does Emby for Kodi do?
@ -26,11 +26,11 @@ The Emby addon synchronizes your media on your Emby server to the native Kodi da
- If you require help, post to our [Emby-Kodi forums](http://emby.media/community/index.php?/forum/99-kodi/) for faster replies. - If you require help, post to our [Emby-Kodi forums](http://emby.media/community/index.php?/forum/99-kodi/) for faster replies.
- To achieve direct play, you will need to ensure your Emby library paths point to network paths (e.g: "\\\\server\Media\Movies"). See the [Emby wiki](https://github.com/MediaBrowser/Wiki/wiki/Path%20Substitution) for additional information. - To achieve direct play, you will need to ensure your Emby library paths point to network paths (e.g: "\\\\server\Media\Movies"). See the [Emby wiki](https://github.com/MediaBrowser/Wiki/wiki/Path%20Substitution) for additional information.
- **The addon is not (and will not be) compatible with the MySQL database replacement in Kodi.** In fact, Emby takes over the point of having a MySQL database because it acts as a "man in the middle" for your entire media library. - **The addon is not (and will not be) compatible with the MySQL database replacement in Kodi.** In fact, Emby takes over the point of having a MySQL database because it acts as a "man in the middle" for your entire media library.
- Emby for Kodi is currently not compatible with Kodi's Video Extras addon unless native playback mode is used. **Deactivate Video Extras if content start randomly playing.** - Emby for Kodi is not currently compatible with Kodi's Video Extras addon unless native playback mode is used. **Deactivate Video Extras if content start randomly playing.**
### What is currently supported? ### What is currently supported?
Emby for Kodi is constantly being worked on. The following features are currently provided: Emby for Kodi is under constant development. The following features are currently provided:
- Library types available: - Library types available:
+ Movies + Movies

View file

@ -2158,14 +2158,35 @@ class Music(Items):
artist_edb = emby_db.getItem_byId(artist_eid) artist_edb = emby_db.getItem_byId(artist_eid)
artistid = artist_edb[0] artistid = artist_edb[0]
finally: finally:
query = ( if self.kodiversion >= 17:
''' # Kodi Krypton
INSERT OR REPLACE INTO song_artist(idArtist, idSong, iOrder, strArtist) query = (
'''
INSERT OR REPLACE INTO song_artist(idArtist, idSong, idRole, iOrder, strArtist)
VALUES (?, ?, ?, ?) VALUES (?, ?, ?, ?, ?)
''' '''
) )
kodicursor.execute(query, (artistid, songid, index, artist_name)) kodicursor.execute(query, (artistid, songid, 1, index, artist_name))
# May want to look into only doing this once?
query = (
'''
INSERT OR REPLACE INTO role(idRole, strRole)
VALUES (?, ?)
'''
)
kodicursor.execute(query, (1, 'Composer'))
else:
query = (
'''
INSERT OR REPLACE INTO song_artist(idArtist, idSong, iOrder, strArtist)
VALUES (?, ?, ?, ?)
'''
)
kodicursor.execute(query, (artistid, songid, index, artist_name))
# Verify if album artist exists # Verify if album artist exists
album_artists = [] album_artists = []

View file

@ -79,7 +79,7 @@ def getKodiVideoDBPath():
"14": 90, # Helix "14": 90, # Helix
"15": 93, # Isengard "15": 93, # Isengard
"16": 99, # Jarvis "16": 99, # Jarvis
"17": 104 # Krypton "17": 106 # Krypton
} }
dbPath = xbmc.translatePath( dbPath = xbmc.translatePath(