projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ddc289
)
[indavideo] Fix formats' height (Closes #9744)
author
Sergey M․
<dstftw@gmail.com>
Fri, 10 Jun 2016 22:13:05 +0000
(
05:13
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 10 Jun 2016 22:13:05 +0000
(
05:13
+0700)
youtube_dl/extractor/indavideo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/indavideo.py
b/youtube_dl/extractor/indavideo.py
index 9622f198aa6aaf99094a9b85c5a914d4f0c07d46..c6f080484a99f43614f104ead8023e8e57609cda 100644
(file)
--- a/
youtube_dl/extractor/indavideo.py
+++ b/
youtube_dl/extractor/indavideo.py
@@
-60,7
+60,8
@@
class IndavideoEmbedIE(InfoExtractor):
formats = [{
'url': video_url,
- 'height': self._search_regex(r'\.(\d{3,4})\.mp4$', video_url, 'height', default=None),
+ 'height': int_or_none(self._search_regex(
+ r'\.(\d{3,4})\.mp4(?:\?|$)', video_url, 'height', default=None)),
} for video_url in video_urls]
self._sort_formats(formats)