r0oth3x49 / udemy-dl

A cross-platform python based utility to download courses from udemy for personal offline use.
MIT License
4.83k stars 1.19k forks source link

Error downloading .txt assests #607

Closed 0-MegaMind-0 closed 3 years ago

0-MegaMind-0 commented 3 years ago

This bug was already reported here https://github.com/r0oth3x49/udemy-dl/issues/554 but looks like the OP failed to provide necessary info

Describe the bug udemy-dl fails to download assets with *.txt files

[i] : Downloading asset(s)
[i] : Downloading (082 0076b.txt)
[+] : Asset : '082 0076b.txt'  (download skipped)

[-] : Reason : int() argument must be a string, a bytes-like object or a number, not 'NoneType'

To Reproduce Steps to reproduce the behavior: python3 udemy-dl.py -k cookies.txt https://www.udemy.com/course/ANY_COURSE_WITH_TXT_FILES/learn/ --assets-only

Expected behavior download the text file like any other asset image

Python Environment (please complete the following information):

[2021-01-25 16:52:38,917][udemy-dl] WARNI Asset : '048 0052-update-E9-02.txt'
[2021-01-25 16:52:38,918][udemy-dl] ERROR Reason : int() argument must be a string, a bytes-like object or a number, not 'NoneType'
[2021-01-25 16:53:24,752][udemy-dl] WARNI Asset : '051 wp-security-addition.txt'
[2021-01-25 16:53:24,753][udemy-dl] ERROR Reason : int() argument must be a string, a bytes-like object or a number, not 'NoneType'
[2021-01-25 16:56:03,227][udemy-dl] WARNI Asset : '060 0061b.txt'
[2021-01-25 16:56:03,228][udemy-dl] ERROR Reason : int() argument must be a string, a bytes-like object or a number, not 'NoneType'
[2021-01-25 16:56:55,602][udemy-dl] WARNI Asset : '063 w3tc-cache-exclusions.txt'
[2021-01-25 16:56:55,603][udemy-dl] ERROR Reason : int() argument must be a string, a bytes-like object or a number, not 'NoneType'
[2021-01-25 16:57:34,147][udemy-dl] WARNI Asset : '065 Cloudflare.txt'
[2021-01-25 16:57:34,148][udemy-dl] ERROR Reason : int() argument must be a string, a bytes-like object or a number, not 'NoneType'
[2021-01-25 16:57:58,916][udemy-dl] WARNI Asset : '066 fastcgi-cache-exclusions.txt'
[2021-01-25 16:57:58,917][udemy-dl] ERROR Reason : int() argument must be a string, a bytes-like object or a number, not 'NoneType'
[2021-01-25 16:58:15,906][udemy-dl] WARNI Asset : '067 default-csp.txt'
[2021-01-25 16:58:15,907][udemy-dl] ERROR Reason : int() argument must be a string, a bytes-like object or a number, not 'NoneType'
[2021-01-25 17:00:30,144][udemy-dl] WARNI Asset : '082 0076b.txt'
[2021-01-25 17:00:30,145][udemy-dl] ERROR Reason : int() argument must be a string, a bytes-like object or a number, not 'NoneType'