Code Monkey home page Code Monkey logo

Comments (3)

flopezre avatar flopezre commented on May 25, 2024

Dosen't work on Ubuntu Mate 20.04

from gydl.

mmayfield avatar mmayfield commented on May 25, 2024

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.

from gydl.

mmayfield avatar mmayfield commented on May 25, 2024

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.

from gydl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.