mirror of
https://cdm-project.com/Download-Tools/udemy-downloader.git
synced 2025-04-30 04:14:24 +02:00
fix: large courses not always working correctly
Seems like Udemy changed something and large courses can return a 504 error now
This commit is contained in:
parent
885d920fba
commit
07bfb9163b
2
main.py
2
main.py
@ -641,7 +641,7 @@ class Udemy:
|
||||
url = COURSE_URL.format(portal_name=portal_name, course_id=course_id)
|
||||
try:
|
||||
resp = self.session._get(url)
|
||||
if resp.status_code in [502, 503]:
|
||||
if resp.status_code in [502, 503, 504]:
|
||||
logger.info(
|
||||
"> The course content is large, using large content extractor..."
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user