Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[generic] fragment indicators confuse redirect logic #12501
Comments
|
It appears that 54b960f gives another instance of this problem, since it compares URLs with string equality + if new_url != url:
+ self.report_following_redirect(new_url)and generally speaking URLs can have different #fragments and thus not compare as equal, but not merit a redirect. I haven't actually verified this problem in the commit from yesterday, I'm just concluding that based on inspection. But the original problem I raised in this issue is certainly still present, as shown by |
Presence of a fragment indicator (
#) at the end of a URL causes youtube-dl to think it is a different URL, and the redirect logic inextractor/generic.pygets confused:That'd be this check at 1695, I guess:
And just for the record, no
Location:header here:(Apparently this doesn't have much to do with why this video doesn't download, but that'd be another issue.)