Hi Seth,

On 30/05/18 02:08, Seth Stevenson wrote:
Is the metadata being lost because of the conversion.

Things to try:

use rdimport --verbose --delete-cuts --to-cart=[cartnum no leading 0] GROUP /path/to/file.mp3

with NO other switches and see what populates the Cart data.

rdimport reads some but not all variants of mp3 tag sometimes failing because of junk in the tag file.

rdimport on the command line is a lot easier to tune then the GUI.

Also:
Look at the file and try and locate the tag data. Tags can be ID3v1, ID3v2.3, ID3v2.4 and  can contain characters which upset the importer. Some rippers include tag data with ~!@#$%^&*()_+|"?>< ®¥ and other symbols which bash looks at as commands. Somewhere I have a script that sets ALL tags to 'null' except Artist and Title  which I run before the audio is imported.

Meanwhile this code helped me import a bunch of files which had tag issues.

-------------------------------------snip--------------------------------------------------------


#! /bin/bash
# you need to have id3info and eyeD3 installed
# copy the files you want to import into a local folder and run this script from within the folder
# this script will extract the Artist etc from the mp3 tag including GENRE

# and make a label on the file that can be used to put the data in the Rivendell database # using rdimport --verbose --metadata-pattern=%a-%t-%l-%u.mp3 GROUP the GENRE gets put on the user line
# there is an upper limit as to how many you can do at once

# WARNING do this on COPIES of the files

# If the files are coming from i tunes check the GENRE has been written to the mp3 tags

echo "Extracting tags..."
for i in *.mp3
do

TITLE="`id3info "$i" | grep '^=== TIT2' | sed -e 's/.*: //g'`"
ARTIST="`id3info "$i" | grep '^=== TPE1' | sed -e 's/.*: //g'`"
ALBUM="`id3info "$i" | grep '^=== TALB' | sed -e 's/.*: //g'`"
YEAR="`id3info "$i" | grep '^=== TYER' | sed -e 's/.*: //g'`"
GENRE="`eyeD3 "$i" | grep 'genre' | sed -e 's/.*: //g'  -e 's/(.*)//g'   -e  's/^ *//;s/ *$//g' `"

echo "$ARTIST $TITLE $ALBUM $YEAR $GENRE"
mv "$i" "$ARTIST-$TITLE-$ALBUM-$YEAR-$GENRE.mp3"

done

echo "hint: rdimport --verbose --metadata-pattern=%a-%t-%l-%u.mp3 --delete-source [GROUP] *.mp3"


-------------------------------------snip--------------------------------------------------------

all the usual caveats apply.

regards

Robert
_______________________________________________
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

Reply via email to