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] Missing "title" field in extractor result #33028

Open
6 tasks done
scottnm opened this issue Jan 18, 2025 · 3 comments
Open
6 tasks done

[YouTube] Missing "title" field in extractor result #33028

scottnm opened this issue Jan 18, 2025 · 3 comments

Comments

@scottnm
Copy link

scottnm commented Jan 18, 2025

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2021.12.17
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

Downloading 'https://www.youtube.com/watch?v=BcQ-8R2fiZg' (audio)
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=BcQ-8R2fiZg', '--extract-audio', '--embed-thumbnail', '--add-metadata', '--audio-format', 'mp3', '--user-agent', 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.6533.103 Mobile Safari/537.36', '--verbose', '-o', '/home/remote-pi/mediaserver/lemon-store-mnt/yt_audio/%(title)s.%(ext)s']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python 3.11.5 (CPython armv7l 32bit) - Linux-5.10.103-v7l+-armv7l-with-glibc2.28 - OpenSSL 1.1.1n  15 Mar 2022 - glibc 2.28
[debug] exe versions: ffmpeg 4.1.11-0, ffprobe 4.1.11-0
[debug] Proxy map: {}
[youtube] BcQ-8R2fiZg: Downloading webpage
[youtube] BcQ-8R2fiZg: Downloading TVHTML5 API JSON
[debug] [youtube] Decrypted nsig uR-K5i2djcFfHvh8x => EEpmkcrxlxgPag
[debug] [youtube] Decrypted nsig vSC7HEn_I1T5StN-_ => N-y1zX38tIKFGA
[youtube] BcQ-8R2fiZg: Downloading API JSON
ERROR: Missing "title" field in extractor result; please report this issue on https://github.com/ytdl-org/youtube-dl/issues , using the appropriate issue template. Make sure you are using the latest version; see  https://github.com/ytdl-org/youtube-dl/#user-content-installation  on how to update. Be sure to call youtube-dl with the --verbose option and include the complete output.
Traceback (most recent call last):
  File "/home/remote-pi/dev/vtpp_venv/lib/python3.11/site-packages/youtube_dl/YoutubeDL.py", line 875, in wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/remote-pi/dev/vtpp_venv/lib/python3.11/site-packages/youtube_dl/YoutubeDL.py", line 982, in __extract_info
    return self.process_ie_result(ie_result, download, extra_info)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/remote-pi/dev/vtpp_venv/lib/python3.11/site-packages/youtube_dl/YoutubeDL.py", line 1016, in process_ie_result
    return self.process_video_result(ie_result, download=download)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/remote-pi/dev/vtpp_venv/lib/python3.11/site-packages/youtube_dl/YoutubeDL.py", line 1644, in process_video_result
    raise ExtractorError('Missing "title" field in extractor result')
youtube_dl.utils.ExtractorError: Missing "title" field in extractor result; please report this issue on https://github.com/ytdl-org/youtube-dl/issues , using the appropriate issue template. Make sure you are using the latest version; see  https://github.com/ytdl-org/youtube-dl/#user-content-installation  on how to update. Be sure to call youtube-dl with the --verbose option and include the complete output.

Description

I'm trying to download the following video from youtube
https://www.youtube.com/watch?v=BcQ-8R2fiZg

I'm on youtube-dl commit 55ad8a2

Downloads for this video fail in youtube-dl with the above ExtractorError that the 'title' is missing in the Extractor result

Sometimes the video downloads fail with a bot check.

@dirkf
Copy link
Contributor

dirkf commented Jan 18, 2025

Can't repro in latest nightly:

