mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Added in TVRage scene exceptions list that we maintain
This commit is contained in:
parent
3f4a6e3e0c
commit
0822d7a39b
@ -66,17 +66,23 @@ def retrieve_exceptions():
|
||||
"""
|
||||
|
||||
exception_dict = {}
|
||||
url_data = ''
|
||||
|
||||
# exceptions are stored on github pages
|
||||
url = 'http://midgetspy.github.com/sb_tvdb_scene_exceptions/exceptions.txt'
|
||||
url_dict = {
|
||||
'TheTVDB': 'http://midgetspy.github.com/sb_tvdb_scene_exceptions/exceptions.txt',
|
||||
'TVRage': 'http://raw.github.com/echel0n/sb_tvrage_scene_exceptions/master/exceptions.txt'
|
||||
}
|
||||
|
||||
for indexer, url in url_dict.iteritems():
|
||||
logger.log(u"Checking for scene exception updates for " + indexer)
|
||||
|
||||
logger.log(u"Check scene exceptions update")
|
||||
url_data = helpers.getURL(url)
|
||||
|
||||
if url_data is None:
|
||||
# When urlData is None, trouble connecting to github
|
||||
logger.log(u"Check scene exceptions update failed. Unable to get URL: " + url, logger.ERROR)
|
||||
return
|
||||
continue
|
||||
|
||||
else:
|
||||
# each exception is on one line with the format indexer_id: 'show name 1', 'show name 2', etc
|
||||
|
Loading…
Reference in New Issue
Block a user