FireFly Media Server › Firefly Media Server Forums › Firefly Media Server › Setup Issues › Almost there
- This topic has 19 replies, 5 voices, and was last updated 17 years, 5 months ago by davesanti.
-
AuthorPosts
-
25/06/2007 at 7:16 PM #11353fizzeParticipant
hm just out of curiosity, what drive did you unslung to, and where is your music collection located?
I guess the music is located on an external harddrive, yes? 😉
Did you format that drive on the slug before copying the files over? Or has that yet to happen?Besides claims of NTFS support I gotta strongly object to using that fs with unslung. Its highly unstable.
25/06/2007 at 7:22 PM #11354davesantiParticipantFizze,
I am unlung to port 2, a 160 GB Maxtor One Touch 3. It is the only drive attached to the Slug at present.
The music is located in a folder I created called “My Music” on that drive.
I have mapped the drive so I can see it on my PC no problem.
The drive was formatted by the Slug after the ling and I copied the fiels over after.
I tried to follow the Wiki directions carefully as I dont really know what I am doing otherwise.
I also posted a question the roku forum about my Maxtor one touch 3 drive not spinning down. Would you knw if this would change if I had unlung to port 1 using a usb stick, and if so , can you “re” unlsing” a Slug.
Thanks for the help.
Dave
25/06/2007 at 8:14 PM #11355fizzeParticipantyep, this would change 😉
so, all your system files are located on that drive, and it cannto spin down.You can re-sling to a usb-drive to port b though.
25/06/2007 at 8:14 PM #11356davesantiParticipantFizze,
Thanks for the direction on logging. I now have logs available.
BTW, what does this command do:
tail -f /share/flash/data/public/firefly.log
Dave
25/06/2007 at 8:57 PM #11357davesantiParticipantAgain, thanks for the input, Fizze. I guess i could re sling to USB2, and put hard drive in 1…is there any real downside to this.
Here is where I am with plalists:
I have logs working so that is helpful.
It is having a problem with the itunes library… each time says to ibrary xml file and I get pages and pages of that repeating itself. I disabled the itunes support so that eliminates that issues.
I am left with a clear path problem, well the problem is clear, the solution is not.
Here is the last log. I created one M3u playlisy with one song. It is the only one in the library. It was generated using Palylist Creator 3 (freeware) and i set it to use relative paths.
Rescanning database
2007-06-25 13:50:11 (00000400): Starting playlist scan
2007-06-25 13:50:11 (00000400): Scanning /share/flash/data/public/My Music/Metallica.m3u
2007-06-25 13:50:11 (00000400): Processing static playlist: /share/flash/data/public/My Music/Metallica.m3u
2007-06-25 13:50:11 (00000400): Added playlist as id 3
2007-06-25 13:50:11 (00000400): Playlist entry Y:/My Music/Metallica/Ride the Lightning/04 Fade to Black.mp3 bad: Path not found
2007-06-25 13:50:11 (00000400): Done processing playlist
2007-06-25 13:50:11 (00000400): Done Scanning /share/flash/data/public/My Music/Metallica.m3u
2007-06-25 13:50:20 (00000400): Updating playlists
2007-06-25 13:50:20 (00000400): Scanned 3220 songs (was 3220) in 77 secondsThe list is recognized. The paths are “correct” as far as location in the database..
Dave
25/06/2007 at 9:05 PM #11358davesantiParticipantWell, looks like I may have made the breakthrough.. I edited the playlist to change the path to the song to:
/share/flash/data/public/My Music/Metallica/Ride the Lightning/04 Fade to Black.mp3
And it worked.
Here is the log:
Rescanning database
2007-06-25 13:59:53 (00000400): Starting playlist scan
2007-06-25 13:59:53 (00000400): Scanning /share/flash/data/public/My Music/Metallica.m3u
2007-06-25 13:59:53 (00000400): Processing static playlist: /share/flash/data/public/My Music/Metallica.m3u
2007-06-25 13:59:54 (00000400): Added playlist as id 2
2007-06-25 13:59:54 (00000400): Done processing playlist
2007-06-25 13:59:54 (00000400): Done Scanning /share/flash/data/public/My Music/Metallica.m3u
2007-06-25 14:00:03 (00000400): Updating playlists
2007-06-25 14:00:03 (00000400): Scanned 3220 songs (was 3220) in 73 secondsSo I guess the question is now how do I create playlists without going through the hassle of editing itline by line….
Dave
26/06/2007 at 3:33 AM #11359davesantiParticipantConclusions:
Playlists work fine if the path to the song is right. I just dont want to have to edit them everytime. The simple playlist program I use doesn’t allow me to set the path to file correctly, just adds the path when you choose the song.
Itunes works also (except I cant get it to save the library to the NAS even though I changed that in the settings). I have to copy and paste the library file to the NAS. It just wont read the songs. The paths are wrong.
Do any programs offer the capability to create a playlist using the /share style path.
Dave
26/06/2007 at 3:45 AM #11360rpeddeParticipant@davesanti wrote:
Well, looks like I may have made the breakthrough.. I edited the playlist to change the path to the song to:
/share/flash/data/public/My Music/Metallica/Ride the Lightning/04 Fade to Black.mp3
And it worked.
Here is the log:
Rescanning database
2007-06-25 13:59:53 (00000400): Starting playlist scan
2007-06-25 13:59:53 (00000400): Scanning /share/flash/data/public/My Music/Metallica.m3u
2007-06-25 13:59:53 (00000400): Processing static playlist: /share/flash/data/public/My Music/Metallica.m3u
2007-06-25 13:59:54 (00000400): Added playlist as id 2
2007-06-25 13:59:54 (00000400): Done processing playlist
2007-06-25 13:59:54 (00000400): Done Scanning /share/flash/data/public/My Music/Metallica.m3u
2007-06-25 14:00:03 (00000400): Updating playlists
2007-06-25 14:00:03 (00000400): Scanned 3220 songs (was 3220) in 73 secondsSo I guess the question is now how do I create playlists without going through the hassle of editing itline by line….
Are there any good programs for creating playlists that get it right.
Dave
Okay, paths that look like this:
Y:My MusicMetallicaRide the Lightning4 Fade to Black.mp3
Are absolute paths, not relative paths. So the playlist editor you are using apparently *says* it’s doing relative paths, but it’s actually saving them as absolute paths. That’s the real problem.
You have the playlist in /share/flash/data/public/My Music, right, so the path to the metallica song relative to that directory is:
Metallica/Ride the Lightning/04 Fade to Black.mp3
If you wanted to keep it absolute, it would be
/share/flash/data/public/My Music/Metallica/Ride the Lightning/04 Fade to Black.m3p, like you noted.
So if you could either get rid of the initial “Y:My Music” or replace the “Y:” with “/share/flash/data/public/”, then you would be golden.
You can do that with sed. The first is probably easiest. Sed can do search/replace on a file or stream. A sed command like this would do it:
s/Y:\My Music\//
Would cut out the Y:My Music from the front of all the file entries. The actual sed command is:
s///
In this case you are searching for Y:My Music, and replacing it with nothing (//). The reason that the ‘s are double \ed, is because the backslash is used for special match terms (like w for a whole word, or s for spaces and tabs), so it must be escaped itself (\) to tell sed you are looking for a literal backslash.
That’s probably pretty iffy but maybe you at least get the gist of it. To replace the absolute path the *real* absolute path, something like:
s/Y:\//share/flash/data/public//
would do it. (again, the /’s get escaped to tell sed that it’s a literal forward slash you want to replace it with, and not the forward slash that signals the end of the search and replace command).
Kind of gibberish, but there you go.
To use it, you would do something like:
cat metallica.m3u | sed ‘s/Y:\My Music\//’
and it would print the replaced playlist on the screen. Try it.
But you want to actually edit the playlist itself, in place. That’s what the -i argument to sed is:
sed -i ‘s/Y:\My Music\//’ metallica.m3u
Run that, and you should see the metallica playlist changed. If you try to rescan, it should pick up the playlist right.
If you are sure you have it right, you can use a shell script to fix up all the m3us:
for d in *m3u; do sed -i ‘s/Y:\My Music\//’ $d; done
This will find all the m3u files in the current directory and run the sed command above on them.
You could also do that with xargs, which takes a list of files and runs commands on all of them (basically). Something like:
ls *m3u | xargs -n1 sed -i ‘s/Y:\My Music\//’
Would probably do it. But I’d stick with the bash one. You’ll probably have to ipkg install bash, and be running the bash shell (/opt/bin/bash) to make the do-everything script work, though (the “for d…” one).
— Ron
26/06/2007 at 5:26 AM #11361davesantiParticipantWow,
Thanks for the detailed answer..
I will give it a try..
Not to be a pain, though.. but I still wonder are there any playlist creators that can be configured to create playlist with the correct relative path.
Dave
26/06/2007 at 2:29 PM #11362davesantiParticipantRon, I got relative paths working. Also, the playlist creator program is now doing it right so it looks like I am good to go.
Thanks for your help on these points.
Dave
-
AuthorPosts
- The forum ‘Setup Issues’ is closed to new topics and replies.