<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Just ran into a 19-disc, 432 track soundtrack today that wasn't in
discogs. Manually adding all of those tracks the way I described
previously just wasn't going to happen. :-)<br>
<br>
Since tellico stores it's data in a zipped XML file, I came up with
a better idea - write a script to generate the output in the proper
format, then copy/paste that into the XML. That ended up working
out well.<br>
<br>
If anyone's interested, here's the quick and dirty script I used.
Pass it -t to output in tellico format (by default it outputs in the
format for vgmdb.net import). Tack on a -v if you have a various
artists album with tracks named "XX-Artist Name - Track Name.flac"<br>
<br>
<br>
#!/bin/bash<br>
<br>
# Setup environment<br>
VA=0<br>
[ "$1" == "-v" -o "$2" == "-v" ] && VA=1<br>
TELLICO=0<br>
[ "$1" == "-t" -o "$2" == "-t" ] && TELLICO=1<br>
<br>
for i in *.flac; do<br>
NOEXT="${i%.*}"<br>
NUM=${NOEXT%%[^0-9]*}<br>
TITLE=${NOEXT/${NUM}-}<br>
LENGTH=$(ffprobe "${i}" 2>&1 | sed -ne 's/^.*Duration:
\([^,]*\).*$/\1/p' | sed -e 's/^00://g')<br>
if [ $VA -eq 1 ]; then<br>
ARTIST="${TITLE%% - *}"<br>
TITLE="${TITLE#* - }"<br>
else<br>
ARTIST=$(basename "$(readlink -f ..)")<br>
fi<br>
if [ $TELLICO -eq 1 ]; then<br>
echo " <track><br>
<column>${ARTIST}</column><br>
<column>${TITLE}</column><br>
<column>${LENGTH}</column><br>
</track>"<br>
else<br>
echo "${NUM} ${TITLE} ${LENGTH}"<br>
fi<br>
done<br>
<br>
<br>
-- <br>
Jared<br>
<br>
<br>
<div class="moz-cite-prefix">On 4/4/22 21:02, Jared wrote:<br>
</div>
<blockquote type="cite"
cite="mid:c68796df-b988-d184-975f-0e410a0e9345@legroom.net">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Is there a faster or more efficient way to add tracks not included
in a source like discogs than fiddling with each cell manually?
Right now I have to right-click and add a new row for each track
beyond 5, then copy/paste the title in each title cell one row at
a time, then repeat for artist one row at a time, then repeat for
length one row at a time.<br>
<br>
Is there some way to paste in multiple tracks at once in some
way? or dragon and drop in some way I'm not seeing? or maybe
import a tracklist from a text file or CSV?<br>
<br>
Not that big a deal, but I'm adding a lot of game soundtracks not
in discogs, and they tend to have a lot of tracks crammed on one
disc. It takes several minutes with this process even for
relatively short track lists.<br>
<br>
Importing from file metadata kind of does what I'm looking for,
but it screws with my collection fields, adding a bunch of fields
I don't want.<br>
<br>
-- <br>
Jared<br>
</blockquote>
<br>
</body>
</html>