114 Commits

Author SHA1 Message Date
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
Puyodead1
5ec615e4e3 Updates and bug fixes
+ Fixed mis-named variable
+ Removed unused ``working_dir`` code
+ Fixed issue with course info feature not working
+ Added versioning system to help with debugging
+ Updated requirements file
2021-08-08 13:40:23 -04:00
Puyodead1
1f72e875f5 Update main.py 2021-08-04 14:56:48 -04:00
Puyodead1
c8945b8091 Update README
+ added note about bearer token from env being deprecated
+ updated example commands to reflect code changes
2021-08-02 20:53:07 -04:00
Puyodead1
845c0bde58 restructure method parameters
+ made all variables global so we don't have to keep passing them to methods
+ renamed ``concurrent_downloads`` to ``concurrent_connections``
+ added ``use_mkv`` option
+ fixed bug where keyfile was required to just use help command
+ updated ``README.md`` to reflect code changes
2021-08-02 20:45:48 -04:00
Puyodead1
6d4d93c9d8 fix: issue with hls downloads being deleted during cleanup process
Encrypted HLS Files were being downloaded with the same name as the final merged lecture causing it to be removed during the cleanup process. To fix this, ``.encrypted`` is now appended to the encrypted files.
2021-07-30 12:35:52 -04:00
Puyodead1
400316e1b3 Fix non-drm lectures not having proper file extension 2021-07-22 12:04:31 -04:00
Puyodead1
171f7b7719 bug fixes 2021-06-28 14:50:56 -04:00
Puyodead1
59b6419ade change directory to chapter directory instead of using full path 2021-06-28 14:28:16 -04:00
Puyodead1
6d0d3edf78 add better error handling to handle_segments method to catch failed downloads, the program will no longer exit 2021-06-27 21:51:42 -04:00
Puyodead1
4c0f4d2225 Merge branch 'master' of https://github.com/Puyodead1/udemy-downloader 2021-06-18 16:54:44 -04:00