From e94fa0073faf5ebf78faa414f6fe9154980ac26f Mon Sep 17 00:00:00 2001 From: MOHAMEDELDAKDOUKY <45735497+MOHAMEDELDAKDOUKY@users.noreply.github.com> Date: Sun, 7 Mar 2021 01:31:19 +0200 Subject: [PATCH] Fix duplicate video files with tag: "extended-description-mixed" Fix duplicate video files with tag: "extended-description-mixed" --- coursera/downloaders.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/coursera/downloaders.py b/coursera/downloaders.py index 44e0f25..020451c 100644 --- a/coursera/downloaders.py +++ b/coursera/downloaders.py @@ -321,6 +321,12 @@ class NativeDownloader(Downloader): logging.info('Resume downloading %s -> %s', url, filename) else: logging.info('Downloading %s -> %s', url, filename) + + edm_flag = 'extended-description-mixed' + if edm_flag in filename: + logging.warn('########## This file is an "extended-description-mixed" file, SKIPPED...') + return False + max_attempts = 3 attempts_count = 0