소스 검색

[generic] Add comment for unescaping webpage contents

Sergey M․ 11 년 전
부모
커밋
1439073049
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      youtube_dl/extractor/generic.py

+ 3 - 0
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