swargaraj / udemy-py

🎓 Udemy downloader with DRM support.
https://t.me/+ixTitVxk4CIxNGVl
MIT License
19 stars 8 forks source link

Enhance Download Options: Chapter & Lecture Filtering and SRT Conversion #11

Closed swargaraj closed 4 days ago

swargaraj commented 4 days ago

This pull request introduces minor changes to enhance the downloading functionality of the script.

1. Chapter and Lecture Filtering:

We have added flags to filter chapters and lectures, as asked in this issue #4.

The following flags have been implemented: --start-chapter 5: Start the download from the specified chapter. --start-lecture 1: Start the download from the specified lecture. --end-chapter 5: End the download at the specified chapter. --end-lecture 7: End the download at the specified lecture.

For instance, you can think of --start-chapter as marking a starting point on a timeline of lectures and the --end-chapter flag acts like a destination point, defining where the download should stop.

The --start-lecture and --end-lecture flags further refine this by allowing you to specify exact lectures within those chapters.

2. SRT Conversion

We have also added support for converting captions to SRT format using the flag --srt, as asked in issue #10.