diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-08-03 19:37:48 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-08-03 19:37:48 +0600 |
commit | 8f5639afcbb967f276fb8b35a24559cdcc3b6d32 (patch) | |
tree | 0f63261a7e4ffb54d0cd82146f3340f4f371b7c5 /youtube_dl/extractor/pornhub.py | |
parent | 03950c90f778293e65e2b79f2cf8ea3274695460 (diff) |
[pornhub] Improve video quality regex
Diffstat (limited to 'youtube_dl/extractor/pornhub.py')
-rw-r--r-- | youtube_dl/extractor/pornhub.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/pornhub.py b/youtube_dl/extractor/pornhub.py index fec493046..7b0cdc41a 100644 --- a/youtube_dl/extractor/pornhub.py +++ b/youtube_dl/extractor/pornhub.py @@ -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 |