Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Could not parse the Youtube page for URL #119

Closed
tariqalkhassa opened this issue Jun 13, 2015 · 12 comments
Closed

Could not parse the Youtube page for URL #119

tariqalkhassa opened this issue Jun 13, 2015 · 12 comments

Comments

@tariqalkhassa
Copy link

Could not parse the Youtube page for this URL:

https://www.youtube.com/watch?v=tQmEd_UeeIk

@robertripoll
Copy link

Try parsing the URL with 'http' instead of 'https':

http://www.youtube.com/watch?v=tQmEd_UeeIk

@tariqalkhassa
Copy link
Author

didn't work..

@htnha
Copy link

htnha commented Jun 22, 2015

I have the same problem :(

@htnha
Copy link

htnha commented Jun 22, 2015

More examples:

@htnha
Copy link

htnha commented Jun 22, 2015

@htnha
Copy link

htnha commented Jun 22, 2015

https://www.youtube.com/watch?v=FndmvPkI1Ms

It doesn't work for all VEVO videos

@tariqalkhassa
Copy link
Author

your links are working for me
anyway I changed the method GetAdaptiveStreamMap at DownloadUrlResolver class to be like:
private static string GetAdaptiveStreamMap(JObject json)
{
JToken streamMap;
try
{
streamMap = json["args"]["adaptive_fmts"];
return streamMap.ToString();
}
catch
{
streamMap = json["args"]["url_encoded_fmt_stream_map"];
return streamMap.ToString();
}
}

and changed the third line of the method ExtractDownloadUrls at the same class to be like
splitByUrls = splitByUrls.Concat(adaptiveFmtSplitByUrls).Distinct().ToArray();

and now it's working for all videos for me :)

@sundbarg
Copy link

I made the changes but this (http://www.youtube.com/watch?v=o1U5IY8kynI) link isn't working for me.

EDIT: my bad, I made a bug of my own. Fixed it and it works well now.

@skkeeper
Copy link
Contributor

skkeeper commented Jul 9, 2015

The fix worked for me too.

@tariqalkhassa Are you going to submit a pull request? I would but I don't want to take credit for it.

@tariqalkhassa
Copy link
Author

@skkeeper I didn't know how to submit it :S
I made a fork and I have this link now
https://github.com/tariqalkhassa/YoutubeExtractor/blob/master/YoutubeExtractor/YoutubeExtractor/DownloadUrlResolver.cs

@e4stwood
Copy link

His code provides an error of - illegal characters in path. Definitely not an error on my part. Checked, rechecked and rechecked

@flagbug
Copy link
Owner

flagbug commented Nov 17, 2015

Should be fixed with #151

@flagbug flagbug closed this as completed Nov 17, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants