Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Favor? (Read 3275 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Favor?

Hey, I'd like somebody to make me a formatting string. It's going to be for the Copy Command. What I want to do is create an album list, so I want what now comes out as
Code: [Select]
0001. 50 Cent - [Get Rich Or Die Tryin  #01] Intro [0:40]
0002. 50 Cent - [Get Rich Or Die Tryin  #02] Wha Up Gangsta [2:59]
0003. 50 Cent - [Get Rich Or Die Tryin #03] Patiently Waiting (feat. Eminem) [4:49]
0004. 50 Cent - [Get Rich Or Die Tryin #04] Many Men (Wish Death) [4:16]
0005. 50 Cent - [Get Rich Or Die Tryin #05] In Da Club [3:40]
0006. 50 Cent - [Get Rich Or Die Tryin  #06] High All The Time [4:29]
0007. 50 Cent - [Get Rich Or Die Tryin  #07] Heat [4:15]
0008. 50 Cent - [Get Rich Or Die Tryin  #08] If I Can't [3:16]
0009. 50 Cent - [Get Rich Or Die Tryin  #09] Blood Hound (feat. Young Buck of G Unit) [4:00]
0010. 50 Cent - [Get Rich Or Die Tryin  #09] Back Down [3:41]
0011. 50 Cent - [Get Rich Or Die Tryin  #11] P.I.M.P. [4:09]
0012. 50 Cent - [Get Rich Or Die Tryin  #12] Like My Style (feat. Tony Yayo of G Unit) [3:13]
0013. 50 Cent - [Get Rich Or Die Tryin  #13] Poor Lil Rich [3:19]
0014. 50 Cent - [Get Rich Or Die Tryin  #14] 21 Questions (feat. Nate Dogg) [3:44]
0015. 50 Cent - [Get Rich Or Die Tryin  #15] Don't Push Me (feat. Lloyd Banks of G Unit & Eminem) [4:09]
0016. 50 Cent - [Get Rich Or Die Tryin  #16] Gotta Make It To Heaven [4:00]

to come out as
Code: [Select]
50 Cent - [Get Rich Or Die Tryin] 
01.Intro [0:40]
02.Wha Up Gangsta [2:59]
03.Patiently Waiting (feat. Eminem) [4:49]
04.Many Men (Wish Death) [4:16]
05.In Da Club [3:40]
06.High All The Time [4:29]
07.Heat [4:15]
08.If I Can't [3:16]
09.Blood Hound (feat. Young Buck of G Unit) [4:00]
10.Back Down [3:41]
11.P.I.M.P. [4:09]
12.Like My Style (feat. Tony Yayo of G Unit) [3:13]
13.Poor Lil Rich [3:19]
14.21 Questions (feat. Nate Dogg) [3:44]
15.Don't Push Me (feat. Lloyd Banks of G Unit & Eminem) [4:09]
16.Gotta Make It To Heaven [4:00]


Title of album followed by tracks.

Thanks

Favor?

Reply #1
Hmmm... This assumes all the tags are set. I suppose it could have rules to check for unset tags, or some brackets here and there, but without all this info, how is your idea supposed to work anyway? :B


$if($greater(2,%tracknumber%),%artist% - '['%album%']'$crlf())
$num(%tracknumber%,2).%title% '['%_length%']'


Favor?

Reply #3
Simple question here.

Could someone help me with a string that does this:
If the codec is (for example) FLAC, the how do I get the playlist to colour it a certain colour, the FLAC text, I mean. The same with MP3 and so on.
Like this:

0001 -Artist    Title    [Length]  FLAC
0001 -Artist    Title    [Length]  MP3
0001 -Artist    Title    [Length]  MUSEPACK

me n00b. 

Favor?

Reply #4
Quote
Simple question here.

Could someone help me with a string that does this:
If the codec is (for example) FLAC, the how do I get the playlist to colour it a certain colour, the FLAC text, I mean. The same with MP3 and so on.
Like this:

0001 -Artist    Title    [Length]   FLAC
0001 -Artist    Title    [Length]   MP3
0001 -Artist    Title    [Length]   MUSEPACK

me n00b. 

$if($stricmp($codec(),flac),$rgb(255,0,0)$codec()$rgb(0,0,0),
$if($stricmp($codec(),mp3),$rgb(0,255,0)$codec()$rgb(0,0,0),
$if($stricmp($codec(),musepack),$rgb(0,0,255)$codec()$rgb(0,0,0),)))

Put the most common codec at the top.

Favor?

Reply #5
Wha. I don't get it, kode; that doesn't work for me. It gives me stuff like:

Code: [Select]
Belle And Sebastian - [I'm A Cuckoo]01.I'm a Cuckoo [3:58]
02.Stop Look and Listen [7:04]
03.I'm a Cuckoo (by The Avalanches) [3:59]

Et cetera. ... The code seems right to me, but $crlf() doesn't seem to be working. Any ideas?
~


Favor?

Reply #7
Quote
$if($stricmp($codec(),flac),$rgb(255,0,0)$codec()$rgb(0,0,0),
$if($stricmp($codec(),mp3),$rgb(0,255,0)$codec()$rgb(0,0,0),
$if($stricmp($codec(),musepack),$rgb(0,0,255)$codec()$rgb(0,0,0),)))

Put the most common codec at the top.

Thanks! You've just completed my string.