MOD/Tracker Support |
MOD/Tracker Support |
Pyrii |
Aug 24 2007, 12:11 AM
Post
#1
|
Newbie Group: Members Posts: 3 Joined: 24-August 07 From: South UK Member No.: 357 |
I frequently enjoy some tracker files in winamp, so support for tracker files (xm/it/mod/stm/s3m etc...) maybe even if it just reads details from winamp instead of directly.
Currently I have the blogscript I use modified to read filename as a failsafe, so it's currently looking like this for tracker files: Played 3 minutes ago: [] Phantom by Unknown - (0) ... for a 6 minute file, as it can't read song length it can't tell if the song is still playing. Well would be a nice feature, hope it's doable. |
Serge |
Aug 24 2007, 12:46 AM
Post
#2
|
AMIP Developer Group: Root Admin Posts: 935 Joined: 12-March 06 Member No.: 1 |
Use %s in AMIP to get everything Winamp can provide.
|
Pyrii |
Aug 24 2007, 01:54 AM
Post
#3
|
Newbie Group: Members Posts: 3 Joined: 24-August 07 From: South UK Member No.: 357 |
Does that provide song length aswell?
|
Serge |
Aug 24 2007, 08:19 AM
Post
#4
|
AMIP Developer Group: Root Admin Posts: 935 Joined: 12-March 06 Member No.: 1 |
%s contains everything Winamp can provide. In some cases you can specify format for %s inside Winamp.
|
Pyrii |
Aug 24 2007, 12:23 PM
Post
#5
|
Newbie Group: Members Posts: 3 Joined: 24-August 07 From: South UK Member No.: 357 |
%s contains everything Winamp can provide. In some cases you can specify format for %s inside Winamp. Well I'm not seeing the file length come through. Regardless, my request for MOD support stands as I'm thinking it might be handy for other peeps too. For now I've used %sl and added some PHP code to the parser: CODE if(!$plastic_tunes_duration) { $dur_minutes = floor($plastic_tunes_backupdur / 60); $dur_hours = floor($dur_minutes / 60); $dur_seconds = $plastic_tunes_backupdur % 60; $plastic_tunes_duration = str_pad($dur_hours, 2, '0', STR_PAD_LEFT) . ':' . str_pad($dur_minutes, 2, '0', STR_PAD_LEFT) . ':' . str_pad($dur_seconds, 2, '0', STR_PAD_LEFT); } |