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.
The change of regex in db8ee7e does not properly account for the case when the segment template contains a format specifier.
For example, the 'Number' block in this segment template is not picked up by the regex, and is left untouched:
'$RepresentationID$/$RepresentationID$_$Number%05d$.m4v'The regex on this line should be changed into
r'\$(Number|Bandwidth)%(\d+)d\$, to account for the 'd'.https://github.com/rg3/youtube-dl/blob/2016.04.06/youtube_dl/extractor/common.py#L1519