Private GIT

Skip to content
Snippets Groups Projects
Commit 8c77e625 authored by supergonkas's avatar supergonkas
Browse files

Add RSS to BTDigg

parent 84abf22f
No related branches found
No related tags found
No related merge requests found
...@@ -97,12 +97,13 @@ class BTDiggCache(tvcache.TVCache): ...@@ -97,12 +97,13 @@ class BTDiggCache(tvcache.TVCache):
tvcache.TVCache.__init__(self, provider_obj) tvcache.TVCache.__init__(self, provider_obj)
# set this 0 to suppress log line, since we aren't updating it anyways # Cache results for a hour ,since BTDigg takes some time to crawl
self.minTime = 0 self.minTime = 60
def _getRSSData(self): def _getRSSData(self):
# no rss for btdigg, can't search with empty string
# newest results are always > 1 day since added anyways # Use x264 for RSS search since most results will use that codec and since the site doesnt have latest results search
return {'entries': {}} search_params = {'RSS': ['x264']}
return {'entries': self.provider._doSearch(search_params)}
provider = BTDIGGProvider() provider = BTDIGGProvider()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment