Closed davidgalarza closed 6 years ago
There appears to have been a YouTube API change, same issue with the original code: https://github.com/Tyrrrz/YoutubeExplode/issues/179
Looks like the folks at youtube-dl did this: https://github.com/rg3/youtube-dl/commit/2511eee215c2a66020ae927c86face826f48ba8e
I think I may have fixed it, what video did it break on? (so I can test to see if it now works).
This video: https://www.youtube.com/watch?v=Soa3gO7tL-c
Or this video: https://www.youtube.com/watch?v=YQHsXMglC9A
I've performed some tests with those videos (and a few others), everything seems to work. I'll publish a new version shortly for you to double check.
Edit: Published.
Yes, I've verified it, this works perfectly.
Awesome!
I change the regex in stream-info-parser line(16) to like that int.tryParse(RegExp(r'([a-zA-Z0-9_-]{11})').firstMatch(parseUrl()).group(1)); is workout
I want to know how to download with video and audio stream together
It does not work anymore, I'm receiving the following error:
`11-06 21:24:03.694 27171-27237/? E/flutter: [ERROR:flutter/shell/common/shell.cc(181)] Dart Error: Unhandled exception: NoSuchMethodError: The method 'group' was called on null. Receiver: null Tried calling: group()
0 PlayerSourceParser.parseCipherOperations (package:youtube_extractor/src/internal/parsers/player_source_parser.dart:22)
`