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

Unable to extract info #25518

Closed
Lemon-Hacking opened this issue Jun 3, 2020 · 5 comments
Closed

Unable to extract info #25518

Lemon-Hacking opened this issue Jun 3, 2020 · 5 comments
Labels

Comments

@Lemon-Hacking
Copy link

@Lemon-Hacking Lemon-Hacking commented Jun 3, 2020

Using the code :

import youtube_dl

ytdl_format_options = {
    'format': 'bestaudio/best',
    'outtmpl': '%(extractor)s-%(id)s-%(title)s.%(ext)s',
    'restrictfilenames': True,
    'noplaylist': True,
    'nocheckcertificate': True,
    'ignoreerrors': False,
    'logtostderr': False,
    'no_warnings': True,
    'default_search': 'auto',
    'source_address': '0.0.0.0'
}

ydl = youtube_dl.YoutubeDL(ytdl_format_options)
video = ydl.extract_info('NCS Jarico Island', download=False)
title = video.get('title')
print(f"\n\nVideo title : {title}")

Gives title as None :

[youtube:search] query "NCS Jarico Island": Downloading page 1
[download] Downloading playlist: NCS Jarico Island
[youtube:search] playlist NCS Jarico Island: Collected 1 video ids (downloading 1 of them)
[download] Downloading video 1 of 1
[youtube] opYAyx1Humc: Downloading webpage
[youtube] Downloading just video opYAyx1Humc because of --no-playlist
[download] Finished downloading playlist: NCS Jarico Island


Video title : None
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 3, 2020

So what?

@dstftw dstftw closed this Jun 3, 2020
@Lemon-Hacking
Copy link
Author

@Lemon-Hacking Lemon-Hacking commented Jun 3, 2020

So what?

🤦 Well, I think that isn't supposed to be None.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 3, 2020

Playlist title is totally fine to be None.

@dstftw dstftw added the invalid label Jun 3, 2020
@Lemon-Hacking
Copy link
Author

@Lemon-Hacking Lemon-Hacking commented Jun 3, 2020

Playlist title is totally fine to be None.

'noplaylist': True

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 3, 2020

Bother to read what does noplaylist even mean.

@ytdl-org ytdl-org locked and limited conversation to collaborators Jun 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.