mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Change Wombles to use tv-dvd section.
This commit is contained in:
parent
f7d58568f8
commit
c4f4cae440
2 changed files with 11 additions and 9 deletions
|
@ -1,5 +1,6 @@
|
|||
### 0.x.x (2015-xx-xx xx:xx:xx UTC)
|
||||
|
||||
* Change Wombles to use tv-dvd section
|
||||
* Add requirements file for pip (port from midgetspy/sick-beard)
|
||||
* Remove unused libraries fuzzywuzzy and pysrt
|
||||
* Change webserve code to a logical layout and PEP8
|
||||
|
@ -102,7 +103,7 @@
|
|||
* Change SCC URLs to remove redirection overhead
|
||||
* Change TorrentBytes login parameter in line with site change
|
||||
* Change FreshOnTv login parameter and use secure URLs, add logging of Cloudflare blocking and prevent vacant cookie tracebacks
|
||||
* Change TPB webproxy list and add SSL variants
|
||||
* Change TPB webproxy list and add SSL variants
|
||||
* Add YTV network logo
|
||||
|
||||
|
||||
|
|
|
@ -15,14 +15,11 @@
|
|||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with SickGear. If not, see <http://www.gnu.org/licenses/>.
|
||||
import time
|
||||
|
||||
import sickbeard
|
||||
import generic
|
||||
|
||||
from sickbeard import logger
|
||||
from sickbeard import tvcache
|
||||
from sickbeard.exceptions import AuthException
|
||||
|
||||
|
||||
class WombleProvider(generic.NZBProvider):
|
||||
|
@ -53,8 +50,11 @@ class WombleCache(tvcache.TVCache):
|
|||
return
|
||||
|
||||
cl = []
|
||||
for url in [self.provider.url + 'rss/?sec=tv-x264&fr=false', self.provider.url + 'rss/?sec=tv-sd&fr=false', self.provider.url + 'rss/?sec=tv-hd&fr=false']:
|
||||
logger.log(u"Womble's Index cache update URL: " + url, logger.DEBUG)
|
||||
for url in [self.provider.url + 'rss/?sec=tv-x264&fr=false',
|
||||
self.provider.url + 'rss/?sec=tv-sd&fr=false',
|
||||
self.provider.url + 'rss/?sec=tv-dvd&fr=false',
|
||||
self.provider.url + 'rss/?sec=tv-hd&fr=false']:
|
||||
logger.log(u'Womble\'s Index cache update URL: ' + url, logger.DEBUG)
|
||||
data = self.getRSSFeed(url)
|
||||
|
||||
# As long as we got something from the provider we count it as an update
|
||||
|
@ -65,10 +65,10 @@ class WombleCache(tvcache.TVCache):
|
|||
for item in data.entries:
|
||||
title, url = self._get_title_and_url(item)
|
||||
ci = self._parseItem(title, url)
|
||||
if ci is not None:
|
||||
if None is not ci:
|
||||
cl.append(ci)
|
||||
|
||||
if len(cl) > 0:
|
||||
if 0 < len(cl):
|
||||
myDB = self._getDB()
|
||||
myDB.mass_action(cl)
|
||||
|
||||
|
@ -77,6 +77,7 @@ class WombleCache(tvcache.TVCache):
|
|||
self.setLastUpdate()
|
||||
|
||||
def _checkAuth(self, data):
|
||||
return data != 'Invalid Link'
|
||||
return 'Invalid Link' != data
|
||||
|
||||
|
||||
provider = WombleProvider()
|
||||
|
|
Loading…
Reference in a new issue