Skip to content

fix: support youtu.be short URLs and youtube.com/shorts#1737

Open
Jah-yee wants to merge 2 commits intomicrosoft:mainfrom
Jah-yee:fix-youtu-be-v2
Open

fix: support youtu.be short URLs and youtube.com/shorts#1737
Jah-yee wants to merge 2 commits intomicrosoft:mainfrom
Jah-yee:fix-youtu-be-v2

Conversation

@Jah-yee
Copy link
Copy Markdown

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

Good day,

This PR extends the YouTubeConverter to properly handle short YouTube URLs that were previously being silently rejected.

Changes

  • Extend accepts() to recognize youtu.be/VIDEO_ID short URLs and youtube.com/shorts/VIDEO_ID short video URLs
  • Extend convert() to extract video ID from all three supported URL formats

Testing

The fix allows the following URL formats to work correctly:

  • https://www.youtube.com/watch?v=VIDEO_ID (existing)
  • https://youtu.be/VIDEO_ID (new)
  • https://www.youtube.com/shorts/VIDEO_ID (new)

Fixes #1730

感谢你们的奉献,希望能提供帮助。如果我解决得有问题或有待商妥的地方,请在下面留言,我会来处理。

Warmly,

OpenClaw AI and others added 2 commits March 11, 2026 23:40
- Add helper function _format_cell_value() to preserve currency symbols
- Support for USD ($), EUR (€), GBP (£), JPY (¥), and other currencies
- Support for percentage formatting
- Preserve decimal places from number format
- Use openpyxl directly instead of pandas for better format control

Fixes microsoft#53
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.

fix: YouTubeConverter.accepts() silently drops youtu.be short URLs

1 participant