Permalink
Browse files

Fix some small issues with the DailyTvTorrents provider

  • Loading branch information...
1 parent 50815a3 commit 489957753dcf87db032438b4ef3b499520a8518a @midgetspy committed Apr 29, 2012
Showing with 5 additions and 6 deletions.
  1. +1 −1 data/interfaces/default/config_providers.tmpl
  2. +4 −5 sickbeard/providers/dtt.py
@@ -55,7 +55,7 @@ var show_nzb_providers = #if $sickbeard.USE_NZBS then "true" else "false"#;
<a href="$curProvider.url" class="imgLink" target="_new"><img src="$sbRoot/images/providers/$curProvider.imageName()" alt="$curProvider.name" title="$curProvider.name" width="16" height="16" /></a>
$curProvider.name
#if not $curProvider.supportsBacklog then "*" else ""#
- #if $curProvider.name == "EZRSS" then "**" else ""#
+ #if $curProvider.name in ("EZRSS", "DailyTvTorrents") then "**" else ""#
</li>
#end for
</ul>
@@ -17,7 +17,6 @@
# along with Sick Beard. If not, see <http://www.gnu.org/licenses/>.
import urllib
-import re
from xml.dom.minidom import parseString
@@ -36,7 +35,7 @@ def __init__(self):
generic.TorrentProvider.__init__(self, "DailyTvTorrents")
self.supportsBacklog = True
self.cache = DTTCache(self)
- self.url = 'http://www.dailytvtorrents.org/rss/'
+ self.url = 'http://www.dailytvtorrents.org/'
def isEnabled(self):
return sickbeard.DTT
@@ -72,12 +71,12 @@ def _get_season_search_strings(self, show, season):
def _doSearch(self, params, show=None):
show_id = self._dtt_show_id(show.name)
- search_params = {"single": "yes"}
+ search_params = {"norar": "yes"}
if params:
search_params.update(params)
- searchURL = self.url + "show/" + show_id + "?" + urllib.urlencode(search_params)
+ searchURL = self.url + "rss/show/" + show_id + "?" + urllib.urlencode(search_params)
logger.log(u"Search string: " + searchURL, logger.DEBUG)
@@ -120,7 +119,7 @@ def __init__(self, provider):
def _getRSSData(self):
- url = self.provider.url + 'allshows?single=yes'
+ url = self.provider.url + 'rss/allshows?norar=yes'
logger.log(u"DTT cache update URL: "+ url, logger.DEBUG)
data = self.provider.getURL(url)
return data

0 comments on commit 4899577

Please sign in to comment.