LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-22-2005, 04:45 PM   #1
dangerousdave
Member
 
Registered: Feb 2005
Distribution: Ubuntu 8.04
Posts: 100

Rep: Reputation: 15
Winamp playlist to XMMS


OK, XMMS handles winamp playlists all hunky dorey... until you have subdirectories - the obvious issue of '\' over '/'. Also my mp3s and playlists are on an ntfs partition, so I cant directly edit the playlist. So basically I need some utiliy or maybe some mad grep command or some script that can (a) Rename all pointers in the m3u from relative to absolute paths (so I can copy the m3u to my linux partition and the path to the mp3s will be valid) and (b) replace all \ with / when subdirectories are used.

I should think this is a common enough problem, there must be some utlity or quick fix method of doing this?

Cheers,
 
Old 08-22-2005, 05:19 PM   #2
mebrelith
Member
 
Registered: Nov 2004
Location: Torreón, Coahuila, México
Distribution: Gentoo
Posts: 342
Blog Entries: 1

Rep: Reputation: 30
Stop using XMMS and get amarok. Never had this kind of problems.
 
Old 08-22-2005, 06:42 PM   #3
ironwalker
Member
 
Registered: Feb 2003
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506

Rep: Reputation: Disabled
XMMS is fine.....no need for anarok.

The only times I had problems similar to this was when the name of the file was windows style and had spaces in the name of the file.
 
Old 08-22-2005, 07:19 PM   #4
mebrelith
Member
 
Registered: Nov 2004
Location: Torreón, Coahuila, México
Distribution: Gentoo
Posts: 342
Blog Entries: 1

Rep: Reputation: 30
Naming problems with NTFS also have to do with UTF-8 related issues. And well, XMMS has no UTF-8 support for what Ive seen. And its amarok, and it rules.
 
Old 08-22-2005, 07:47 PM   #5
dub.wav
Member
 
Registered: Aug 2003
Location: Norway
Distribution: FC4
Posts: 83

Rep: Reputation: 20
Probably there already is a tool which does this, but I wrote this script:

Code:
#!/bin/bash
if [ "$#" != 2 ]
then
	echo "Usage: $0 <playlist> <path to relative directory>"
	exit 1
fi
grep -v '^#' "$1" | sed 's/\\/\//' | while read line
do 
	echo "$2$line"
done
Use it like this:
bash m3u_toabs.sh /mnt/windows/music/playlist.m3u /mnt/windows/music/ > playlist.m3u
 
Old 08-25-2005, 05:15 PM   #6
dangerousdave
Member
 
Registered: Feb 2005
Distribution: Ubuntu 8.04
Posts: 100

Original Poster
Rep: Reputation: 15
Absolutely EXCELLENT. Exactly what I needed. This should be posted up somewhere in a faq or something.

Cheers for this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
XMMS Vs. Winamp charafantah Linux - Software 11 06-19-2005 06:40 AM
Is there a Playlist HTML Generator in XMMS like Winamp? vharishankar Linux - Software 2 04-03-2005 10:51 PM
Xmms playlist pb kyoshiro Linux - Software 0 12-05-2003 03:50 AM
Winamp/XMMS??? whoistom Linux - Software 8 07-29-2003 01:26 PM
XMMS - can't play winamp playlist dr. gonzo Linux - Software 7 07-08-2003 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration