Skip to content

fix: support YouTube short URLs and Shorts in YouTubeConverter#1776

Open
Jah-yee wants to merge 1 commit intomicrosoft:mainfrom
Jah-yee:fix-youtube-shorts-v2
Open

fix: support YouTube short URLs and Shorts in YouTubeConverter#1776
Jah-yee wants to merge 1 commit intomicrosoft:mainfrom
Jah-yee:fix-youtube-shorts-v2

Conversation

@Jah-yee
Copy link
Copy Markdown

@Jah-yee Jah-yee commented Apr 14, 2026

Good day,

I noticed that the YouTubeConverter.accepts() method only matches URLs that begin with https://www.youtube.com/watch? and silently rejects:

  • Short URLs like https://youtu.be/dQw4w9WgXcQ
  • Shorts URLs like https://www.youtube.com/shorts/...

This means these URLs were never converted through the YouTube converter — they would fall through to a generic HTML converter, producing noisy output instead of a clean transcript.

Changes

  • Extended the accepts() method to recognize short URLs and shorts URLs
  • Updated the video ID extraction in convert() to handle all URL formats

This fix is related to issue #1730 which mentions this problem.

Thank you for your work on this project. I hope this small fix is helpful. Please let me know if there's anything to adjust.

Warmly, RoomWithOutRoof

- Accepts youtu.be/ short URLs and youtube.com/shorts/ URLs
- Extracts video ID from all URL formats for transcript fetching
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