mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
Fix for air-by-date and sports shows
This commit is contained in:
parent
fb0339a274
commit
35f70c7924
11 changed files with 36 additions and 38 deletions
|
@ -82,17 +82,6 @@
|
|||
</label>
|
||||
</div>
|
||||
|
||||
<div class="field-pair">
|
||||
<label class="nocheck clearfix">
|
||||
<span class="component-title">Update Frequency</span>
|
||||
<input type="text" name="update_frequency" id="update_frequency" value="$sickbeard.UPDATE_FREQUENCY" size="5" />
|
||||
</label>
|
||||
<label class="nocheck clearfix">
|
||||
<span class="component-title"> </span>
|
||||
<span class="component-desc">Time in hours to check for software updates (eg. 12)</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="field-pair">
|
||||
<input type="checkbox" name="auto_update" id="auto_update" #if $sickbeard.AUTO_UPDATE then "checked=\"checked\"" else ""#/>
|
||||
<label class="clearfix" for="auto_update">
|
||||
|
@ -101,7 +90,7 @@
|
|||
</label>
|
||||
<label class="nocheck clearfix">
|
||||
<span class="component-title"> </span>
|
||||
<span class="component-desc">Automatic Updates run on startup and in the background every 12 hours.</span>
|
||||
<span class="component-desc">Automatic Updates run on startup and in the background on the interval specified above.</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@ from lib import requests
|
|||
from lib.requests import exceptions
|
||||
from bs4 import BeautifulSoup
|
||||
from lib.unidecode import unidecode
|
||||
from sickbeard.helpers import sanitizeSceneName
|
||||
|
||||
|
||||
class HDTorrentsProvider(generic.TorrentProvider):
|
||||
|
@ -132,9 +133,9 @@ class HDTorrentsProvider(generic.TorrentProvider):
|
|||
|
||||
if abd:
|
||||
for show_name in set(show_name_helpers.allPossibleShowNames(show)):
|
||||
ep_string = show_name_helpers.sanitizeSceneName(show_name) + ' ' + \
|
||||
str(episode) + '|' + \
|
||||
helpers.custom_strftime('%Y %b {S}', episode)
|
||||
ep_string = sanitizeSceneName(show_name) + ' ' + \
|
||||
str(episode).replace('-', '|') + '|' + \
|
||||
helpers.custom_strftime('%b', episode)
|
||||
search_string['Episode'].append(ep_string)
|
||||
else:
|
||||
for show_name in set(show_name_helpers.allPossibleShowNames(show)):
|
||||
|
|
|
@ -36,6 +36,7 @@ from lib import requests
|
|||
from lib.requests import exceptions
|
||||
from bs4 import BeautifulSoup
|
||||
from lib.unidecode import unidecode
|
||||
from sickbeard.helpers import sanitizeSceneName
|
||||
|
||||
|
||||
class IPTorrentsProvider(generic.TorrentProvider):
|
||||
|
@ -114,9 +115,9 @@ class IPTorrentsProvider(generic.TorrentProvider):
|
|||
|
||||
if abd:
|
||||
for show_name in set(show_name_helpers.allPossibleShowNames(show)):
|
||||
ep_string = show_name_helpers.sanitizeSceneName(show_name) + ' ' + \
|
||||
str(episode) + '|' + \
|
||||
helpers.custom_strftime('%Y %b {S}', episode)
|
||||
ep_string = sanitizeSceneName(show_name) + ' ' + \
|
||||
str(episode).replace('-', '|') + '|' + \
|
||||
helpers.custom_strftime('%b', episode)
|
||||
search_string['Episode'].append(ep_string)
|
||||
else:
|
||||
for show_name in set(show_name_helpers.allPossibleShowNames(show)):
|
||||
|
|
|
@ -193,10 +193,10 @@ class KATProvider(generic.TorrentProvider):
|
|||
|
||||
if abd:
|
||||
for show_name in set(allPossibleShowNames(show)):
|
||||
ep_string = sanitizeSceneName(show_name) + ' ' + \
|
||||
str(episode) + '|' + \
|
||||
helpers.custom_strftime('%Y %b {S}', episode)
|
||||
|
||||
ep_string = sanitizeSceneName(show_name) + ' ' + \
|
||||
str(episode).replace('-','|') + '|' + \
|
||||
helpers.custom_strftime('%b', episode)
|
||||
search_string['Episode'].append(ep_string)
|
||||
else:
|
||||
for show_name in set(allPossibleShowNames(show)):
|
||||
|
|
|
@ -38,6 +38,7 @@ from sickbeard import clients
|
|||
from lib import requests
|
||||
from lib.requests import exceptions
|
||||
from bs4 import BeautifulSoup
|
||||
from sickbeard.helpers import sanitizeSceneName
|
||||
|
||||
|
||||
class NextGenProvider(generic.TorrentProvider):
|
||||
|
@ -152,9 +153,9 @@ class NextGenProvider(generic.TorrentProvider):
|
|||
|
||||
if abd:
|
||||
for show_name in set(show_name_helpers.allPossibleShowNames(show)):
|
||||
ep_string = show_name_helpers.sanitizeSceneName(show_name) + ' ' + \
|
||||
str(episode) + '|' + \
|
||||
helpers.custom_strftime('%Y %b {S}', episode)
|
||||
ep_string = sanitizeSceneName(show_name) + ' ' + \
|
||||
str(episode).replace('-', '|') + '|' + \
|
||||
helpers.custom_strftime('%b', episode)
|
||||
search_string['Episode'].append(ep_string)
|
||||
else:
|
||||
for show_name in set(show_name_helpers.allPossibleShowNames(show)):
|
||||
|
|
|
@ -101,8 +101,8 @@ class PublicHDProvider(generic.TorrentProvider):
|
|||
if abd:
|
||||
for show_name in set(allPossibleShowNames(show)):
|
||||
ep_string = sanitizeSceneName(show_name) + ' ' + \
|
||||
str(episode) + '|' + \
|
||||
helpers.custom_strftime('%Y %b {S}', episode)
|
||||
str(episode).replace('-', '|') + '|' + \
|
||||
helpers.custom_strftime('%b', episode)
|
||||
search_string['Episode'].append(ep_string)
|
||||
else:
|
||||
for show_name in set(allPossibleShowNames(show)):
|
||||
|
|
|
@ -37,6 +37,7 @@ from lib import requests
|
|||
from lib.requests import exceptions
|
||||
from bs4 import BeautifulSoup
|
||||
from lib.unidecode import unidecode
|
||||
from sickbeard.helpers import sanitizeSceneName
|
||||
|
||||
|
||||
class SCCProvider(generic.TorrentProvider):
|
||||
|
@ -123,9 +124,9 @@ class SCCProvider(generic.TorrentProvider):
|
|||
|
||||
if abd:
|
||||
for show_name in set(show_name_helpers.allPossibleShowNames(show)):
|
||||
ep_string = show_name_helpers.sanitizeSceneName(show_name) + ' ' + \
|
||||
str(episode) + '|' + \
|
||||
helpers.custom_strftime('%Y %b {S}', episode)
|
||||
ep_string = sanitizeSceneName(show_name) + ' ' + \
|
||||
str(episode).replace('-', '|') + '|' + \
|
||||
helpers.custom_strftime('%b', episode)
|
||||
search_string['Episode'].append(ep_string)
|
||||
else:
|
||||
for show_name in set(show_name_helpers.allPossibleShowNames(show)):
|
||||
|
|
|
@ -34,6 +34,8 @@ from sickbeard.exceptions import ex
|
|||
from sickbeard import clients
|
||||
from lib import requests
|
||||
from lib.requests import exceptions
|
||||
from sickbeard.helpers import sanitizeSceneName
|
||||
|
||||
|
||||
class SpeedCDProvider(generic.TorrentProvider):
|
||||
|
||||
|
@ -118,7 +120,9 @@ class SpeedCDProvider(generic.TorrentProvider):
|
|||
|
||||
if abd:
|
||||
for show_name in set(show_name_helpers.allPossibleShowNames(show)):
|
||||
ep_string = show_name_helpers.sanitizeSceneName(show_name) +' '+ str(episode)
|
||||
ep_string = sanitizeSceneName(show_name) + ' ' + \
|
||||
str(episode).replace('-', '|') + '|' + \
|
||||
helpers.custom_strftime('%b', episode)
|
||||
search_string['Episode'].append(ep_string)
|
||||
else:
|
||||
for show_name in set(show_name_helpers.allPossibleShowNames(show)):
|
||||
|
|
|
@ -203,8 +203,8 @@ class ThePirateBayProvider(generic.TorrentProvider):
|
|||
if abd:
|
||||
for show_name in set(allPossibleShowNames(show)):
|
||||
ep_string = sanitizeSceneName(show_name) + ' ' + \
|
||||
str(episode) + '|' + \
|
||||
helpers.custom_strftime('%Y %b {S}', episode)
|
||||
str(episode).replace('-', '|') + '|' + \
|
||||
helpers.custom_strftime('%b', episode)
|
||||
search_string['Episode'].append(ep_string)
|
||||
else:
|
||||
for show_name in set(allPossibleShowNames(show)):
|
||||
|
|
|
@ -36,6 +36,7 @@ from lib import requests
|
|||
from lib.requests import exceptions
|
||||
from bs4 import BeautifulSoup
|
||||
from lib.unidecode import unidecode
|
||||
from sickbeard.helpers import sanitizeSceneName
|
||||
|
||||
|
||||
class TorrentDayProvider(generic.TorrentProvider):
|
||||
|
@ -136,9 +137,9 @@ class TorrentDayProvider(generic.TorrentProvider):
|
|||
|
||||
if abd:
|
||||
for show_name in set(show_name_helpers.allPossibleShowNames(show)):
|
||||
ep_string = show_name_helpers.sanitizeSceneName(show_name) + ' ' + \
|
||||
str(episode) + '|' + \
|
||||
helpers.custom_strftime('%Y %b {S}', episode)
|
||||
ep_string = sanitizeSceneName(show_name) + ' ' + \
|
||||
str(episode).replace('-', '|') + '|' + \
|
||||
helpers.custom_strftime('%b', episode)
|
||||
search_string['Episode'].append(ep_string)
|
||||
else:
|
||||
for show_name in set(show_name_helpers.allPossibleShowNames(show)):
|
||||
|
|
|
@ -118,9 +118,9 @@ class TorrentLeechProvider(generic.TorrentProvider):
|
|||
|
||||
if abd:
|
||||
for show_name in set(show_name_helpers.allPossibleShowNames(show)):
|
||||
ep_string = show_name_helpers.sanitizeSceneName(show_name) + ' ' + \
|
||||
str(episode) + '|' + \
|
||||
helpers.custom_strftime('%Y %b {S}', episode)
|
||||
ep_string = sanitizeSceneName(show_name) + ' ' + \
|
||||
str(episode).replace('-', '|') + '|' + \
|
||||
helpers.custom_strftime('%b', episode)
|
||||
search_string['Episode'].append(ep_string)
|
||||
else:
|
||||
for show_name in set(show_name_helpers.allPossibleShowNames(show)):
|
||||
|
|
Loading…
Reference in a new issue