audiobookshelf: Initial version of role
This commit is contained in:
parent
a793f59a33
commit
4c7c0e3261
5 changed files with 132 additions and 0 deletions
4
roles/audiobookshelf/files/audiobookshelf.default
Normal file
4
roles/audiobookshelf/files/audiobookshelf.default
Normal file
|
@ -0,0 +1,4 @@
|
|||
METADATA_PATH=/srv/audiobookshelf/metadata
|
||||
CONFIG_PATH=/srv/audiobookshelf/config
|
||||
PORT=13378
|
||||
HOST=127.0.0.1
|
30
roles/audiobookshelf/files/meta.md
Normal file
30
roles/audiobookshelf/files/meta.md
Normal file
|
@ -0,0 +1,30 @@
|
|||
= Preparing files for upload =
|
||||
|
||||
== Filenames ==
|
||||
|
||||
Filenames should always contain track number (and optionally disc number) with leading zeros first and subtitle after that. Few exmaples:
|
||||
|
||||
```
|
||||
01. Luku.mp3
|
||||
01. Osa.mp3
|
||||
CD 1 - 01.mp3
|
||||
```
|
||||
|
||||
Directory should also contain `cover.jpg` with book cover picture and `desc.txt` containing book description.
|
||||
|
||||
== Metadata (id3 tags) ==
|
||||
|
||||
First clear old tags then set new ones:
|
||||
|
||||
```
|
||||
id3v2 -D "01. Osa.mp3"
|
||||
id3v2 \
|
||||
--TPE1 "Douglas Adams" \
|
||||
--TALB "$(echo 'Linnunradan käsikirja liftareille' | iconv -f utf-8 -t iso-8859-1)" \
|
||||
--TCOM "$(echo 'Heikki Kinnunen,Pekka Autiovuori,Yrjö Järvinen,Martti Järvinen,Esa Saario,Kauko Helavirta,Aila Svedberg' | iconv -f utf-8 -t iso-8859-1)" \
|
||||
--TLAN "fi" \
|
||||
--TPUB "Yleisradio" \
|
||||
--TYER 1984 \
|
||||
--genre "Science Fiction/Fiction/Humor" \
|
||||
"01. Osa.mp3"
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue