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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-22-2005, 04:45 PM
|
#1
|
Member
Registered: Feb 2005
Distribution: Ubuntu 8.04
Posts: 100
Rep:
|
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,
|
|
|
08-22-2005, 05:19 PM
|
#2
|
Member
Registered: Nov 2004
Location: Torreón, Coahuila, México
Distribution: Gentoo
Posts: 342
Rep:
|
Stop using XMMS and get amarok. Never had this kind of problems.
|
|
|
08-22-2005, 06:42 PM
|
#3
|
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:
|
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.
|
|
|
08-22-2005, 07:19 PM
|
#4
|
Member
Registered: Nov 2004
Location: Torreón, Coahuila, México
Distribution: Gentoo
Posts: 342
Rep:
|
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.
|
|
|
08-22-2005, 07:47 PM
|
#5
|
Member
Registered: Aug 2003
Location: Norway
Distribution: FC4
Posts: 83
Rep:
|
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
|
|
|
08-25-2005, 05:15 PM
|
#6
|
Member
Registered: Feb 2005
Distribution: Ubuntu 8.04
Posts: 100
Original Poster
Rep:
|
Absolutely EXCELLENT. Exactly what I needed. This should be posted up somewhere in a faq or something.
Cheers for this.
|
|
|
All times are GMT -5. The time now is 03:28 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|