fixed issue with episode sync

This commit is contained in:
Marcel van der Veldt 2015-05-02 14:57:43 +02:00
parent 6e9983edba
commit a05bdeb844
3 changed files with 15 additions and 6 deletions

View file

@ -37,6 +37,7 @@ class ReadKodiDB():
cursor.execute("SELECT kodi_id, emby_id, checksum FROM emby WHERE media_type=?",("episode",))
else:
cursor.execute("SELECT kodi_id, emby_id, checksum FROM emby WHERE media_type=? AND parent_id=?",("episode", showid))
allepisodes = cursor.fetchall()
#this will return a list with tuples of all items returned from the database
return allepisodes