which = which[i:i+2] break else: continue class opt: pass class FakeParser: def error(self, msg): print(msg) import sys sys.exit(-1) options = opt() options.database = "watch.list" options.debug = True options.series = [name] options.save = False options.override = False options.fast = False options.season = which[0] options.episode = which[1]-1 options.download = True got = run(options, FakeParser()) if got == 1: trans.remove(k) continue break
options.database = "watch.list" options.debug = True options.series = [name] options.save = False options.override = False options.fast = False options.season = which[0] options.episode = which[1]-1 options.download = True got = run(options, FakeParser()) if got > 0: if sep in f[len(opts.check_dir):] and not samefile(dirname(f), opts.check_dir): remove_dir(dirname(f)) if remove_id: trans.remove(remove_id) break else: print(values) if nextTorrent: continue for f in goodfiles: data = popen("~/bin/renamer \"%s\""%f).readlines() if len(data) == 1: destname = basename("".join(data).split("=>")[1].strip()[1:-1]) else: destname = basename(f) assert len(data)==0,data dest = join(opts.dest_dir,destname)