Fix fix
This commit is contained in:
@@ -1217,7 +1217,12 @@ def Scan(path, files, media, dirs, language=None, root=None, **kwargs): #get cal
|
||||
|
||||
if rx in ANIDB_RX[:-1]: ### AniDB Specials ################################################################
|
||||
original_season = season
|
||||
season = 0 # offset = 100 for OP, 150 for ED, etc... #Log.info(u"ep: '%s', rx: '%s', file: '%s'" % (ep, rx, file))
|
||||
# Use mapped TVDB season for OP/ED offset calculation when using AniDB2/3/4
|
||||
# This ensures OPs/EDs offset by 100*actual_season (S1: 101, S2: 201, S3: 301, etc.)
|
||||
mapped_season = Dict(mappingList, 'defaulttvdbseason')
|
||||
if mapped_season and str(mapped_season).isdigit() and int(mapped_season) > 0:
|
||||
original_season = int(mapped_season)
|
||||
season = 0 # offset = 100 for OP, 150 for ED, etc... #Log.info(u"ep: '%s', rx: '%s', file: '%s'" % (ep, rx, file))
|
||||
# AniDB xml load (ALWAYS GZIPPED)
|
||||
if source.startswith('anidb') and id and anidb_xml is None and rx in ANIDB_RX[1:3]: #2nd and 3rd rx
|
||||
anidb_str = read_cached_url(ANIDB_HTTP_API_URL+id, foldername=os.path.join('AniDB','xml'), filename="%s.xml" % id)
|
||||
|
||||
Reference in New Issue
Block a user