Old 20th November 2004, 19:48   #1
k_rock923
\m/
(Forum King)
 
k_rock923's Avatar
 
Join Date: Jul 2003
Location: /bin/bash
Posts: 7,850
Send a message via AIM to k_rock923
I need a scripting suggestion

I have this bash script that I use to rip and encode a cd. the problem is, a band like AC/DC breaks it. The / fucks up stuff big time for a number of reasons. For one thing, the file that you get back from a cddb query has the format ARTIST / TITLE of the album. I have the script take everything before the / and make it the artist for the name and tag and everything after the / be the album. I can live with that problem I guess and use easytag to fix them all at once. The problem that I can't live with is this: If a song has a / in its name, massive problems occur. My script has lame output the file to ARTIST - SONGTITLE, with songtitle coming from the file from CDDB. Lame can't exactly save a file with a / in it (this is linux). So I suppose I could have the script change the / to somethign else, but it's not the right track name then. Anyone have any ideas of what I can do about this, or what I can change the / to?

Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway.
k_rock923 is offline   Reply With Quote
Old 20th November 2004, 19:50   #2
SSJ4 Gogitta
Followed by Gnomes
(Forum King)
 
SSJ4 Gogitta's Avatar
 
Join Date: Dec 2000
Location: West Virginia Googolplex: 10^10¹°° FB:/SSJ4.DominusDeus DeviantArt: DominusDeus XboX GT: A Wild Meeseeks Playstation 4: DominusDeus
Posts: 7,162
AC-DC

ACDC

SSJ4 Gogitta is offline   Reply With Quote
Old 20th November 2004, 22:15   #3
ryan
not fucked, not quite.
(Forum King)
 
ryan's Avatar
 
Join Date: Feb 2002
Location: Missouri via Tennessee
Posts: 8,813
Send a message via AIM to ryan
That doesn't fix it for when it's in the song's title.
ryan is offline   Reply With Quote
Old 20th November 2004, 22:32   #4
k_rock923
\m/
(Forum King)
 
k_rock923's Avatar
 
Join Date: Jul 2003
Location: /bin/bash
Posts: 7,850
Send a message via AIM to k_rock923
well, I solved the track name problem, i just used sed to make it a backslash. But idk what the hell i'm going to do with the artist name. this is what the line in question from the cddb query looks like. . .(there's more to it, but a cut command leaves it at the parts that I need)

AC/DC / Stiff Upper Lip

normally, this works great because i can just use cut, use '/' as the delimiter and f 1 and f 2 and get artist and title. Even something in pseudo code would be helpful here.

Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway.
k_rock923 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Community Center > General Discussions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump