Skip to content

Commit

Permalink
updated to version 0.12.3; check if the url exists when downloading r…
Browse files Browse the repository at this point in the history
…esources
  • Loading branch information
csyezheng committed Dec 9, 2023
1 parent 92ebfb9 commit 2275566
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Find your coursera CAUTH:

4. find and click CAUTH > Copy value CAUTH

**Firefox **:
**Firefox**:

1. Open the browser and login to https://www.coursera.org/

Expand All @@ -231,7 +231,7 @@ If you are from China and you're having problems downloading videos, adding

in the hosts file (`/etc/hosts` or `C:\Windows\System32\drivers\etc`)

Refresh DNS with this command in the terminal.
Flush DNS with this command in the terminal.

```
ipconfig /flushdns
Expand Down
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.2'
__version__ = '0.12.3'
4 changes: 4 additions & 0 deletions coursera_helper/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ def _handle_resource(self, url, fmt, lecture_filename, callback, last_update):
resume = self._args.resume
skip_download = self._args.skip_download

if not url:
logging.info('Downloading: %s failed, url does not exists', lecture_filename)
return last_update

# Decide whether we need to download it
if overwrite or not os.path.exists(lecture_filename) or resume:
if not skip_download:
Expand Down

0 comments on commit 2275566

Please sign in to comment.