0 629 B

123456789101112131415
  1. #youtube_dl/extractor/youtube.py: Signature decryption invoking js/swf sig parsers
  2. #ln=
  3. if player_type == 'js':
  4. code = self._download_webpage(
  5. player_url, video_id,
  6. note=download_note,
  7. errnote='Download of %s failed' % player_url)
  8. res = self._parse_sig_js(code)
  9. elif player_type == 'swf':
  10. urlh = self._request_webpage(
  11. player_url, video_id,
  12. note=download_note,
  13. errnote='Download of %s failed' % player_url)
  14. code = urlh.read()
  15. res = self._parse_sig_swf(code)