Created
January 15, 2011 07:44
-
-
Save docblades/780771 to your computer and use it in GitHub Desktop.
Takes a file as input and executes 'flexget --seen' on each line. Useful if you're just starting to use flexget and don't want to redownload a large number of files you've already seen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import fileinput | |
import subprocess | |
for line in fileinput.input(): | |
print line | |
args = ['/usr/local/bin/flexget', '--seen', line] | |
subprocess.call(args) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment