Skip to content

Instantly share code, notes, and snippets.

@Mitame
Created November 18, 2017 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mitame/f6aa9a3be37b60f55743c0b6795dbcb4 to your computer and use it in GitHub Desktop.
Save Mitame/f6aa9a3be37b60f55743c0b6795dbcb4 to your computer and use it in GitHub Desktop.
diff --git a/resources/lib/objects/tvshows.py b/resources/lib/objects/tvshows.py
index 4370725..05aea63 100644
--- a/resources/lib/objects/tvshows.py
+++ b/resources/lib/objects/tvshows.py
@@ -306,29 +305,29 @@ class TVShows(Items):
showid = None
log.debug("showid: %s not found", itemid)
- if self.emby_db.get_view_grouped_series(viewid) and imdb:
- # search kodi db for same provider id
- if self.kodi_version > 16:
- query = "SELECT idShow FROM tvshow_view WHERE uniqueid_value = ?"
- kodicursor.execute(query, (imdb,))
- else:
- query = "SELECT idShow FROM tvshow WHERE C12 = ?"
- kodicursor.execute(query, (tvdb,))
-
- try:
- temps_showid = kodicursor.fetchall()
- except TypeError: pass
- else:
- for temp_showid in temps_showid:
- emby_other = emby_db.getItem_byKodiId(temp_showid[0], "tvshow")
- if emby_other and viewid == emby_other[2]:
- log.info("Applying series pooling for: %s %s", itemid, title)
- emby_other_item = emby_db.getItem_byId(emby_other[0])
- showid = emby_other_item[0]
- pathid = self.kodi_db.add_path(path)
- emby_db.addReference(itemid, showid, "Series", "tvshow", pathid=pathid,
- checksum=checksum, mediafolderid=viewid)
- return
+ # if self.emby_db.get_view_grouped_series(viewid) and imdb:
+ # # search kodi db for same provider id
+ # if self.kodi_version > 16:
+ # query = "SELECT idShow FROM tvshow_view WHERE uniqueid_value = ?"
+ # kodicursor.execute(query, (imdb,))
+ # else:
+ # query = "SELECT idShow FROM tvshow WHERE C12 = ?"
+ # kodicursor.execute(query, (tvdb,))
+ #
+ # try:
+ # temps_showid = kodicursor.fetchall()
+ # except TypeError: pass
+ # else:
+ # for temp_showid in temps_showid:
+ # emby_other = emby_db.getItem_byKodiId(temp_showid[0], "tvshow")
+ # if emby_other and viewid == emby_other[2]:
+ # log.info("Applying series pooling for: %s %s", itemid, title)
+ # emby_other_item = emby_db.getItem_byId(emby_other[0])
+ # showid = emby_other_item[0]
+ # pathid = self.kodi_db.add_path(path)
+ # emby_db.addReference(itemid, showid, "Series", "tvshow", pathid=pathid,
+ # checksum=checksum, mediafolderid=viewid)
+ # return
showid = self.kodi_db.create_entry()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment