path = OS.path.join(dir, fn)
if not fn.endswith(".iso"): continue
m = me._R_ISO_PRE.match(fn)
- if not m: continue
+ if not m:
+ #print(";; `%s' ignored" % path, file = SYS.stderr)
+ continue
i = filter(m.group("si"), int)
stitle = m.group("st")
for eprange in m.group("eps").split(", "):
mm = me._R_ISO_EP.match(eprange)
if mm is None: bad = True; continue
+ if not any:
+ #print(";; `%s'" % path, file = SYS.stderr)
+ any = True
i = filter(mm.group("si"), int)
if i is not None:
try: ts = seasons[i]
end = filter(mm.group("ej"), int, start)
for k in range(start, end + 1):
ts.set_episode_disc(k, disc)
- any = True
- if bad and any:
- raise ExpectedError("bad ep list in `%s'", fn)
+ #print(";;\tepisode %d.%d" % (ts.i, k), file = SYS.stderr)
+ if not any: pass #print(";; `%s' ignored" % path, file = SYS.stderr)
+ elif bad: raise ExpectedError("bad ep list in `%s'", fn)
me.seasons = seasons
class AudioDisc (Source):
- #PREFIX = "file://"
+ PREFIX = "file://"
TITLEP = CHAPTERP = False
class AudioEpisode (Source):
- #PREFIX = "file://"
+ PREFIX = "file://"
TITLEP = CHAPTERP = False
def __init__(me, fn, i, *args, **kw):
super().__init__(fn, *args, **kw)