mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Merge branch 'origin/dev'
This commit is contained in:
commit
c4b79bcd63
5 changed files with 11 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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"}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue