Permalink
Browse files

Per the latest from TVDB, we should not use the `www` subdomain.

  • Loading branch information...
1 parent c476734 commit 425b6199fbfc151ac232077378bdeda7da006749 @thezoggy thezoggy committed Mar 14, 2013
@@ -132,7 +132,7 @@
<span class="quality Custom">Custom</span>
#end if
</td>
- <td align="center"><a href="http://www.thetvdb.com/?tab=series&amp;id=${cur_result["showid"]}" onclick="window.open(this.href, '_blank'); return false;" title="http://www.thetvdb.com/?tab=series&amp;id=${cur_result["showid"]}"><img alt="[info]" height="16" width="16" src="$sbRoot/images/thetvdb16.png" /></a></td>
+ <td align="center"><a href="http://thetvdb.com/?tab=series&amp;id=${cur_result["showid"]}" onclick="window.open(this.href, '_blank'); return false;" title="http://thetvdb.com/?tab=series&amp;id=${cur_result["showid"]}"><img alt="[info]" height="16" width="16" src="$sbRoot/images/thetvdb16.png" /></a></td>
<td align="center">
<a href="$sbRoot/home/searchEpisode?show=${cur_result["showid"]}&amp;season=$cur_result["season"]&amp;episode=$cur_result["episode"]" title="Manual Search" id="forceUpdate-${cur_result["showid"]}" class="forceUpdate epSearch"><img alt="[search]" height="16" width="16" src="$sbRoot/images/search16.png" id="forceUpdateImage-${cur_result["showid"]}" /></a>
</td>
@@ -228,7 +228,7 @@
#end if
</a></span>
<span class="tvshowTitleIcons">
- <a href="http://www.thetvdb.com/?tab=series&amp;id=${cur_result["showid"]}" onclick="window.open(this.href, '_blank'); return false;" title="http://www.thetvdb.com/?tab=series&amp;id=${cur_result["showid"]}"><img alt="[tvdb]" height="16" width="16" src="$sbRoot/images/thetvdb16.png" /></a>
+ <a href="http://thetvdb.com/?tab=series&amp;id=${cur_result["showid"]}" onclick="window.open(this.href, '_blank'); return false;" title="http://thetvdb.com/?tab=series&amp;id=${cur_result["showid"]}"><img alt="[tvdb]" height="16" width="16" src="$sbRoot/images/thetvdb16.png" /></a>
<span><a href="$sbRoot/home/searchEpisode?show=${cur_result["showid"]}&amp;season=$cur_result["season"]&amp;episode=$cur_result["episode"]" title="Manual Search" id="forceUpdate-${cur_result["showid"]}" class="epSearch forceUpdate"><img alt="[search]" height="16" width="16" src="$sbRoot/images/search16.png" id="forceUpdateImage-${cur_result["showid"]}" /></a></span>
</span>
</th>
@@ -229,7 +229,7 @@ def test_have_all_languages(self):
"""Check valid_languages is up-to-date (compared to languages.xml)
"""
et = self.t._getetsrc(
- "http://www.thetvdb.com/api/%s/languages.xml" % (
+ "http://thetvdb.com/api/%s/languages.xml" % (
self.t.config['apikey']
)
)
View
@@ -477,7 +477,7 @@ def __init__(self,
# The following url_ configs are based of the
# http://thetvdb.com/wiki/index.php/Programmers_API
- self.config['base_url'] = "http://www.thetvdb.com"
+ self.config['base_url'] = "http://thetvdb.com"
if self.config['search_all_languages']:
self.config['url_getSeries'] = u"%(base_url)s/api/GetSeries.php?seriesname=%%s&language=all" % self.config
View
@@ -424,7 +424,7 @@ def initialize(consoleLogging=True):
if CACHE_DIR:
TVDB_API_PARMS['cache'] = os.path.join(CACHE_DIR, 'tvdb')
- TVDB_BASE_URL = 'http://www.thetvdb.com/api/' + TVDB_API_KEY
+ TVDB_BASE_URL = 'http://thetvdb.com/api/' + TVDB_API_KEY
QUALITY_DEFAULT = check_setting_int(CFG, 'General', 'quality_default', SD)
STATUS_DEFAULT = check_setting_int(CFG, 'General', 'status_default', SKIPPED)
View
@@ -1469,7 +1469,7 @@ def __init__(self, args, kwargs):
def run(self):
""" search for show at tvdb with a given string and language """
if self.name and not self.tvdbid: # only name was given
- baseURL = "http://www.thetvdb.com/api/GetSeries.php?"
+ baseURL = "http://thetvdb.com/api/GetSeries.php?"
params = {"seriesname": str(self.name).encode('utf-8'), 'language': self.lang}
finalURL = baseURL + urllib.urlencode(params)
urlData = sickbeard.helpers.getURL(finalURL)
View
@@ -1546,7 +1546,7 @@ def searchTVDBForShowName(self, name, lang="en"):
if not lang or lang == 'null':
lang = "en"
- baseURL = "http://www.thetvdb.com/api/GetSeries.php?"
+ baseURL = "http://thetvdb.com/api/GetSeries.php?"
nameUTF8 = name.encode('utf-8')
logger.log(u"Trying to find Show on thetvdb.com with: " + nameUTF8.decode('utf-8'), logger.DEBUG)

0 comments on commit 425b619

Please sign in to comment.