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

Can not download video #32

Open
DasJott opened this issue Mar 19, 2020 · 3 comments
Open

Can not download video #32

DasJott opened this issue Mar 19, 2020 · 3 comments

Comments

@DasJott
Copy link

DasJott commented Mar 19, 2020

I don't know if it is the gui or the underlaying tool.
I entered a valid URL and wanted to download a yt video. But it won't download. Instead I am asked to check the URL - which is perfectly correct.

Terminal says: ERROR: requested format not available which sounds a little different already. But still, even if I change the format to the correct resolution it won't work. I don't know, which file format I have to expect.

image

@flopezre
Copy link

flopezre commented Dec 6, 2020

Dosen't work on Ubuntu Mate 20.04

@mmayfield
Copy link

For me this happened because it looks like python was expecting an integer or different length value for quality(it was passing on the first number of the height, 7 for 720, 1 for 1080, 3 for 360). I'm not super versed so in python so I'm not exactly sure why but I solved this by changing
def get_quality(self):
return self.quality.get_active_text()[0]
to
def get_quality(self):
return self.quality.get_active_text()

in gydl.py and after this change I was able to download videos.

@mmayfield
Copy link

I don't know if the maintainer will take pull requests as it looks like it may not be active. I have forked it and made some changes. Even properly parsing the resolution settings doesn't completely fix video downloads. It appears the filtering method used in youtube-dl doesn't properly detect if the format/resolution choices are available and it's luck of the draw whether it is detected or not. Instead I implemented a file availability query, grep for the requested settings and pass them with the id instead of the filters. It seems to work pretty well this way but fails for playlists and when the options aren't available. Due to this I set the options to "best" for playlists and when the selected options aren't available. I'm open to further changes and will be monitoring the fork.

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

3 participants