Skip to content

Commit

Permalink
Merge branch 'dev' into 'master'
Browse files Browse the repository at this point in the history
Merge features from dev to master

See merge request tgeorg/vo-scraper!14
  • Loading branch information
gteufelberger committed Nov 27, 2022
2 parents da6a757 + e763e31 commit ca094a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.0
3.2.1
9 changes: 7 additions & 2 deletions vo-scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
gitlab_issue_page = gitlab_repo_page + "issues"
gitlab_changelog_page = gitlab_repo_page + "-/tags/v"
remote_version_link = gitlab_repo_page + "raw/master/VERSION"
program_version = '3.2.0'
program_version = '3.2.1'

# For web requests
user_agent = 'Mozilla/5.0'
Expand Down Expand Up @@ -549,7 +549,12 @@ def vo_scrapper(vo_link, video_quality, user, passw):
video_json_data = json.loads(r.text)

# Get video src url from json based on resolution
video_src_link, available_video_quality = get_video_src_link_for_resolution(video_json_data, video_quality)
try:
video_src_link, available_video_quality = get_video_src_link_for_resolution(video_json_data, video_quality)
except IndexError:
# Audio only lectures error out, skip them
print_information(f"Couldn't get download link for recording {item_nr}. Skipping", type='warning')
continue

lecture_title = vo_json_data['title']
episode_title = vo_json_data["episodes"][item_nr]["title"]
Expand Down

0 comments on commit ca094a9

Please sign in to comment.