$ ./youtube-dl -vF 'BcQ-8R2fiZg'
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-vF', u'BcQ-8R2fiZg']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2025.01.16 [55ad8a24c] (single file build)
[debug] ** This version was built from the latest master code at https://github.com/ytdl-org/youtube-dl.
[debug] ** For support, visit the main site.
[debug] Python 2.7.15 (CPython i686 32bit) - Linux-6.1.0-27-686-pae-i686-with-debian-12.9 - OpenSSL 1.1.1a  20 Nov 2018 - glibc 2.1.3
[debug] exe versions: ffmpeg 5.1.6-0, ffprobe 5.1.6-0
[debug] Proxy map: {}
[youtube] BcQ-8R2fiZg: Downloading webpage
[youtube] BcQ-8R2fiZg: Downloading TVHTML5 API JSON
[debug] [youtube] Decrypted nsig kyIMgD0PouuuBKEdD => yL27ZJ90I_mUxA
[debug] [youtube] Decrypted nsig YcQKP655VyAPH_ecn => 3Ze7gwmEek6T7g
[info] Available formats for BcQ-8R2fiZg:
format code  extension  resolution note
249          webm       audio only audio_quality_low   51k , webm_dash container, opus  (48000Hz), 18.52MiB
249-drc      webm       audio only audio_quality_low   51k , webm_dash container, opus  (48000Hz), 18.60MiB
250          webm       audio only audio_quality_low   66k , webm_dash container, opus  (48000Hz), 23.96MiB
250-drc      webm       audio only audio_quality_low   66k , webm_dash container, opus  (48000Hz), 24.05MiB
251          webm       audio only audio_quality_medium  127k , webm_dash container, opus  (48000Hz), 45.99MiB
251-drc      webm       audio only audio_quality_medium  127k , webm_dash container, opus  (48000Hz), 46.13MiB
140          m4a        audio only audio_quality_medium  129k , m4a_dash container, mp4a.40.2 (44100Hz), 46.68MiB
140-drc      m4a        audio only audio_quality_medium  129k , m4a_dash container, mp4a.40.2 (44100Hz), 46.68MiB
160          mp4        256x144    144p   20k , mp4_dash container, avc1.4d400c, 30fps, video only, 7.57MiB
278          webm       256x144    144p   46k , webm_dash container, vp9, 30fps, video only, 16.79MiB
133          mp4        426x240    240p   41k , mp4_dash container, avc1.4d4015, 30fps, video only, 14.83MiB
242          webm       426x240    240p   55k , webm_dash container, vp9, 30fps, video only, 19.95MiB
134          mp4        640x360    360p   77k , mp4_dash container, avc1.4d401e, 30fps, video only, 28.12MiB
243          webm       640x360    360p  114k , webm_dash container, vp9, 30fps, video only, 41.42MiB
135          mp4        854x480    480p  122k , mp4_dash container, avc1.4d401f, 30fps, video only, 44.12MiB
244          webm       854x480    480p  168k , webm_dash container, vp9, 30fps, video only, 60.71MiB
136          mp4        1280x720   720p  194k , mp4_dash container, avc1.4d401f, 30fps, video only, 70.20MiB
247          webm       1280x720   720p  358k , webm_dash container, vp9, 30fps, video only, 129.22MiB
248          webm       1920x1080  1080p  701k , webm_dash container, vp9, 30fps, video only, 252.90MiB
137          mp4        1920x1080  1080p 1160k , mp4_dash container, avc1.640028, 30fps, video only, 418.48MiB
271          webm       2560x1440  1440p 3555k , webm_dash container, vp9, 30fps, video only, 1.25GiB
313          webm       3840x2160  2160p 11129k , webm_dash container, vp9, 30fps, video only, 3.92GiB
18           mp4        640x360    360p  347k , avc1.42001E, 30fps, mp4a.40.2 (44100Hz), 125.42MiB (best)
$

-f 137+140 --test succeeded, too. But I also had an outbreak of #32960, as you report.

@dirkf dirkf changed the title Missing "title" field in extractor result [YouTube] Missing "title" field in extractor result Jan 18, 2025
@scottnm
Copy link
Author

scottnm commented Jan 18, 2025

@dirkf I had installed youtube-dl from source using pip. i.e.

  • git clone the repo
  • pip install

And I verified the commit I'm on is the tip of master: 55ad8a2

Is there a difference between that and the "nightly". I notice your youtube-dl version is different than mine even though I'm installing from the tip of master. Maybe I've done something incorrectly.

@dirkf
Copy link
Contributor

dirkf commented Jan 18, 2025

If you install from the nightly repo you'll get a meaningful version number. I recommend that for now. My test was with the nightly POSIX single file build, but you should also be able to install with pip from the nightly repo. You can directly install from the repo without cloning it first, unless you actually want an editable clone. But if you have a cloned repo you can also run the program by cd-ing to the directory where the youtube_dl folder is and using python -m youtube_dl as the youtube-dl command, where python is how you invoke your Python.

Anyhow, the version that I showed is later than the one you had, which can be seen from the different debug text, where the 2025.01.16 version reports the API client and the earlier version doesn't.

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

No branches or pull requests

2 participants