138 Commits

Author SHA1 Message Date
Debakar Roy
1433962f95 No need of ffmpeg in case we are not downloading lectures 2023-06-20 13:19:48 +00:00
Debakar Roy
4aaed934a0 No need of shaka in case we are not downloading lectures 2023-06-20 13:13:09 +00:00
Puyodead1
e77bd8a959
bug fixes 2023-05-30 22:04:42 -04:00
Puyodead1
06e295d2b6
update manifest downloading 2023-05-30 18:08:47 -04:00
Puyodead1
340d4c6786
Merge branch 'dev/otf-processing' 2023-05-30 18:07:30 -04:00
Puyodead1
f7cf66931c
use temp local mpd files for extracting metadata 2023-05-30 17:49:23 -04:00
Puyodead1
b08f2569cb
update ffmpeg h265 command 2023-05-29 21:47:50 -04:00
Puyodead1
d4a4ea1b17
fix incorrect ffmpeg commands 2023-05-29 21:47:40 -04:00
Puyodead1
6570f7c45f
update ffmpeg h265 command 2023-05-24 13:47:33 -04:00
Puyodead1
1ee5d79664
fix incorrect ffmpeg commands 2023-05-24 13:18:47 -04:00
Puyodead1
4886098691
Refactor processing system 2023-05-23 14:36:25 -04:00
Puyodead1
f829d0fbce
h265: bug fixes and nvenc 2023-03-06 17:46:34 -05:00
Puyodead1
cb906d5eaf
add h265 support 2023-03-06 17:16:00 -05:00
Puyodead1
d8b5d3ca0e
fix typo 2023-01-25 15:29:48 -05:00
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