Hexer10 / youtube_explode_dart

Dart library to interact with many Youtube APIs
https://pub.dev/packages/youtube_explode_dart
BSD 3-Clause "New" or "Revised" License
299 stars 122 forks source link

invalid youtube link #234

Open derdrache opened 1 year ago

derdrache commented 1 year ago

There is a type of Youtube video links that are considered invalid.

Example: https://www.youtube.com/live/GN4g3Ur0QUU?feature=share

Hexer10 commented 1 year ago

Do you know if this kind of url always redirects to a watch page? For example: https://www.youtube.com/live/<VideoId> -> https://www.youtube.com/watch?v=<VideoId>

Unfortunately I've not found this kind of urls anywhere else

derdrache commented 1 year ago

yes, the live url redirects to a normal watch?v= url as you specified in the example

These types of urls don't happen often because they are recorded livestreams and not many YouTubers do this. Here you can find many examples of this url type: https://www.youtube.com/@Blocktrainer/streams

itssidhere commented 1 year ago

Remove the ?feature=share and it will work.

https://www.youtube.com/live/GN4g3Ur0QUU

When you share a youtube short, youtube appends this to keep track of some internal analytics.