1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-06-29 12:41:20 +02:00

[pornhub] Improve video quality regex

This commit is contained in:
Sergey M․ 2015-08-03 19:37:48 +06:00
parent 03950c90f7
commit 8f5639afcb

View File

@ -94,7 +94,7 @@ def _real_extract(self, url):
format = path.split('/')[5].split('_')[:2]
format = "-".join(format)
m = re.match(r'^(?P<height>[0-9]+)P-(?P<tbr>[0-9]+)K$', format)
m = re.match(r'^(?P<height>[0-9]+)[pP]-(?P<tbr>[0-9]+)[kK]$', format)
if m is None:
height = None
tbr = None