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.
periscope: add support for urls containing username instead of "w" #7503
Comments
|
Post an example URL. |
|
Moreover this patch breaks https://www.periscope.tv/w/STREAM-ID URLs. |
At the moment this kind of url is supported:
https://www.periscope.tv/w/STREAM-ID
But if you browse the periscope website, you sometimes find urls like:
https://www.periscope.tv/USERNAME/STREAM-ID
i.e. with the periscope user's username replacing the "w" character.
This second kind of url works fine in web browsers, but it's not accepted by youtube-dl:
ERROR: Unsupported URL
I'm attaching a patch for youtube_dl/extractor/periscope.py to allow this kind of urls.
The regexp I added requires at least two characters (that's the only requirement about periscope usernames I found on help.periscope.tv), and excludes the same characters forbidden in stream id's.
periscope.py.txt