Skip to content

Fix empty download links by using lecture media API - #5

Open
basita512 wants to merge 1 commit into
maabiddevra:masterfrom
basita512:fix/udemy-lecture-download-api
Open

Fix empty download links by using lecture media API#5
basita512 wants to merge 1 commit into
maabiddevra:masterfrom
basita512:fix/udemy-lecture-download-api

Conversation

@basita512

Copy link
Copy Markdown

Summary

  • Switch from the obsolete /assets/{id}?stream_urls endpoint to the subscribed-courses lecture API and parse media_sources / download_urls / stream_urls.
  • Show available resolutions on mismatch and continue to the next lecture instead of hard-exiting after failed retries.
  • Add Go module files and rebuild the Windows binary.

Test plan

  • Authenticate with a valid Udemy access token
  • Select a subscribed course and lecture range
  • Confirm available resolutions are listed when an invalid one is entered
  • Confirm downloads succeed for a non-DRM lecture at a listed resolution
  • Confirm DRM-only lectures are skipped with a clear message instead of crashing

Switch from the obsolete assets stream_urls endpoint to subscribed-courses lecture media_sources, and stop hard-exiting after failed resolution retries.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant