+ if args.mirror:
+ for video in parse_videolist():
+ video['title'] = video['title'].replace('/','_')
+ print video['title']+'.mkv',
+ if os.path.exists(video['title']+'.mkv'):
+ print "Skipping"
+ continue
+ print("Downloading...")
+ ret = main(video['url'], video['title'])
+
+ print Popen(["avconv","-i",video['title']+'.ts',"-vcodec","copy","-acodec","copy", video['title']+'.mkv'], stdout=PIPE).communicate()[0]
+ try:
+ os.unlink(video['title']+'.ts')
+ except:
+ import pdb;pdb.set_trace()