diff options
author | Sergey M․ <dstftw@gmail.com> | 2014-03-15 04:38:49 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2014-03-15 04:38:49 +0700 |
commit | 143907304908ee34bfcfe4914cda596d235291f8 (patch) | |
tree | 01aef474060678a504a0b31f60cb6ec9b02e41a2 | |
parent | 1f7659dbe90b28ecd5257aba872aba35515e6127 (diff) | |
download | youtube-dl-143907304908ee34bfcfe4914cda596d235291f8.tar.xz |
[generic] Add comment for unescaping webpage contents
-rw-r--r-- | youtube_dl/extractor/generic.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index a3de0ba60..300485c7f 100644 --- 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 |