diff --git a/autoProcessTV/mediaToSickbeard.py b/autoProcessTV/mediaToSickbeard.py index d57e5f1a..e1ef6979 100644 --- a/autoProcessTV/mediaToSickbeard.py +++ b/autoProcessTV/mediaToSickbeard.py @@ -7,6 +7,8 @@ import ConfigParser import logging #Needed for importing logging & requests module +from sickbeard.exceptions import ex + sickbeardPath = os.path.split(os.path.split(sys.argv[0])[0])[0] sys.path.append(os.path.join( sickbeardPath, 'lib')) sys.path.append(sickbeardPath) diff --git a/sickbeard/databases/cache_db.py b/sickbeard/databases/cache_db.py index b0938d9b..a952d7fb 100644 --- a/sickbeard/databases/cache_db.py +++ b/sickbeard/databases/cache_db.py @@ -68,8 +68,10 @@ class AddXemNumbering(AddNetworkTimezones): def execute(self): self.connection.action( - "CREATE TABLE xem_numbering (indexer TEXT, indexer_id INTEGER, season INTEGER, episode INTEGER, scene_season INTEGER, scene_episode INTEGER, PRIMARY KEY (indexer, indexer_id, season, episode))") + "CREATE TABLE xem_numbering (indexer TEXT, indexer_id INTEGER PRIMARY KEY, season INTEGER, episode INTEGER, scene_season INTEGER, scene_episode INTEGER)") + self.connection.action( + "CREATE UNIQUE INDEX idx_xem_numbering_indexer_id ON xem_numbering (indexer_id);") class AddXemRefresh(AddXemNumbering): def test(self): @@ -79,6 +81,9 @@ class AddXemRefresh(AddXemNumbering): self.connection.action( "CREATE TABLE xem_refresh (indexer TEXT, indexer_id INTEGER PRIMARY KEY, last_refreshed INTEGER)") + self.connection.action( + "CREATE INDEX idx_xem_refresh_indexer_id ON xem_refresh (indexer_id);") + class ConvertSceneExceptionsToIndexerID(AddXemRefresh): def test(self): diff --git a/sickbeard/providers/dtt.py b/sickbeard/providers/dtt.py index fe7c003d..4e4d1fe1 100644 --- a/sickbeard/providers/dtt.py +++ b/sickbeard/providers/dtt.py @@ -69,7 +69,7 @@ class DTTProvider(generic.TorrentProvider): def _get_episode_search_strings(self, episode): return self._get_season_search_strings(episode.show, episode.season) - def _doSearch(self, search_params, show=None): + def _doSearch(self, search_params, show=None, age=None): # show_id = self._dtt_show_id(show.name) diff --git a/sickbeard/providers/ezrss.py b/sickbeard/providers/ezrss.py index fe6a2815..02ce1f63 100644 --- a/sickbeard/providers/ezrss.py +++ b/sickbeard/providers/ezrss.py @@ -101,7 +101,7 @@ class EZRSSProvider(generic.TorrentProvider): return [params] - def _doSearch(self, search_params, show=None): + def _doSearch(self, search_params, show=None, age=None): params = {"mode": "rss"} diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 06d24fb7..cb7d46b4 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -82,8 +82,7 @@ from sickbeard import browser class PageTemplate(Template): def __init__(self, *args, **KWs): - KWs['file'] = os.path.join(sickbeard.PROG_DIR, "gui/" + sickbeard.GUI_NAME + "/interfaces/default/", - KWs['file']) + KWs['file'] = os.path.join(sickbeard.PROG_DIR, "gui/" + sickbeard.GUI_NAME + "/interfaces/default/",KWs['file']) super(PageTemplate, self).__init__(*args, **KWs) self.sbRoot = sickbeard.WEB_ROOT self.sbHttpPort = sickbeard.WEB_PORT