Open ArvinCS opened 4 years ago
It seems like the library can't be used to extract video/audio/muxed links from the new youtube link anymore.
Is it broken for good by changes in the YouTube API itself? Or is there a chance to get the lib functioning again?
This library is not updated anymore and is pretty much dead (the SoundByte mobile apps used to be based on flutter, but are not based on Xamarin).
If someone wants to take over, feel free. There also may be other libraries that provided a similar function now, I'm not sure.
@DominicMaas thanks for the reply. I think the stale status of the lib should be indicated both in the repo and in the pub.dev portal.
Meanwhile, I've fixed it for now in my own fork; haven't tested the whole feature set, since I'm only interested in extracting audio, but if anyone needs it - feel free to try, you can easily test it by commenting out the version number in your pubspec.yaml
and specifying the git repo as a library source, like this:
dependencies:
youtube_extractor: #^1.0.4 #broken, use our own fork for now
git:
url: git://github.com/secretwpn/youtube-extractor.git
I'm not sure I want to take the ownership of this lib though, since I need a very specific subset of features and likely won't have motivation to keep the whole thing working in case YouTube keeps changing the response formats, I'll likely just fix the subset I need.
@secretwpn I've tried your version and it's working again! Thank you for your time and contribution. :D
@secretwpn Your repository is not working too... can't get any link for the latest youtube videos... I'm Getting Video [...] is not available and cannot be processed. Code: 0. Reason: null.
this error... Help Me...
YouTube got a new Option to enable Playback+on+other+websites+has+been+disabled+by+the+video+owner
. So if the owner has enabled the option we can't get any link...
I did a test with a video id... It doesn't work with this plugin but works in saveform.net. saveform.net can get the muxed and video link... I don't know how... Can someone explain to me how do they get the links?
@SimonPeter1909 something makes me think that if the owner has enabled this option, chances are he doesn't want us to have direct links to the streams, meaning that even if we try to replicate the magic saveform is doing, it will likely change again quite soon. So IMHO not really worth the effort.
@secretwpn thank you for your time and reply 😓😢
@DominicMaas thanks for the reply. I think the stale status of the lib should be indicated both in the repo and in the pub.dev portal.
Meanwhile, I've fixed it for now in my own fork; haven't tested the whole feature set, since I'm only interested in extracting audio, but if anyone needs it - feel free to try, you can easily test it by commenting out the version number in your
pubspec.yaml
and specifying the git repo as a library source, like this:dependencies: youtube_extractor: #^1.0.4 #broken, use our own fork for now git: url: git://github.com/secretwpn/youtube-extractor.git
I'm not sure I want to take the ownership of this lib though, since I need a very specific subset of features and likely won't have motivation to keep the whole thing working in case YouTube keeps changing the response formats, I'll likely just fix the subset I need.
This can encode the URL and give VideoStreamInfo and AudioStreamInfo but I am no able to extract the URL for corresponding media type to stream it using that URL. Both of them give Container.M4A
as array items but when I call method URL it will return null.
It will happen with a few youtube IDs like jA48cgCr_YY
.
@secretwpn I'm also getting null urls, can you fix it please?
@artsemionov my fork still seems to work. Read above how to try it. I'm not planning to maintain my fork though, nor to contribute to this repo. But if you really need the lib to work - just fork it and fix it on your own, it really isn't that complicated if you check the original YoutubeExplode for inspiration
it seems like you have to parse the url from a parameter called cipher now, even after I parsed it I'm getting an access denied 👎
I use the code same like in the README, this error only happening in some videos. Ex video: clU8c2fpk2s