#57 Unexpected token  in JSON at position 0

Closed
opened 2 years ago by Mrakobes666 · 15 comments

I created a text file and inserted the code, but...

I created a text file and inserted the code, but...
sayem314 commented 2 years ago
Owner

What kind of text file? Can you elaborate, please?

What kind of text file? Can you elaborate, please?
Mrakobes666 commented 2 years ago
Poster

d-fi.config.json

{ "concurrency": 4, "saveLayout": {

"track": "Music/{ALB_TITLE}/{SNG_TITLE}",
"album": "Music/{ALB_TITLE}/{SNG_TITLE}",
"artist": "Music/{ALB_TITLE}/{SNG_TITLE}",
"playlist": "Playlist/{TITLE}/{SNG_TITLE}"

}, "playlist": {

"resolveFullPath": false

}, "trackNumber": true, "fallbackTrack": true, "fallbackQuality": true, "coverSize": {

"128": 500,
"320": 500,
"flac": 1800

}, "cookies": {

"arl": "f1cb8c1a7196cf281b86d---5934d0e47db7f9b9781b2ef6e73bda8f26852cd4015669216ecb4c92ec3a164de526f6412bf8232589b02789b3c7"

} }

d-fi.config.json { "concurrency": 4, "saveLayout": { "track": "Music/{ALB_TITLE}/{SNG_TITLE}", "album": "Music/{ALB_TITLE}/{SNG_TITLE}", "artist": "Music/{ALB_TITLE}/{SNG_TITLE}", "playlist": "Playlist/{TITLE}/{SNG_TITLE}" }, "playlist": { "resolveFullPath": false }, "trackNumber": true, "fallbackTrack": true, "fallbackQuality": true, "coverSize": { "128": 500, "320": 500, "flac": 1800 }, "cookies": { "arl": "f1cb8c1a7196cf281b86d---5934d0e47db7f9b9781b2ef6e73bda8f26852cd4015669216ecb4c92ec3a164de526f6412bf8232589b02789b3c7" } }
sayem314 commented 2 years ago
Owner

Something is wrong with json file. Can you upload the file instead of copy-paste?

Something is wrong with json file. Can you upload the file instead of copy-paste?
Mrakobes666 commented 2 years ago
Poster

It is impossible to attach a file, maybe it's the encoding? UTF-8

It is impossible to attach a file, maybe it's the encoding? UTF-8
Mrakobes666 commented 2 years ago
Poster
https://dropmefiles.com/k2xD3
sayem314 commented 2 years ago
Owner

Not sure what's wrong but something is wrong with encoding maybe. Can you re-create file wth command d-fi -a xxxxxx_my_arl < this will create config which you should be able to edit.

Not sure what's wrong but something is wrong with encoding maybe. Can you re-create file wth command `d-fi -a xxxxxx_my_arl` < this will create config which you should be able to edit.
Mrakobes666 commented 2 years ago
Poster

God, everything turned out, apparently you really wrote under unix, and I created the file in the wrong encoding, since the files are identical in content, only in encoding differences

God, everything turned out, apparently you really wrote under unix, and I created the file in the wrong encoding, since the files are identical in content, only in encoding differences
Mrakobes666 commented 2 years ago
Poster

Please help me configure the configuration file

  1. Download only the flac
  2. The path to save
  3. Folder name: year - album
  4. The file name is the: track number. title
  5. Save all possible tags
  6. Save the cover of the maximum size to a folder named folder
  7. Root folder from: "artist"
  8. Sewn cover 500px

if this requires a bat file, please help with its creation

Please help me configure the configuration file 1. Download only the flac 2. The path to save 3. Folder name: year - album 4. The file name is the: track number. title 5. Save all possible tags 6. Save the cover of the maximum size to a folder named folder 7. Root folder from: "artist" 8. Sewn cover 500px if this requires a bat file, please help with its creation

For 1, while running use:

.\d-fi.exe -q flac

For 2, 3, 4 and 7 Go under

