Skip to content
This repository was archived by the owner on Oct 25, 2020. It is now read-only.
This repository was archived by the owner on Oct 25, 2020. It is now read-only.

Cant get videos and a wrong error #42

Description

@zivoy

this relates to #39 and #40
when I tried running $ yturl https://www.youtube.com/watch?v=iiChxN0T2kA

Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/pi/.local/lib/python3.7/site-packages/yturl.py", line 167, in <module>
    main()
  File "/home/pi/.local/lib/python3.7/site-packages/yturl.py", line 147, in main
    itag_to_url_map = itags_for_video(args.video_id)
  File "/home/pi/.local/lib/python3.7/site-packages/yturl.py", line 80, in itags_for_video
    streams = api_response['url_encoded_fmt_stream_map'].split(',')
KeyError: 'url_encoded_fmt_stream_map'

thats the same as the 2 mentioned issues but when I installed the latest dev branch I got

Traceback (most recent call last):
  File "/home/pi/.local/bin/yturl", line 10, in <module>
    sys.exit(main())
  File "/home/pi/.local/lib/python3.7/site-packages/yturl.py", line 152, in main
    itag_to_url_map = itags_for_video(args.video_id)
  File "/home/pi/.local/lib/python3.7/site-packages/yturl.py", line 81, in itags_for_video
    ) from None
NotImplementedError: Live and streaming videos are unsupported.

even though the video is clearly not a stream

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions