174 Commits

Author SHA1 Message Date
Puyodead1
705de30925
Custom TLS Cipher 2023-01-25 15:17:27 -05:00
rickeymandraque
6f9919ab9d
Patch for Shaka-pakager files name
Patch for specials charset (Decryption returned a non-zero exit code.)
Add coding: utf-8 (line 1)
Add small list of characters (line 1028)
2022-08-18 12:16:53 +02:00
Hüzünlü Artemis [HuzunluArtemis]
8ad8faaca0
fix little logger thing 2022-07-11 22:00:11 +03:00
Puyodead1
91bf5c3209
format main.py 2022-07-10 08:42:05 -04:00
Puyodead1
2ce865a81b
fix some issues with subprocess logging 2022-07-10 08:41:03 -04:00
Puyodead1
f824487d78
fix: latin-1 codec error
untested if this fixes the issue or not, but it doesnt break anything either that i can tell
2022-03-25 21:21:18 -04:00
Puyodead1
07bfb9163b
fix: large courses not always working correctly
Seems like Udemy changed something and large courses can return a 504 error now
2022-03-15 20:38:42 -04:00
Puyodead1
885d920fba
attempt to fix ffmpeg hanging
+ Added nostdin argument to ffmpeg call
+ Set ffmpeg log level to errors only
+ Fixed some stuff not getting printed correctly
2022-03-15 19:52:13 -04:00
Puyodead1
e5d5285bf7
Ensure pipe is not None
fixes #105
2022-02-19 10:25:37 -05:00
Puyodead1
1bdc581c65 bug fix for logging 2022-01-16 17:24:07 -05:00
Puyodead1
4326c4743a Update main.py 2022-01-16 15:01:51 -05:00
Puyodead1
13bc68e905 Switch to Shaka-Packager + bug fixes
+ Replaced mp4decrypt with shaka-packager
+ Fix logger not correctly setting level from arguments
+ switched all os.system to subprocess.Popen
+ extra verbosity, external commands will now print their output to make debugging much MUCH easier
+ Fixed a problem with shaka-packager failing on files with a comma
2022-01-16 14:30:49 -05:00
Puyodead1
b97b12344b bug fix: subscription courses fail to download
+ Fixed cookies not getting loaded correctly leading to failures getting course information
2022-01-05 13:50:30 -05:00
Puyodead1
046344796c bug fixes
+ Fix debug logging not working
+ Fix captions not being downloaded
2022-01-05 12:47:20 -05:00
Puyodead1
e20699549e better debug exceptions 2022-01-01 15:29:17 -05:00
Puyodead1
52e3cd5b36 verbosity: print aria return code 2022-01-01 15:17:01 -05:00
Puyodead1
f8fab9fec9 fix: only download subtitles if there is a lecture also
+ Fix downloading subtitles for hls lectures that were skipped, only download subtitles if there is also a video lecture with it
2022-01-01 14:38:01 -05:00
Puyodead1
bb11640ed7 revert: fix: a few subprocess calls not piping output 2021-12-28 11:55:03 -05:00
Puyodead1
3176ac1191 feat: id as course name as an argument + readme update
+ adds the feature from the `id-as-course-name` branch to use the course id as the output directory name instead of the course name. this is useful to reduce the path length
+ Updated readme to reflect recent code changes
2021-12-28 11:14:35 -05:00
Puyodead1
f3b1c74f13 update: error handling for download function
+ raise exception if return code is non-0
+ version bump
2021-12-28 10:47:50 -05:00
Puyodead1
4bdbf68f58 update: more verbosity
+ Added more verbose logging during decryption and merging
+ Added error checking for decryption and merging
2021-12-28 10:42:41 -05:00
Puyodead1
72a354ed69 fix: a few subprocess calls not piping output 2021-12-28 10:19:03 -05:00
Puyodead1
bc9f6ecb1a fix: empty html files being generated 2021-12-21 18:21:14 -05:00
Puyodead1
68f5172e30 refactoring, and better logging
+ Add colored console logging
+ Add file logging
+ Refactor code
+ Add `--log-level` argument
+ Moved constant variables to separate file
+ Renamed some variables to be consistent throughout the program (`concurrent_connections` -> `concurrent_downloads`, `access_token` -> `bearer_token`)
+ If a keyfile isnt detected, we only warn the user instead of warning and exiting
+ External links are now written to their own shortcut file (they are still written to a single file still also) (#26)
+ Arguments `load-from-file` and `save-to-file` are no longer suppressed
+ Added Quiz URL
+ bump version
2021-12-20 14:41:34 -05:00
Puyodead1
8756bfc266 fix for ebooks/pdf not correctly downloading 2021-12-17 08:51:02 -05:00
perf3ct
d519d62c60
strip line endings from reading cookies 2021-12-02 22:55:43 -08:00
Puyodead1
b26c8f4b5b append lecture id to lecture assets 2021-11-28 00:53:54 -05:00
Puyodead1
60eee56233 fix: attachments having id prepended to start 2021-11-28 00:04:24 -05:00
Puyodead1
39041ff122 fix sanitization problems
+ Switched sanitization to pathvalidate package
- Removed sanitize.py file
2021-11-27 12:56:43 -05:00
Puyodead1
7c508a0762 some fixes for char decoding errors 2021-11-27 12:35:27 -05:00
Puyodead1
0719800145 fix: KID extraction error handling
+ extract_kid method will raise an error if the file does not exist
+ If KID extraction fails, the lecture will be skipped instead of causing the program to exit
2021-11-22 11:36:05 -05:00
Puyodead1
95b30841dc Add --disable-ipv6 option
+ Added option to disable ipv6 in aria2
+ Updated README to reflect argument changes
2021-11-19 16:17:01 -05:00
Puyodead1
97ca2cf401 updates to README and some minor code changes
+ Use proper exit code of 1 on errors
+ Added error handling for subscription based course info extraction failure
+ Slightly more verbose login failure message
+ Updates to README to improve clarification among other things
2021-11-11 23:14:51 -05:00
Puyodead1
8ba33270ce fix: cookies should be a string not a dict
Resolves #72
2021-11-10 09:12:11 -05:00
Puyodead1
eb3257f374 update to allow downloading if using udemy subscription
+ New requirements: `beautifulsoup4` and `lxml`
+ Added support for downloading courses included in subscription plans
+ Updated README to reflect changes
2021-11-09 20:41:25 -05:00
Puyodead1
f6918e497c Bug fixes
- Remove user agent to fix 403 errors when fetching courses
- Fix ``saved`` folder not being created if it doesnt exist
2021-10-16 13:04:24 -04:00
Puyodead1
2c2e0a5c23 print stacktrace on lecture download error 2021-10-13 08:43:01 -04:00
Puyodead1
69b44b9421 Merge branch 'master' of https://github.com/Puyodead1/udemy-downloader 2021-08-20 18:30:00 -04:00
Puyodead1
5fff05c0d0 add fix for 403 errors - by gyuriX 2021-08-20 18:29:39 -04:00
Puyodead1
1f33e28f5e
Remove git dependency 2021-08-20 16:27:55 -04:00
Puyodead1
a2748d98a4 Revert "Merge branch 'feat-mkv'"
This reverts commit e835ab6eb1819c72dc23bb4bbe16d1238405975e, reversing
changes made to 034fcc6b50a3d4a4c8f7506ea9bac58579f55a9a.
2021-08-10 00:01:07 -04:00
Puyodead1
bb60297821 Revert "Update main.py"
This reverts commit 480173a462648b0f9db71c4e1559aecddc654e00.
2021-08-10 00:01:05 -04:00
Puyodead1
9a51347dfa Revert "bug fix"
This reverts commit d47a3524dd410c04ba2bf06b561413e9b1d9ebd9.
2021-08-10 00:01:02 -04:00
Puyodead1
d47a3524dd bug fix
+ Fix another error
2021-08-09 10:27:52 -04:00
Puyodead1
480173a462 Update main.py
+ Fix #44
2021-08-09 02:56:14 -04:00
Puyodead1
e835ab6eb1 Merge branch 'feat-mkv' 2021-08-08 14:21:56 -04:00
Puyodead1
778d8e6f56 Bug fix
+ Fixes an error when trying to rename hls file
2021-08-08 14:15:07 -04:00
Puyodead1
9f1d7d9119 update the rest of the chapter titles 2021-08-08 14:06:21 -04:00
Puyodead1
ca40ff2b6d Updates
+ Update sanitization regex to clean exclaimation points
+ Update _sanitize method to use _clean method
+ Moved lecture file exist check to parse method, this will now also check if html files exist
+ Update chapter folder titles to use - for separating number from name
2021-08-08 14:03:24 -04:00
Puyodead1
6137e44d76 Update useragent 2021-08-08 13:43:06 -04:00