Montag, 11. Februar 2013

11. The CDCard - and the playlists for Squeezeboxes

When I started the first experiments in this project, the ultimate target consisted of a quick access to the music of my CD's. That it has evolved in this way, I was not aware. So let us turn to the CDCard .

Actually, the theoretical side clear: we need an advanced playlist in m3u format.. How has the look basically, we saw yesterday. So basically there are no problems. No problems? Most of the playlists of other programs are not expanded - they do not work. So I adapted a working method for me. I would imagine at this point for all those who struggle with the playlist just like me.

I assume that ripping a CD is very well known to almost everyone. FYI: I rib with Audiograbber. The files are then in mp3 format in a dedicated CD folder.

I received this week from my heating oil suppliers a CD "Après Ski Classics" gift that will serve me now as an example. When grabbing can Audiograbber also create a playlist m3u . Which looks like this - simply poor:  

01 - Tim Toupet - Du hast die Haare schön-1.mp3
02 - K2 - Der Berg ruft (Remix 2000).mp3
03 - Olaf Henning - Cowboy & Indianer (komm hol das Lasso raus).mp3
04 - Jürgen Drews - König an der Schneebar.mp3
05 - The BossHoss - Hey Ya!.mp3
06 - Peter Wackel - Après Ski.mp3
07 - Helmut Aus Mallorca - Der alte Holzmichel.mp3
08 - A-Teens - Gimme! Gimme! Gimme!.mp3
09 - Scooter - The Question is what is the Question.mp3
10 - Didi Diesel - I bin der Champ.mp3
11 - Henning & Holm - Maddalena 2001 (Du Luder).mp3
12 - Bata Illic - Michaela.mp3
13 - Sonthofen Allstars - Alles Wunderbar.mp3
14 - Cascada - Everytime we touch.mp3
15 - Hermes House Band - I will Survive (Radio Edit).mp3

This is definitely not the extended format! The LMS will roar with laughter! WE can do this in a better way.. Therefore we need the best editing program for MP3's for me - MP3Tag . At the time of this blog with the version 2.54. The RFID card is already identified and has the UID/CS 78-12-179-209-32. I have now added a new field to the ID3 tags: RFID-Karte (RFID-card).

MP3Tag with the new fields EAN code and RFID-Card

We need this field later in the export yet. MP3Tag in there under File - Export the ability to describe an export file. My export is called of course Squeezebox-Playlist (what else). The syntax is:  

#EXTURL:file:///volume1/music/$cutLeft($replace(%_path%,\,/, ,'%20'),3)

We definitely have not MP3Tag as a focus, take it as it is and create yourselves your own export. During the export the following window will be displayed. It is important, that the file name is entered as shown in the picture on the left. Then the program automatically retrieves the RFID number from the ID3 tag. If  we now press OK we get THE playlist we need and already saved in the correct folder. Wow! The playlist now has the following content:

#EXTINF:223,Du hast die Haare schön
/volume1/music/Pop/Sampler/Après Ski Classics/01 - Tim Toupet - Du hast die Haare schön.mp3
#EXTINF:236,Der Berg ruft (Remix 2000)
/volume1/music/Pop/Sampler/Après Ski Classics/02 - K2 - Der Berg ruft (Remix 2000).mp3

This looks definitely more like an extended playlist - and it works . Here it is in the directory playlist with all the otherplaylists.

Does it work?? No! An error message is spreading. Not these error now!!

"Problem: File cannot be opened for:"

This is certainly an error in the playlist script. I noticed it immediately.


The first track includes a German special characters. And the LMS does not like special characters. The "ö" makes trouble! For this english version of the script this fact is not really important, but there are people from other countries with special characters.

In the script the following line

#EXTURL:file:///volume1/music/$cutLeft($replace(%_path%,\,/,,'% 20'),3)

a "\" is replaced by a "/" and a " " by a "20%" , is changed as follows:
#EXTURL:file:///volume1/music/$cutLeft($replace(%_path%,\,/, ,'%20',ä,%C3%A4,ö,%C3%B6,ü,%C3%BC),3) 

The error message has gone! Should such an error messages appear you have to search in this environment first!

The RFID card is now hidden in the CD cover and can not be seen from outside.

I did that with all my CD's: Ripping - storing in the database - preparing the RID-card - creating the playlist and storing them - CDCard hiding in the CD covers. DONE!   With over 300 CD's not a work for one day - that lasts! :-) But the result is always a pleasure.

I had thought at the beginning that it will last a whil to find a specific playlist in this crowd. The opposite is the case! Because the contents are sorted in a special directory, everything is serially numbered! Bother to write the UID and CS on the Card. The troubleshooting is much easier.

We walk slowly to the finish line. How a PlaylistCard is built, you should not have, according to the reading of the last blogs, any difficulties. I leave this to you!

Next time we want to see the DuinoSqueeze  in action. Video? Let's wait and see. It will definitely take some time.

Keine Kommentare:

Kommentar veröffentlichen