Skip to content

Instantly share code, notes, and snippets.

@docblades
Created January 15, 2011 07:44
Show Gist options
  • Save docblades/780771 to your computer and use it in GitHub Desktop.
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.
#!/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