Comments (9)
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.
This is working perfectly. :)
Can this setting be changed permanently?
from qobuz-dl.
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.
-
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])"
-
It will return a path and you should open that in file explorer and you should see a file called:
downloader.py
-
(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".
-
Go to line 26 and it should be:
DEFAULT_FOLDER = "{artist} - {album} ({year}) [{bit_depth}B-{sampling_rate}kHz]"
- 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.
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.
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.
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.
Just in case it is some help the files changed are included and
an additional directory in site-packages
from qobuz-dl.
Perhaps I missed something. Attached are the .py files I have edited.
from qobuz-dl.
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)
- Unable to download songs
- AuthenticationError: Invalid credentials. HOT 3
- Download silently fails if filepath too long
- Newlines in links file crash the app
- InvalidLengthError
- Extra subdirectory created if slash in title HOT 1
- qobuz-dl no longer works HOT 6
- Colon in artist/album name prevents download
- Fun function not working HOT 1
- Wrong location of config.ini file when Python was installed via Microsoft Store
- On getting tokens stage,timeout problem
- Login not working HOT 2
- Download audio file without subfolders
- could artist use DISPLAY type into folder
- Error when trying to download The Beatles
- --embed-art not embedding cover art
- same song versions dont get downloaded HOT 1
- Download playlists into single folder HOT 6
- KeyError: 'albumartist' for config file. HOT 1
- redownload cover.jpg in better quality HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qobuz-dl.