|
|
#1 |
|
\m/
(Forum King) |
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. |
|
|
|
|
|
#2 |
|
Followed by Gnomes
(Forum King) 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
|
|
|
|
|
|
#3 |
|
not fucked, not quite.
(Forum King) |
That doesn't fix it for when it's in the song's title.
|
|
|
|
|
|
#4 |
|
\m/
(Forum King) |
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. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|