SilentSys / SLAM

Source Live Audio Mixer
MIT License
390 stars 128 forks source link

YouTube Import Issues #131

Open HDFlood opened 5 years ago

HDFlood commented 5 years ago

Having a bit of difficulties loading YouTube imports into SLAM. I've had this issue only recently. The consistent error seems to be YoutubeExtractor.YoutubeParseException. Examples:

--------------------18/11/2018 06:18:44 UTC--------------------
YoutubeExtractor.YoutubeParseException: Could not parse the Youtube page for URL http://youtube.com/watch?v=VnWEMCvlHck
This may be due to a change of the Youtube page structure.
Please report this bug at www.github.com/flagbug/YoutubeExtractor/issues ---> System.NotSupportedException: Result cannot be called on a failed Match.
   at System.Text.RegularExpressions.Match.Result(String replacement)
   at YoutubeExtractor.DownloadUrlResolver.GetHtml5PlayerVersion(JObject json)
   at YoutubeExtractor.DownloadUrlResolver.GetDownloadUrls(String videoUrl, Boolean decryptSignature)
   --- End of inner exception stack trace ---
   at YoutubeExtractor.DownloadUrlResolver.ThrowYoutubeParseException(Exception innerException, String videoUrl)
   at YoutubeExtractor.DownloadUrlResolver.GetDownloadUrls(String videoUrl, Boolean decryptSignature)
   at SLAM.YTImport.DownloadWorker_DoWork(Object sender, DoWorkEventArgs e)
--------------------18/11/2018 06:24:16 UTC--------------------
YoutubeExtractor.YoutubeParseException: Could not parse the Youtube page for URL http://youtube.com/watch?v=N8nGig78lNs
This may be due to a change of the Youtube page structure.
Please report this bug at www.github.com/flagbug/YoutubeExtractor/issues ---> System.NotSupportedException: Result cannot be called on a failed Match.
   at System.Text.RegularExpressions.Match.Result(String replacement)
   at YoutubeExtractor.DownloadUrlResolver.GetHtml5PlayerVersion(JObject json)
   at YoutubeExtractor.DownloadUrlResolver.GetDownloadUrls(String videoUrl, Boolean decryptSignature)
   --- End of inner exception stack trace ---
   at YoutubeExtractor.DownloadUrlResolver.ThrowYoutubeParseException(Exception innerException, String videoUrl)
   at YoutubeExtractor.DownloadUrlResolver.GetDownloadUrls(String videoUrl, Boolean decryptSignature)
   at SLAM.YTImport.DownloadWorker_DoWork(Object sender, DoWorkEventArgs e)

There hasn't been any resolutions on the main issue page, so I wanted to forward it here to see if anyone has the same issue and/or can help. Any redirects would also help. (I'm also expecting this to get closed cuz it tech doesn't belong here lol)

Korveen commented 5 years ago
mendelgusmao commented 5 years ago

YouTube is making it hard to download content with 3rd party apps and from time to time it's expected some of them will fail. NewPipe on Android is a good example of an app that needs to be updated when YouTube breaks the downloads.

The real issue is not within SLAM, but YoutubeExtractor, the lib SLAM uses to provide this feature.

a6d6061ed1 commented 5 years ago

YouTube is making it hard to download content with 3rd party apps and from time to time it's expected some of them will fail. NewPipe on Android is a good example of an app that needs to be updated when YouTube breaks the downloads.

The real issue is not within SLAM, but YoutubeExtractor, the lib SLAM uses to provide this feature.

this is easily fixed with changes to Decipherer.cs, just look in issues on YoutubeExtractor page and you'll find it