Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YouTube failing (2019-01-18) #2675

Closed
wants to merge 1 commit into from
Closed

YouTube failing (2019-01-18) #2675

wants to merge 1 commit into from

Conversation

soimort
Copy link
Owner

@soimort soimort commented Jan 18, 2019

$ you-get -di 'https://www.youtube.com/watch?v=s9NIBZfVBW4'
[DEBUG] get_content: https://www.youtube.com/get_video_info?video_id=s9NIBZfVBW4
[DEBUG] get_content: https://www.youtube.com/watch?v=s9NIBZfVBW4
[DEBUG] get_content: https://www.youtube.com/yts/jsbin/player_ias-vfl-jbnrr/da_DK/base.js
you-get: version 0.4.1204, a tiny downloader that scrapes the web.
you-get: Namespace(URL=['https://www.youtube.com/watch?v=s9NIBZfVBW4'], auto_rename=False, cookies=None, debug=True, extractor_proxy=None, force=False, format=None, help=False, http_proxy=None, info=True, input_file=None, itag=None, json=False, no_caption=False, no_merge=False, no_proxy=False, output_dir='.', output_filename=None, password=None, player=None, playlist=False, socks_proxy=None, stream=None, timeout=600, url=False, version=False)
Traceback (most recent call last):
  File "/home/soimort/Projects/you-get/src/you_get/extractors/youtube.py", line 287, in prepare
    dashmpd = ytplayer_config['args']['dashmpd']
KeyError: 'dashmpd'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/soimort/Projects/you-get/you-get", line 11, in <module>
    you_get.main(repo_path=_filepath)
  File "/home/soimort/Projects/you-get/src/you_get/__main__.py", line 92, in main
    main(**kwargs)
  File "/home/soimort/Projects/you-get/src/you_get/common.py", line 1653, in main
    script_main(any_download, any_download_playlist, **kwargs)
  File "/home/soimort/Projects/you-get/src/you_get/common.py", line 1541, in script_main
    **extra
  File "/home/soimort/Projects/you-get/src/you_get/common.py", line 1276, in download_main
    download(url, **kwargs)
  File "/home/soimort/Projects/you-get/src/you_get/common.py", line 1644, in any_download
    m.download(url, **kwargs)
  File "/home/soimort/Projects/you-get/src/you_get/extractor.py", line 46, in download_by_url
    self.prepare(**kwargs)
  File "/home/soimort/Projects/you-get/src/you_get/extractors/youtube.py", line 366, in prepare
    sig = self.__class__.decipher(self.js, stream['s'])
  File "/home/soimort/Projects/you-get/src/you_get/extractors/youtube.py", line 62, in decipher
    f1def = match1(js, r'function %s(\(\w+\)\{[^\{]+\})' % re.escape(f1)) or \
  File "/usr/lib/python3.7/re.py", line 259, in escape
    pattern = str(pattern, 'latin1')
TypeError: decoding to str: need a bytes-like object, NoneType found

@soimort soimort closed this in 912804b Jan 18, 2019
@soimort soimort deleted the youtube-190118 branch January 18, 2019 11:11
@snootysteppes
Copy link

nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants