Browse Source

[pornhub] Improve video quality regex

totalwebcasting
Sergey M․ 9 years ago
parent
commit
8f5639afcb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/pornhub.py

+ 1
- 1
youtube_dl/extractor/pornhub.py View File

@ -94,7 +94,7 @@ class PornHubIE(InfoExtractor):
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


Loading…
Cancel
Save