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

"None" issue with getbestaudio method #299

Open
sincerestsentry opened this issue Sep 4, 2021 · 1 comment
Open

"None" issue with getbestaudio method #299

sincerestsentry opened this issue Sep 4, 2021 · 1 comment

Comments

@sincerestsentry
Copy link

Hi!

So I'm having this issue with the getbestaudio method: I attempted to use it in a variable as a list with other data:

yt_meta = [video.title, video.duration, video.viewcount, video.getbestaudio

and print it in a GUI window, but each time it printed "none".

I changed a few settings and ended up getting a reference to the function object, but that didn't really fix anything.

Then, I was curious, so I set up the download method as

video.getbestaudio().download(filepath='/Downloads/video.mp3', quiet=False)

and this resulted in the printing of the expected text that's listed in the documentation when download is used, however, beneath it, was "None" and notably, nothing downloaded. I tried this several times with several different videos, and it always resulted in "None" and no download.

It prints:

  5,523,355.0 Bytes [100.00%] received. Rate: [19019 KB/s].  ETA: [0 secs]    
None

And no download.

I presume this is a problem with my code I simply am not seeing, but I wanted to bring it to your attention simply to ensure it was indeed my problem.

@joshcohen-515
Copy link

my problem is similar. It does download to the current directory, but it doesn't return downloaded filename as None.

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