Skip to content

Commit

Permalink
Do not download video from Youtube if TED CDN succeedeed (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 authored Apr 16, 2024
1 parent e0ab3d5 commit 70549c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ted2zim/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ def download_video_files(self, video):
# Second try to download from youtube ID (used both when no video link AND
# when video link download failed - we experience sometimes 403 errors on
# video link, see #167)
if youtube_id:
if not downloaded and youtube_id:
try:
options = (
BestWebm if self.video_format == "webm" else BestMp4
Expand Down

0 comments on commit 70549c6

Please sign in to comment.