Commit f8b20350 authored by Georg Teufelberger's avatar Georg Teufelberger
Browse files

Move handling print_src string to apply_args()

parent df483fff
......@@ -582,6 +582,7 @@ def apply_args(args):
global download_all
global video_quality
global print_src
global file_to_print_src_to
global directory_prefix
global history_file
......@@ -601,6 +602,9 @@ def apply_args(args):
# Check for printing flag
if hasattr(args, 'print_src'):
print_src=True
# Store where to print video source
if args.print_src:
file_to_print_src_to = args.print_src
# Check for destination flag
if args.destination:
......@@ -715,10 +719,6 @@ args = parser.parse_args()
# Apply commands from input
apply_args(args)
# Store where to print video source
if print_src and args.print_src:
file_to_print_src_to = args.print_src
# Collect lecture links
links = list()
if args.file:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment