+ parser = argparse.ArgumentParser()
+ parser.add_argument("-r", "--rss", help="Download all files in rss",
+ action="store_true")
+ parser.add_argument("url")
+ args = parser.parse_args()
+ if args.rss:
+ d = feedparser.parse(args.url)
+ for e in d.entries:
+ print("Downloading: %s"%e.title)
+ filename = main(e.link)
+ print Popen(["avconv","-i",filename,"-vcodec","copy","-acodec","copy", filename+'.mkv'], stdout=PIPE).communicate()[0]
+ #print(e.description)
+ else:
+ filename = main(e.link)
+ print("Saved to {}".format(filename))