Giter Site home page Giter Site logo

Folder rename about qobuz-dl HOT 9 OPEN

Fohio57 avatar Fohio57 commented on May 29, 2024
Folder rename

from qobuz-dl.

Comments (9)

marekromk avatar marekromk commented on May 29, 2024 1

I don't know if I now misunderstand you, but you don't need to actually put the word PATTERN in the command. It's the name of the variable. Your pattern is: "({year}) {artist} - {album}".

That means your command will be:
qobuz-dl dl "url" -ff "({year}) {artist} - {album}"

from qobuz-dl.

Fohio57 avatar Fohio57 commented on May 29, 2024

This is working perfectly. :)
Can this setting be changed permanently?

from qobuz-dl.

marekromk avatar marekromk commented on May 29, 2024

Yes you can. Not from just a command, you will have to change 1 line in one of the qobuz_dl files, but it's pretty simple.

  1. First you look up where qobuz_dl is stored, you do that by running this command in command prompt/terminal:
    python -c "import qobuz_dl as _; print(_.__path__[0])"

  2. It will return a path and you should open that in file explorer and you should see a file called:

downloader.py

  1. (This is for windows) Right-click the file and click "Edit with IDLE" (or your preferred code editor). In IDLE, go to the options at the top and enable "Show Line Numbers".

  2. Go to line 26 and it should be:

DEFAULT_FOLDER = "{artist} - {album} ({year}) [{bit_depth}B-{sampling_rate}kHz]"
  1. Then you can change {artist} - {album} ({year}) [{bit_depth}B-{sampling_rate}kHz] to any pattern you want.

This changes the default value permanently until the next update of qobuz_dl. You can still use -ff if you want to change the pattern for a single download.

from qobuz-dl.

0f4reeder avatar 0f4reeder commented on May 29, 2024

OK made changes to line 26 but no joy...am using the following:
cd C:\Users\alree\Desktop

qobuz-dl dl this_txt_file_has_urls.txt --albums-only -q 27

from qobuz-dl.

marekromk avatar marekromk commented on May 29, 2024

Hm, I'm not sure why this is, I don't really remember why or how this works again, but I might have the solution. You might want to follow the steps above but open the file:

core.py

And instead of going to line 26, go to line 51/52 and it should be:

folder_format="{artist} - {album} ({year}) [{bit_depth}B-"
        "{sampling_rate}kHz]",

When changing this, you don't need to divide the pattern in to 2 different string with an enter like they did here. Just change the pattern to whatever you want in quotation marks of course. Also don't forget to place the comma at the end. Like this for example:

folder_format="({year}) {artist} - {album}",

Changing this could probably be this solution, sorry, but I haven't tested this.

from qobuz-dl.

0f4reeder avatar 0f4reeder commented on May 29, 2024

Thanks but still no joy. My changes are:

downloader.py lines 26 & 27
DEFAULT_FOLDER = "{artist} - {album} {bit_depth}-{sampling_rate} [{year}]"
DEFAULT_TRACK = "{tracknumber} {tracktitle}"

and

core.py lines 53 & 53
folder_format="{artist} - {album} {bit_depth}-{sampling_rate} [{year}]",
track_format="{tracknumber} {tracktitle}",

question is this behavior somehow connected to the bulk download

qobuz-dl dl this_txt_file_has_urls.txt --albums-only -q 27

These also not changed from defalt:

qobuz-dl dl https://play.qobuz.com/album/eh5prmm06py0b -q 27
qobuz-dl dl https://play.qobuz.com/artist/60885 -q 27 --no-db

from qobuz-dl.

0f4reeder avatar 0f4reeder commented on May 29, 2024

Just in case it is some help the files changed are included and
an additional directory in site-packages

Desktop.zip

from qobuz-dl.

0f4reeder avatar 0f4reeder commented on May 29, 2024

Perhaps I missed something. Attached are the .py files I have edited.

Desktop.zip

from qobuz-dl.

0f4reeder avatar 0f4reeder commented on May 29, 2024

Since I load my downloads into text files I just add a -ff to the download.
Thankyou very much to all.

from qobuz-dl.

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.