"saveLayout": {

"track": "Music/{ALB_TITLE}/{SNG_TITLE}",
"album": "Music/{ALB_TITLE}/{SNG_TITLE}",
"artist": "Music/{ALB_TITLE}/{SNG_TITLE}",
"playlist": "Playlist/{TITLE}/{SNG_TITLE}"

},

For example for Albums change to:

i.e "album": "Path to Save / Year - Album /track number. title",

and Path to save is you desktop in a folder named Music: C:\Users\Takatakamwitu\Desktop\Music

to

"album": "C:/Users/Takatakamwitu/Desktop/Music/{ART_NAME}/{DIGITAL_RELEASE_DATE} - {ALB_TITLE}/{TRACK_NUMBER}.{SNG_TITLE}",

  1. The path to save -> C:/Users/Takatakamwitu/Desktop/Music/

  2. Root folder from: "artist" -> /{ART_NAME}/

  3. Folder name: year - album -> {DIGITAL_RELEASE_DATE} - {ALB_TITLE}

  4. The file name is the: track number. title -> {TRACK_NUMBER}.{SNG_TITLE}

  5. Sewn cover 500px

"coverSize": {

"flac": 500

},

or just download and use musicbee app File Organization.

For 1, while running use: .\d-fi.exe -q flac For 2, 3, 4 and 7 Go under "saveLayout": { "track": "Music/{ALB_TITLE}/{SNG_TITLE}", "album": "Music/{ALB_TITLE}/{SNG_TITLE}", "artist": "Music/{ALB_TITLE}/{SNG_TITLE}", "playlist": "Playlist/{TITLE}/{SNG_TITLE}" }, For example for Albums change to: i.e "album": "Path to Save / Year - Album /track number. title", and Path to save is you desktop in a folder named Music: C:\Users\Takatakamwitu\Desktop\Music to "album": "C:/Users/Takatakamwitu/Desktop/Music/{ART_NAME}/{DIGITAL_RELEASE_DATE} - {ALB_TITLE}/{TRACK_NUMBER}.{SNG_TITLE}", 2. The path to save -> C:/Users/Takatakamwitu/Desktop/Music/ 7. Root folder from: "artist" -> /{ART_NAME}/ 3. Folder name: year - album -> {DIGITAL_RELEASE_DATE} - {ALB_TITLE} 4. The file name is the: track number. title -> {TRACK_NUMBER}.{SNG_TITLE} 8. Sewn cover 500px "coverSize": { "flac": 500 }, or just download and use musicbee app File Organization.
Mrakobes666 commented 2 years ago
Poster

And all the same only in the configuration file? For windows

And all the same only in the configuration file? For windows
Mrakobes666 commented 2 years ago
Poster

Thank you, everything turned out to experiment, he does not see non-English words in the way, but this is not a problem. It remains to understand 2 points

Download only the flac Save the cover of the maximum size to a folder named folder

.\d-fi.exe -q flac

This is the same command line, as in the configuration file to register?

Thank you, everything turned out to experiment, he does not see non-English words in the way, but this is not a problem. It remains to understand 2 points Download only the flac Save the cover of the maximum size to a folder named folder .\d-fi.exe -q flac This is the same command line, as in the configuration file to register?
Mrakobes666 commented 2 years ago
Poster

No, it doesn't work correctly. The year does not parse, the track number is 3-digit and I want 2

No, it doesn't work correctly. The year does not parse, the track number is 3-digit and I want 2
Mrakobes666 commented 2 years ago
Poster

in general, some albums are downloaded normally and there are 2 digits for the year. probably it depends on the tags in the files

in general, some albums are downloaded normally and there are 2 digits for the year. probably it depends on the tags in the files
Namkhai B. commented 2 years ago
Collaborator

Is this still reproducible?

Is this still reproducible?
Namkhai B. commented 2 years ago
Collaborator

Closing for lack of activity. Feel free to reopen if the issue persists.

Closing for lack of activity. Feel free to reopen if the issue persists.
Sign in to join this conversation.
No Milestone
No assignee
4 Participants
Loading...
Cancel
Save
There is no content yet.