Code Monkey home page Code Monkey logo

Comments (23)

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

Are you sure no errors were shown? I tried the exact same command and its working all right. I also have v0.1-r8. Did you try with other songs.??

from ytmdl.

mehalter avatar mehalter commented on May 19, 2024

Yup, I have also tried across distributions and multiple computers. Both Arch and Ubuntu, between 3 different computers. No error, not even an error code being sent back to the terminal. Exit status 0. Also I have tried multiple songs, with url, without, the only thing I can get it to do is help and version.

from ytmdl.

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

Can you please try the latest version?
First uninstall ytmdl by following
sudo pip uninstall ytmdl
Then install it again with the following
sudo pip install --no-cache-dir ytmdl --upgrade
And then setup config by -s flag and try.

from ytmdl.

mehalter avatar mehalter commented on May 19, 2024

Just did that, still nothing on all machines, its still v0.1-r8.

from ytmdl.

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

Please do the above steps again. Pypi takes a bit time. Please run the exact commands i gave you.

from ytmdl.

mehalter avatar mehalter commented on May 19, 2024

What is the version number I am looking for so I know I have gotten the correct version?

from ytmdl.

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

Can you check the version of installed by checking the output returned by
sudo pip install --no-cache-dir ytmdl --upgrade
If it shows version is post9 than its r9. Also, did you try ytmdl -s?

from ytmdl.

mehalter avatar mehalter commented on May 19, 2024

Ah it does say post9 on the install but ytmdl- -version returns v0.1-r8 still. Just wanted to make sure. Also Yes, I have run the commands exactly as you sent them to uninstall and reinstall, ran ytmdl -s, verified the config file was created, still absolutely no output or errors with and without specifying a url, on 2 laptops and a desktop, Ubuntu and Arch.

from ytmdl.

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

Clone the repo.
Then move to the dir and run following
python ytmdl.py "Fractures"
Please tell me if that works

from ytmdl.

mehalter avatar mehalter commented on May 19, 2024

It does not, same behavior

from ytmdl.

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

I guess it should be fixed now. I just uploaded post10 but --version will show r9, don't worry about that, check the version that pip shows. I am pretty sure its fixed now. Please uninstall and install using the command i gave you earlier

from ytmdl.

mehalter avatar mehalter commented on May 19, 2024

Ok nice, it gets to ==> Searching Youtube for Fractures, now i get

Traceback (most recent call last):
  File "/home/micah/.local/lib/python3.5/site-packages/ytmdl/yt.py", line 72, in search
    data = scan_video(url)
  File "/home/micah/.local/lib/python3.5/site-packages/ytmdl/yt.py", line 89, in scan_video
    data = requests.get(search_url).json()
  File "/usr/local/lib/python3.5/dist-packages/requests/models.py", line 892, in json
    return complexjson.loads(self.text, **kwargs)
  File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.5/json/decoder.py", line 357, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/micah/.local/bin/ytmdl", line 168, in <module>
    main()
  File "/home/micah/.local/bin/ytmdl", line 100, in main
    data, urls = yt.search(song_name)
  File "/home/micah/.local/lib/python3.5/site-packages/ytmdl/yt.py", line 75, in search
    video.append(data)
UnboundLocalError: local variable 'data' referenced before assignment

from ytmdl.

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

Sorry about that. I am currently looking into that. Did you try with other song names?

from ytmdl.

mehalter avatar mehalter commented on May 19, 2024

Yeah, I have tried multiple songs, haven't gotten anything to work.

from ytmdl.

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

Can you please try the following.
Clone the beta branch to a directory
Then run following
python ytmdl.py "Fractures"

from ytmdl.

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

If it prints error, please gimme the log

from ytmdl.

mehalter avatar mehalter commented on May 19, 2024

That one seems to work

from ytmdl.

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

Everything is working??

from ytmdl.

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

Can you please try the steps again an try?? I mean clone the beta again and try. ??

from ytmdl.

mehalter avatar mehalter commented on May 19, 2024

Ok, it works almost perfectly. Now if I specify something that isn't the first option for song data, the song gets put in the wrong folder. Correct information and correct meta data, but is put in the folder structure of the wrong album and artist

❯ python3 ytmdl.py --url "https://www.youtube.com/watch?v=yRMwlRmHfEI" "Brighter" 
 ==> Downloading Brighter in 320kbps
 ==> Downloaded!
 ==> Getting song data...
 ==> Data downloaded!
 ==> Setting data...
 ==> Choose One
 [1] Brighter by Hillsong Young & Free
 [2] Brighter by RÜFÜS DU SOL
 [3] Maybe by Brighter
 [4] Summer Becomes Winter by Brighter
 [5] Noah's Ark by Brighter
 [0] More results
 ==> Enter Choice [a valid choice] 2
 ==> ================================
  || YEAR: 2016-01-22T08:00:00Z
  || TITLE: Brighter
  || ARITST: RÜFÜS DU SOL
  || ALBUM: Bloom
  || GENRE: Electronic
  || TRACK NO: 1
  || ALBUM COVER ADDED
 ==> ================================
 ==> Moving to /home/micah/Music/My Music/Hillsong Young & Free/We Are Young & Free (Live)...
 ==> Done

from ytmdl.

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

That error should be fixed now.
Uninstall ytmdl and install it by the following commands
sudo pip uninstall ytmdl
sudo pip install --no-cache-dir ytmdl --upgrade

from ytmdl.

mehalter avatar mehalter commented on May 19, 2024

I am getting a hang on Downloading .... It doesn't matter if I pass in a URL or I select one from the list, it never downloads. Also this is version 0.2.post3

from ytmdl.

deepjyoti30 avatar deepjyoti30 commented on May 19, 2024

Weird. I made some changes in downloading, that might be the issue. Anyways move to the previous version vy uninstalling and then installing post2 by following
sudo pip install ytmdl==0.2.post2

from ytmdl.

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.