Skip to content

Commit

Permalink
fix the error that the mp4 video download link does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
csyezheng committed Nov 6, 2023
1 parent 32ec976 commit 92ebfb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion coursera_helper/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.12.1'
__version__ = '0.12.2'
2 changes: 1 addition & 1 deletion coursera_helper/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ class VideosV1(object):
@staticmethod
def from_json(data):

videos = [VideoV1(resolution, links['mp4VideoUrl'])
videos = [VideoV1(resolution, links.get('mp4VideoUrl'))
for resolution, links
in data['sources']['byResolution'].items()]
videos.sort(key=lambda video: video.resolution, reverse=True)
Expand Down

0 comments on commit 92ebfb9

Please sign in to comment.