projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f7659d
)
[generic] Add comment for unescaping webpage contents
author
Sergey M․
<dstftw@gmail.com>
Fri, 14 Mar 2014 21:38:49 +0000
(
04:38
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 14 Mar 2014 21:38:49 +0000
(
04:38
+0700)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index a3de0ba60a8d8e33ebf89e8f2d768d338039b100..300485c7f81b2ee6cba9f03823592d31b2fc6f9a 100644
(file)
--- a/
youtube_dl/extractor/generic.py
+++ b/
youtube_dl/extractor/generic.py
@@
-291,6
+291,9
@@
class GenericIE(InfoExtractor):
except compat_xml_parse_error:
pass
+ # Sometimes embedded video player is hidden behind percent encoding
+ # (e.g. https://github.com/rg3/youtube-dl/issues/2448)
+ # Unescaping the whole page allows to handle those cases in a generic way
webpage = compat_urllib_parse.unquote(webpage)
# it's tempting to parse this further, but you would