Commit 063bc6f0 authored by Georg Teufelberger's avatar Georg Teufelberger
Browse files

Perform connectivity/version check after reading links

parent 4d1b2f94
......@@ -617,18 +617,6 @@ args = parser.parse_args()
# Apply commands from input
apply_args(args)
# Connection check
if not args.skip_connection_check:
check_connection()
else:
print_information("Connection check skipped.", verbose_only=True)
# Update check
if not args.skip_update_check:
check_update()
else:
print_information("Update check skipped.", verbose_only=True)
# Store where to print video source
if print_src and args.print_src:
file_to_print_src_to = args.print_src
......@@ -650,6 +638,18 @@ if not links:
print_usage()
sys.exit()
# Connection check
if not args.skip_connection_check:
check_connection()
else:
print_information("Connection check skipped.", verbose_only=True)
# Update check
if not args.skip_update_check:
check_update()
else:
print_information("Update check skipped.", verbose_only=True)
# Run scraper for every link provided
for (link, user, password) in lecture_objects:
print_information("Currently selected: " + link, verbose_only=True)
......
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