Skip to content
This repository has been archived by the owner on Apr 23, 2023. It is now read-only.

Invalid Filename From Title #186

Open
parataxus opened this issue Dec 30, 2021 · 5 comments
Open

Invalid Filename From Title #186

parataxus opened this issue Dec 30, 2021 · 5 comments

Comments

@parataxus
Copy link

parataxus commented Dec 30, 2021

Can be worked around by [--{dir,file,chapter}-naming-scheme <STRING>]. I guess it is the : in the title. Many (if not most) of my audio books have it.

----Decoding---Der Hobbit: Der Herr der Ringe 0.5--------------------XXXXXXXX--
Source: Der Hobbit_ Der Herr_B0067JVXDG_LC_128_44100_Stereo.aax
Total length: 10:58:42
./Hörbuch/J. R. R. Tolkien/Der Hobbit: Der Herr der Ringe 0.5/Der Hobbit: Der Herr der Ringe 0.5.mp3: Invalid argument

The directory Der Hobbit Der Herr der Ringe 0.5 is created.

@s3phir0th115
Copy link

I ran into something similar, though it doesn't error out but produces files that will show as corrupt through things like Samba when connecting to Windows machines.
My solution is to adjust the title variable with sed in the code to remove the colon after where the title variable is set:
sed 's/\:/ -/g'

@jpretori
Copy link

I got this one - I guess the single quote is throwing it off.

Directories are created up to and including the author's name.

mkdir: cannot create directory ‘test/Audiobook/Dennis E. Taylor/Heaven's River: Bobiverse, Book 4/’: Invalid argument

@jpretori
Copy link

jpretori commented Apr 15, 2022

Turns out it was the colon that was bothering my system, not the single quote. I added

  title=`echo $title | $SED -E 's/\:/ -/g'`

after line 677, now it seems to be working.

[EDIT: corrected line number]

@jpretori
Copy link

Maybe a more suitable fix for this one is to do the same thing that worked for #180

@damajor
Copy link
Contributor

damajor commented Oct 17, 2022

Here is how I deal with some quicks in titles:
Remove all '.' and ':' from authors:
--dir-naming-scheme '${artist//[:.]}/$series_title'
Automatically create subdirectories for series:
--file-naming-scheme '${subtitle:+$subtitle - }$title'

More details in bash manual (bash parameter expansion).

Hope it helps ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants