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: foo_uie_trackinfo (Read 814733 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

foo_uie_trackinfo

Reply #150
Can author add to plugin features, like read info from some file (Ex: *txt, etc).

Ex: I not needed on tagz on foo_ui_trackinfo. I can read tagz from playlist and statusbar.

4what: read lyric from file.txt for curent song, or album(group,artist) history(biography,etc).

PS: Ex - example
WBR,  Vitaliy I. Bogdanets
Foobar2000 - The way it's meant to be played

foo_uie_trackinfo

Reply #151
Hey guys,

I did another code for track info panel. Highly customizeable I guess. Look at the config part.

Code: [Select]
// Highly customizeable track information made by Lycox

// Credits:
// Peter Pawlowski for great fb2k
// Free - for great progressbar
// upNorth - for filesize string
// Looks quite good with Arial, 8pt bold

// ==============================================
// Global Config Part //

// Shows Song Info in track info panel
// 0 = No, 1 = Yes
$puts(show_songinfo,1)

// Show various informations in Song Info
// 0 = No, 1 = Yes
$puts(title,1)
$puts(artist,1)
$puts(mixartist,1)
$puts(band,1)
$puts(album,1)
$puts(tracknumber,1)
$puts(genre,1)
$puts(bpm,1)
$puts(date,1)
$puts(copyright,1)


// Shows Additional Info in track info panel
// 0 = No, 1 = Yes
$puts(show_additionalinfo,1)

// Show various informations in Additional Info
// 0 = No, 1 = Yes
$puts(comment,1)
$puts(wwwartist,1)
$puts(publisher,1)
$puts(language,1)
$puts(composer,1)
$puts(lyricist,1)
$puts(conductor,1)
$puts(recordingdates,1)
$puts(fileowner,1)


// Shows Technical Info in track info panel
// 0 = No, 1 = Yes
$puts(show_techinfo,1)

// Show various informations in Tech Info
// 0 = No, 1 = Yes
$puts(codec,1)
$puts(bitrate,1)
$puts(samplerate,1)
$puts(channels,1)
$puts(time_elapsed_total,1)
$puts(trackgain,1)
$puts(albumgain,1)
$puts(rating,1)
$puts(play_counter,1)
$puts(play_date,1)
$puts(encodedby,1)
$puts(encodersettings,1)
$puts(filesize,1)
// hidden, because not really needed
$puts(filename_ext,0)
$puts(mediatype,0)
$puts(size,0)
$puts(songlen,0)
$puts(time,0)


// Shows Web Info in track info panel
// 0 = No, 1 = Yes
$puts(show_webinfo,1)

// Shows Web Related Infos in Web Info
// 0 = No, 1 = Yes
$puts(show_webrelated,1)

// Show various informations in Web Info
// 0 = No, 1 = Yes
$puts(wwwaudiofile,1)
$puts(wwwcopyright,1)
$puts(wwwcommercialinfo,1)
$puts(wwwpayment,1)
$puts(wwwpublisher,1)
$puts(wwwuser,1)

// Shows NetRadio Info in Web Info
// 0 = No, 1 = Yes
$puts(show_netradioinfo,1)

// Show various informations in NetRadio Info
// 0 = No, 1 = Yes
$puts(wwwradiopage,1)
$puts(netradioowner,1)
$puts(netradiostation,1)


// Shows Misc Info in track info panel
// 0 = No, 1 = Yes
$puts(show_miscinfo,1)

// Show various informations in Misc Info
// 0 = No, 1 = Yes
$puts(subtitle,1)
$puts(involvedpeople,1)
$puts(playlistdelay,0)
$puts(initialkey,0)
$puts(isrc,0)
$puts(partinset,0)


// Shows Original Info in track info panel
// 0 = No, 1 = Yes
$puts(show_originalinfo,1)

// Show various informations in Original Info
// 0 = No, 1 = Yes
$puts(origartist,1)
$puts(origyear,1)
$puts(origlyricist,1)
$puts(origfilename,1)

// Spacer
$puts(spacer,d6d6d6------------------------------------------------------------------------------------------$char(10))

// color codes
$puts(headline,256d3d)
$puts(info,ec9184)
$puts(text,000000)
$puts(grayed,c8c8c8)

// chars
$puts(rating_char,♪)
$puts(progress_char,●)

// End Global Config
// ==============================================


DCAE8DMode: %_trackinfo_mode%$char(10)$if(%_trackinfo_notrack%,No track,

// progressbar config
$puts(theme,1)
$puts(progress_length,18)

$if($strcmp($get(theme),1),
$puts(progress_color1,ff6d66)
$puts(progress_color2,ffe1df)
)


// PREPARE COLOR-STRINGS
// =========================================
$puts(progress_color1a,$blend($get(progress_color1),000000,1,4.5))
$puts(progress_color2a,$blend($get(progress_color2),000000,1,5.7))
// progressbar
$puts(progressbar,
$if(%_length_seconds%,

$puts(progress,$muldiv(%_time_elapsed_seconds%,$get(progress_length),%_length_seconds%))
$transition($repeat($get(progress_char),$get(progress)),$get(progress_color1a),$get(progress_color1))
$transition($repeat($get(progress_char),$sub($get(progress_length),$get(progress))),$get(progress_color2a),$get(progress_color2))
$pad_right($muldiv(%_time_elapsed_seconds%,100,%_length_seconds%),3)'%'
,streaming...
))

$get(progressbar))$char(10)

// Song Info
$if($strcmp(1,$get(show_songinfo)),
$get(spacer)
$char(1)C$get(headline)Song Info$char(10)
$if($strcmp(1,$get(title)),$get(info)Title: $get(text)$if(%title%,%title%,$get(grayed)'['No Title']')$char(10))
$if($strcmp(1,$get(artist)),$get(info)Artist: $get(text)$if(%artist%,%artist%,$get(grayed)'['Unknown Artist']')$char(10))
$if($strcmp(1,$get(mixartist))
|$strcmp(1,$get(band))
,
$if($strcmp(1,$get(mixartist)),$if(%mixartist%,$get(info)MixArtist: $get(text)%mixartist%$char(10)))
$if($strcmp(1,$get(band)),$if(%band%,$get(info)Band: $get(text)%band%$char(10))))
$if($strcmp(1,$get(album)),$if(%album%,$get(info)Album: $get(text)%album%$char(10)))
$if($strcmp(1,$get(tracknumber)),$if(%tracknumber%,$get(info)Track: $get(text)%tracknumber%$char(10)))
$if($strcmp(1,$get(genre)),$if(%genre%,$get(info)Genre: $get(text)%genre%$char(10)))
$if($strcmp(1,$get(bpm)),$if(%bpm%,$get(info)bpm: $get(text)%bpm%$char(10)))
$if($strcmp(1,$get(date)),$if(%date%,$get(info)Date: $get(text)%date%$char(10)))
$if($strcmp(1,$get(copyright)),$if(%copyright%,$get(info)© $get(text)%copyright%$char(10)))
)
// End Song Info

// Additional Info
$if($strcmp(1,$get(show_additionalinfo)),
$if($if(%comment%,$and($strcmp(1,$get(comment))))
|$if(%wwwartist%,$and($strcmp(1,$get(wwwartist))))
|$if(%publisher%,$and($strcmp(1,$get(publisher))))
|$if(%language%,$and($strcmp(1,$get(language))))
|$if(%composer%,$and($strcmp(1,$get(composer))))
|$if(%lyricist%,$and($strcmp(1,$get(lyricist))))
|$if(%conductor%,$and($strcmp(1,$get(conductor))))
|$if(%recordingdates%,$and($strcmp(1,$get(recordingdates))))
|$if(%fileowner%,$and($strcmp(1,$get(fileowner))))
,$get(spacer)
$char(1)C$get(headline)Additional Info$char(10)
$if($strcmp(1,$get(comment)),$if(%comment%,$get(info)Comment: $get(text)%comment%$char(10)))
$if($strcmp(1,$get(wwwartist)),$if(%wwwartist%,$get(info)Web: $get(text)%wwwartist%$char(10)))
$if($strcmp(1,$get(publisher)),$if(%publisher%,$get(info)Publisher: $get(text)%publisher%$char(10)))
$if($strcmp(1,$get(language)),$if(%language%,$get(info)Language: $get(text)%language%$char(10)))
$if($strcmp(1,$get(composer)),$if(%composer%,$get(info)Composer: $get(text)%composer%$char(10)))
$if($strcmp(1,$get(lyricist)),$if(%lyricist%,$get(info)Lyricist: $get(text)%lyricist%$char(10)))
$if($strcmp(1,$get(conductor)),$if(%conductor%,$get(info)Conductor: $get(text)%conductor%$char(10)))
$if($strcmp(1,$get(contentgroup)),$if(%contentgroup%,$get(info)Group: $get(text)%contentgroup%$char(10)))
$if($strcmp(1,$get(recordingdates)),$if(%recordingdates%,$get(info)Rec. Date: $get(text)%recordingdates%$char(10)))
$if($strcmp(1,$get(fileowner)),$if(%fileowner%,$get(info)Owner: $get(text)%fileowner%$char(10)))
))
// End Additional Info

// Tech Info
$if($strcmp(1,$get(show_techinfo)),
$get(spacer)
$char(1)C$get(headline)Tech Info$char(10)
$if($strcmp(1,$get(codec)),$get(info)Codec: $get(text)%__codec%$char(10))
$if($strcmp(1,$get(bitrate)),$get(info)Bitrate: $get(text)%__bitrate% Kbit/s$char(10))
$if($strcmp(1,$get(samplerate)),$get(info)Samplerate: $get(text)%__samplerate% Hz$char(10))
$if($strcmp(1,$get(channels)),$get(info)Channels: $get(text)$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,' 'Stereo,''Mono)),)$char(10))
$if($strcmp(1,$get(time_elapsed_total)),$get(info)Time: $get(text)%_time_elapsed% / %_time_total%$char(10))

$puts(size,5)
$if($strcmp(1,$get(trackgain)),$if(%__replaygain_track_gain%,$get(info)RG Track: $get(text)$cut(%__replaygain_track_gain%,$get(size)) dB$char(10)))
$if($strcmp(1,$get(albumgain)),$if(%__replaygain_album_gain%,$get(info)RG Album: $get(text)$cut(%__replaygain_album_gain%,$get(size)) dB$char(10)))

$puts(rating,1)
$puts(_rating,$repeat($get(rating_char),%rating%))
$if($strcmp(1,$get(rating)),$if(%rating%,$get(info)Rating: $get(text) $get(_rating) $get(grayed)'('%rating%')'$char(10)))

$if($strcmp(1,$get(play_counter)),$if(%play_counter%,$get(info)Played $get(text)%play_counter%$get(info) times.$char(10)))
$if($strcmp(1,$get(play_date)),$if(%play_date%,$get(info)Last played: $get(text)%play_date%$char(10)))
$if($strcmp(1,$get(encodedby)),$if(%encodedby%,$get(info)Encoded by: $get(text)%encodedby%$char(10)))
$if($strcmp(1,$get(encodersettings)),$if(%encodersettings%,$get(info)Encoder Settings: $get(text)%encodersettings%$char(10)))

// formating filesize string by upNorth
$if($strcmp(1,$get(filesize)),$get(info)Filesize: $get(text)$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2)' MB'$char(10))
$if($strcmp(1,$get(filename_ext)),$get(info)File: $get(text)%_filename_ext%$char(10))
$if($strcmp(1,$get(mediatype)),$if(%mediatype%,$get(info)Mediatype: $get(text)%mediatype%$char(10)))
$if($strcmp(1,$get(size)),$if(%size%,$get(info)Size: $get(text)%size%$char(10)))
$if($strcmp(1,$get(songlen)),$if(%songlen%,$get(info)Length: $get(text)%songlen%$char(10)))
$if($strcmp(1,$get(time)),$if(%time%,$get(info)Time: $get(text)%time%$char(10)))
)
// End Tech Info

// Web Info
$if($strcmp(1,$get(show_webinfo)),
$if($if(%wwwaudiofile%,$and($strcmp(1,$get(wwwaudiofile))))
|$if(%wwwcopyright%,$and($strcmp(1,$get(wwwcopyright))))
|$if(%wwwcommercialinfo%,$and($strcmp(1,$get(wwwcommercialinfo))))
|$if(%wwwpayment%,$and($strcmp(1,$get(wwwpayment))))
|$if(%wwwpublisher%,$and($strcmp(1,$get(wwwpublisher))))
|$if(%wwwuser%,$and($strcmp(1,$get(wwwuser))))
|$if(%wwwradiopage%,$and($strcmp(1,$get(wwwradiopage))))
|$if(%netradioowner%,$and($strcmp(1,$get(netradioowner))))
|$if(%netradiostation%,$and($strcmp(1,$get(netradiostation))))
,$get(spacer)

// Web Related
$if($strcmp(1,$get(show_webrelated)),
$if($if(%wwwaudiofile%,$and($strcmp(1,$get(wwwaudiofile))))
|$if(%wwwcopyright%,$and($strcmp(1,$get(wwwcopyright))))
|$if(%wwwcommercialinfo%,$and($strcmp(1,$get(wwwcommercialinfo))))
|$if(%wwwpayment%,$and($strcmp(1,$get(wwwpayment))))
|$if(%wwwpublisher%,$and($strcmp(1,$get(wwwpublisher))))
|$if(%wwwuser%,$and($strcmp(1,$get(wwwuser))))
,
$char(1)C$get(headline)Web Info$char(10)
$if($strcmp(1,$get(wwwaudiofile)),$if(%wwwaudiofile%,$get(info)File: $get(text)%wwwaudiofile%$char(10)))
$if($strcmp(1,$get(wwwcopyright)),$if(%wwwcopyright%,$get(info)© $get(text)%wwwcopyright%$char(10)))
$if($strcmp(1,$get(wwwaudiosource)),$if(%wwwaudiosource%,$get(info)Source: $get(text)%wwwaudiosource%$char(10)))
$if($strcmp(1,$get(wwwcommercialinfo)),$if(%wwwcommercialinfo%,$get(info)Info: $get(text)%wwwcommercialinfo%$char(10)))
$if($strcmp(1,$get(wwwpayment)),$if(%wwwpayment%,$get(info)Payment: $get(text)%wwwpayment%$char(10)))
$if($strcmp(1,$get(wwwpublisher)),$if(%wwwpublisher%,$get(info)Publisher: $get(text)%wwwpublisher%$char(10)))
$if($strcmp(1,$get(wwwuser)),$if(%wwwuser%,$get(info)User: $get(text)%wwwuser%$char(10)))
$char(10))
)
// End Web Info

// Net Radio Ifno
$if($strcmp(1,$get(show_netradioinfo)),

$if($if(%wwwradiopage%,$and($strcmp(1,$get(wwwradiopage))))
|$if(%netradioowner%,$and($strcmp(1,$get(netradioowner))))
|$if(%netradiostation%,$and($strcmp(1,$get(netradiostation))))
,$char(1)C$get(headline)NetRadio Info$char(10)
$if($strcmp(1,$get(wwwradiopage)),$if(%wwwradiopage%,$get(info)Page: $get(text)%wwwradiopage%$char(10)))
$if($strcmp(1,$get(netradioowner)),$if(%netradioowner%,$get(info)Owner: $get(text)%netradioowner%$char(10)))
$if($strcmp(1,$get(netradiostation)),$if(%netradiostation%,$get(info)Station: $get(text)%netradiostation%$char(10))))
)))
// End - Web Related

// Misc Info
$if($strcmp(1,$get(show_miscinfo)),
$if($if(%subtitle%,$and($strcmp(1,$get(subtitle))))
|$if(%involvedpeople%,$and($strcmp(1,$get(involvedpeople))))
|$if(%playlistdelay%,$and($strcmp(1,$get(playlistdelay))))
|$if(%initialkey%,$and($strcmp(1,$get(initialkey))))
|$if(%isrc%,$and($strcmp(1,$get(isrc))))
|$if(%partinset%,$and($strcmp(1,$get(partinset))))
,$get(spacer)
$char(1)C$get(headline)Misc Info$char(10)
$if($strcmp(1,$get(subtitle)),$if(%subtitle%,$get(info)Subtitle: $get(text)%subtitle%$char(10)))
$if($strcmp(1,$get(involvedpeople)),$if(%involvedpeople%,$get(info)Involved People: $get(text)%involvedpeople%$char(10)))
$if($strcmp(1,$get(playlistdelay)),$if(%playlistdelay%,$get(info)Playlistdelay: $get(text)%playlistdelay%$char(10)))
$if($strcmp(1,$get(initialkey)),$if(%initialkey%,$get(info)Initialkey: $get(text)%initialkey%$char(10)))
$if($strcmp(1,$get(isrc)),$if(%isrc%,$get(info)ISRC: $get(text)%isrc%$char(10)))
$if($strcmp(1,$get(partinset)),$if(%partinset%,$get(info)Partinset: $get(text)%partinset%$char(10)))
))
// End Misc Info

// Original Info
$if($strcmp(1,$get(show_originalinfo)),
$if($if(%origartist%,$and($strcmp(1,$get(origartist))))
|$if(%origyear%,$and($strcmp(1,$get(origyear))))
|$if(%origlyricist%,$and($strcmp(1,$get(origlyricist))))
|$if(%origfilename%,$and($strcmp(1,$get(origfilename))))
,$get(spacer)
$char(1)C$get(headline)Original Info$char(10)
$if($strcmp(1,$get(origartist)),$if(%origartist%,$get(info)Artist: $get(text)%origartist%$char(10)))
$if($strcmp(1,$get(origyear)),$if(%origyear%,$get(info)Year: $get(text)%origyear%$char(10)))
$if($strcmp(1,$get(origlyricist)),$if(%origlyricist%,$get(info)Lyricist: $get(text)%origlyricist%$char(10)))
$if($strcmp(1,$get(origfilename)),$if(%origfilename%,$get(info)Filename: $get(text)%origfilename%$char(10)))
))

Screenshot:

Let me know what you think about it (and any bugs too).
Lycox

moderation: changed [ code ] into [ codebox ]

 

foo_uie_trackinfo

Reply #152
looks nice.. xD .. great work

foo_uie_trackinfo

Reply #153
To lycos

I see two bugs, not in your configuration, but in plugin trackinfo.

1. If I paused play and exit Foobar, then start it again - I see in Time section "?/?"

2. If I use playlist_tree plugin and enable "Decueue last played", when current song ended and deleted from playlist, in next song information - I see in Time section "?/?"

pIv

foo_uie_trackinfo

Reply #154
that's not a bug ... it's something that can be fixed in the string.

from titleformat_help.html: %_time_total% / %_time_total_seconds% get data from playback core while %_length% / %_length_seconds%

(info from playback core is not available when the song is not being played or read by playback core, so you should use info from db in that case)

you can for example replace:
Code: [Select]
$if($strcmp(1,$get(time_elapsed_total)),$get(info)Time: $get(text)%_time_elapsed% / %_time_total%$char(10))

with:
Code: [Select]
$if($strcmp(1,$get(time_elapsed_total)),$get(info)Time: $get(text)$if(%_time_elapsed%,%_time_elapsed% / %_time_total%,%_length%)$char(10))

foo_uie_trackinfo

Reply #155
anyways to make another mode except "follow cursor"?

foo_uie_trackinfo

Reply #156
Quote
that's not a bug ... it's something that can be fixed in the string.

from titleformat_help.html: %_time_total% / %_time_total_seconds% get data from playback core while %_length% / %_length_seconds%

(info from playback core is not available when the song is not being played or read by playback core, so you should use info from db in that case)

you can for example replace:
Code: [Select]
$if($strcmp(1,$get(time_elapsed_total)),$get(info)Time: $get(text)%_time_elapsed% / %_time_total%$char(10))

with:
Code: [Select]
$if($strcmp(1,$get(time_elapsed_total)),$get(info)Time: $get(text)$if(%_time_elapsed%,%_time_elapsed% / %_time_total%,%_length%)$char(10))

[a href="index.php?act=findpost&pid=266515"][{POST_SNAPBACK}][/a]



@mazy: Well, thanks alot.

@sMIK: Just double click in the trackinfo panel to change the mode.

foo_uie_trackinfo

Reply #157
To mazy and Lycox

Your decision is good, but when enable "Decueue last played" and Foobar switch to next song and delete from playlist previous one - the plugin trackinfo return frozen tags %title%, %tracknumber% and other from deleted song.

This is also when i delete song from playlist manually, when it played. After end of playing this song the information about next not displayed and displayed information about deleted song.

Only if I manually switch to any song the information about it display correct.

pIv

foo_uie_trackinfo

Reply #158
Quote
anyways to make another mode except "follow cursor"?
[a href="index.php?act=findpost&pid=266529"][{POST_SNAPBACK}][/a]
Double-click inside the TrackInfo panel.


foo_uie_trackinfo

Reply #159
Quote
anyways to make another mode except "follow cursor"?
[a href="index.php?act=findpost&pid=266529"][{POST_SNAPBACK}][/a]

use foo_temple
WBR,  Vitaliy I. Bogdanets
Foobar2000 - The way it's meant to be played

foo_uie_trackinfo

Reply #160
Quote
This is also when i delete song from playlist manually, when it played. After end of playing this song the information about next not displayed and displayed information about deleted song.

Only if I manually switch to any song the information about it display correct.
[a href="index.php?act=findpost&pid=266552"][{POST_SNAPBACK}][/a]

I think you're in "follow cursor," not "now playing" mode.

foo_uie_trackinfo

Reply #161
Quote
I don't think you'll ever be able to select/copy text though, sorry.
[a href="index.php?act=findpost&pid=254293"][{POST_SNAPBACK}][/a]
How about a compromise:  allow the user to copy the entire trackinfo text to the clipboard.  That should be fairly easy to implement.

foo_uie_trackinfo

Reply #162
Quote
Quote
I don't think you'll ever be able to select/copy text though, sorry.
[a href="index.php?act=findpost&pid=254293"][{POST_SNAPBACK}][/a]
How about a compromise:  allow the user to copy the entire trackinfo text to the clipboard.  That should be fairly easy to implement.
[a href="index.php?act=findpost&pid=266912"][{POST_SNAPBACK}][/a]
Can't you just use the standard copy command?
Preferences->Display->Title formatting->Copy command

foo_uie_trackinfo

Reply #163
Quote
Quote
Quote
I don't think you'll ever be able to select/copy text though, sorry.
[a href="index.php?act=findpost&pid=254293"][{POST_SNAPBACK}][/a]
How about a compromise:  allow the user to copy the entire trackinfo text to the clipboard.  That should be fairly easy to implement.
[a href="index.php?act=findpost&pid=266912"][{POST_SNAPBACK}][/a]
Can't you just use the standard copy command?
Preferences->Display->Title formatting->Copy command
[a href="index.php?act=findpost&pid=266915"][{POST_SNAPBACK}][/a]

Currently, I use the Copy command to grab basic info.  However, it would be nice to also be able to get full details from the track info panel.

foo_uie_trackinfo

Reply #164
Quote
I guess I should credit musicmusic too, the first code I posted was his with $left(,2) added to it...

Edit:
I guess this one is a little more accurate (last digit):
Code: [Select]
$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2)' MB'


edit2:
@Shadikka: There is a bug in your code.
Example: A file that should be 4.97MB is displayed as 4.102MB

Btw: I'm really tired at the moment, so everything I write should be taken with a grain of salt... 
[a href="index.php?act=findpost&pid=260385"][{POST_SNAPBACK}][/a]

Well the file sizes appear correct but it fails to sort correctly.

Like:



Goes from 1mb to 10mb to 15mb back to 2mb.

And:



Any help to get sorting working corectly would be great. I know the problem is that its doing the sort based on only the first digit "first", obviously but dont know how to fix. New to foobar custmizing.

Thanks a lot,
  Will
God Bless U.S.A

foo_uie_trackinfo

Reply #165
Why don't you just make it sort by %_filesize%? It should be enough.

foo_uie_trackinfo

Reply #166
and use something like $sub(1000000000,%_filesize%) to reverse it.

foo_uie_trackinfo

Reply #167
I've been thinking about this more and more, and I think a great feature would be to add support for reading lyrics from tags properly.  Since it's technically track information, support for some type of scrolling lyrics to music would be awesome.

Edit: When I think about it though, that would mean album art and stuff would then be brought into the track info realm.  Maybe this isn't such a good idea for a your plug-in as that would be bring it into a whole new category.

foo_uie_trackinfo

Reply #168
Hello all. I have a question.
The plisk formatting string has a special formatting for 3 digit tracknumbers. Is it possible to implement it to upNorth's config for foo_uie_trackinfo? The plisk string does the following: if there is a three-digit tracknumber, writes the #of the disc next to album info.

Code: [Select]
//-----formatting of 3 digit tracknumbers-----
$if($strcmp(3,$len2($get(t_tracknumber))),
$puts(t_disc,'Disc '$cut($get(t_tracknumber),1))
$puts(has_disc_info,1)
$puts(t_tracknumber,$substr($get(t_tracknumber),2,3))
$if($strcmp($get(t_tracknumber),01),$puts(is_first,1))
)
//--------------------------------------------

foo_uie_trackinfo

Reply #169
Because this is not what i want.

God Bless U.S.A

foo_uie_trackinfo

Reply #170
@war59312

Hmh, could you maybe explain to me what your last two posts have to do with foo_uie_trackinfo?

Could be I overlooked something, but I somehow fail to see the connection.

foo_uie_trackinfo

Reply #171
Quote
Hey guys,

I did another code for track info panel. Highly customizeable I guess. Look at the config part.

Code: [Select]
// Highly customizeable track information made by Lycox

// Credits:
// Peter Pawlowski for great fb2k
// Free - for great progressbar
// upNorth - for filesize string
// Looks quite good with Arial, 8pt bold

// ==============================================
// Global Config Part //

// Shows Song Info in track info panel
// 0 = No, 1 = Yes
$puts(show_songinfo,1)

// Show various informations in Song Info
// 0 = No, 1 = Yes
$puts(title,1)
$puts(artist,1)
$puts(mixartist,1)
$puts(band,1)
$puts(album,1)
$puts(tracknumber,1)
$puts(genre,1)
$puts(bpm,1)
$puts(date,1)
$puts(copyright,1)


// Shows Additional Info in track info panel
// 0 = No, 1 = Yes
$puts(show_additionalinfo,1)

// Show various informations in Additional Info
// 0 = No, 1 = Yes
$puts(comment,1)
$puts(wwwartist,1)
$puts(publisher,1)
$puts(language,1)
$puts(composer,1)
$puts(lyricist,1)
$puts(conductor,1)
$puts(recordingdates,1)
$puts(fileowner,1)


// Shows Technical Info in track info panel
// 0 = No, 1 = Yes
$puts(show_techinfo,1)

// Show various informations in Tech Info
// 0 = No, 1 = Yes
$puts(codec,1)
$puts(bitrate,1)
$puts(samplerate,1)
$puts(channels,1)
$puts(time_elapsed_total,1)
$puts(trackgain,1)
$puts(albumgain,1)
$puts(rating,1)
$puts(play_counter,1)
$puts(play_date,1)
$puts(encodedby,1)
$puts(encodersettings,1)
$puts(filesize,1)
// hidden, because not really needed
$puts(filename_ext,0)
$puts(mediatype,0)
$puts(size,0)
$puts(songlen,0)
$puts(time,0)


// Shows Web Info in track info panel
// 0 = No, 1 = Yes
$puts(show_webinfo,1)

// Shows Web Related Infos in Web Info
// 0 = No, 1 = Yes
$puts(show_webrelated,1)

// Show various informations in Web Info
// 0 = No, 1 = Yes
$puts(wwwaudiofile,1)
$puts(wwwcopyright,1)
$puts(wwwcommercialinfo,1)
$puts(wwwpayment,1)
$puts(wwwpublisher,1)
$puts(wwwuser,1)

// Shows NetRadio Info in Web Info
// 0 = No, 1 = Yes
$puts(show_netradioinfo,1)

// Show various informations in NetRadio Info
// 0 = No, 1 = Yes
$puts(wwwradiopage,1)
$puts(netradioowner,1)
$puts(netradiostation,1)


// Shows Misc Info in track info panel
// 0 = No, 1 = Yes
$puts(show_miscinfo,1)

// Show various informations in Misc Info
// 0 = No, 1 = Yes
$puts(subtitle,1)
$puts(involvedpeople,1)
$puts(playlistdelay,0)
$puts(initialkey,0)
$puts(isrc,0)
$puts(partinset,0)


// Shows Original Info in track info panel
// 0 = No, 1 = Yes
$puts(show_originalinfo,1)

// Show various informations in Original Info
// 0 = No, 1 = Yes
$puts(origartist,1)
$puts(origyear,1)
$puts(origlyricist,1)
$puts(origfilename,1)

// Spacer
$puts(spacer,d6d6d6------------------------------------------------------------------------------------------$char(10))

// color codes
$puts(headline,256d3d)
$puts(info,ec9184)
$puts(text,000000)
$puts(grayed,c8c8c8)

// chars
$puts(rating_char,♪)
$puts(progress_char,●)

// End Global Config
// ==============================================


DCAE8DMode: %_trackinfo_mode%$char(10)$if(%_trackinfo_notrack%,No track,

// progressbar config
$puts(theme,1)
$puts(progress_length,18)

$if($strcmp($get(theme),1),
$puts(progress_color1,ff6d66)
$puts(progress_color2,ffe1df)
)


// PREPARE COLOR-STRINGS
// =========================================
$puts(progress_color1a,$blend($get(progress_color1),000000,1,4.5))
$puts(progress_color2a,$blend($get(progress_color2),000000,1,5.7))
// progressbar
$puts(progressbar,
$if(%_length_seconds%,

$puts(progress,$muldiv(%_time_elapsed_seconds%,$get(progress_length),%_length_seconds%))
$transition($repeat($get(progress_char),$get(progress)),$get(progress_color1a),$get(progress_color1))
$transition($repeat($get(progress_char),$sub($get(progress_length),$get(progress))),$get(progress_color2a),$get(progress_color2))
$pad_right($muldiv(%_time_elapsed_seconds%,100,%_length_seconds%),3)'%'
,streaming...
))

$get(progressbar))$char(10)

// Song Info
$if($strcmp(1,$get(show_songinfo)),
$get(spacer)
$char(1)C$get(headline)Song Info$char(10)
$if($strcmp(1,$get(title)),$get(info)Title: $get(text)$if(%title%,%title%,$get(grayed)'['No Title']')$char(10))
$if($strcmp(1,$get(artist)),$get(info)Artist: $get(text)$if(%artist%,%artist%,$get(grayed)'['Unknown Artist']')$char(10))
$if($strcmp(1,$get(mixartist))
|$strcmp(1,$get(band))
,
$if($strcmp(1,$get(mixartist)),$if(%mixartist%,$get(info)MixArtist: $get(text)%mixartist%$char(10)))
$if($strcmp(1,$get(band)),$if(%band%,$get(info)Band: $get(text)%band%$char(10))))
$if($strcmp(1,$get(album)),$if(%album%,$get(info)Album: $get(text)%album%$char(10)))
$if($strcmp(1,$get(tracknumber)),$if(%tracknumber%,$get(info)Track: $get(text)%tracknumber%$char(10)))
$if($strcmp(1,$get(genre)),$if(%genre%,$get(info)Genre: $get(text)%genre%$char(10)))
$if($strcmp(1,$get(bpm)),$if(%bpm%,$get(info)bpm: $get(text)%bpm%$char(10)))
$if($strcmp(1,$get(date)),$if(%date%,$get(info)Date: $get(text)%date%$char(10)))
$if($strcmp(1,$get(copyright)),$if(%copyright%,$get(info)© $get(text)%copyright%$char(10)))
)
// End Song Info

// Additional Info
$if($strcmp(1,$get(show_additionalinfo)),
$if($if(%comment%,$and($strcmp(1,$get(comment))))
|$if(%wwwartist%,$and($strcmp(1,$get(wwwartist))))
|$if(%publisher%,$and($strcmp(1,$get(publisher))))
|$if(%language%,$and($strcmp(1,$get(language))))
|$if(%composer%,$and($strcmp(1,$get(composer))))
|$if(%lyricist%,$and($strcmp(1,$get(lyricist))))
|$if(%conductor%,$and($strcmp(1,$get(conductor))))
|$if(%recordingdates%,$and($strcmp(1,$get(recordingdates))))
|$if(%fileowner%,$and($strcmp(1,$get(fileowner))))
,$get(spacer)
$char(1)C$get(headline)Additional Info$char(10)
$if($strcmp(1,$get(comment)),$if(%comment%,$get(info)Comment: $get(text)%comment%$char(10)))
$if($strcmp(1,$get(wwwartist)),$if(%wwwartist%,$get(info)Web: $get(text)%wwwartist%$char(10)))
$if($strcmp(1,$get(publisher)),$if(%publisher%,$get(info)Publisher: $get(text)%publisher%$char(10)))
$if($strcmp(1,$get(language)),$if(%language%,$get(info)Language: $get(text)%language%$char(10)))
$if($strcmp(1,$get(composer)),$if(%composer%,$get(info)Composer: $get(text)%composer%$char(10)))
$if($strcmp(1,$get(lyricist)),$if(%lyricist%,$get(info)Lyricist: $get(text)%lyricist%$char(10)))
$if($strcmp(1,$get(conductor)),$if(%conductor%,$get(info)Conductor: $get(text)%conductor%$char(10)))
$if($strcmp(1,$get(contentgroup)),$if(%contentgroup%,$get(info)Group: $get(text)%contentgroup%$char(10)))
$if($strcmp(1,$get(recordingdates)),$if(%recordingdates%,$get(info)Rec. Date: $get(text)%recordingdates%$char(10)))
$if($strcmp(1,$get(fileowner)),$if(%fileowner%,$get(info)Owner: $get(text)%fileowner%$char(10)))
))
// End Additional Info

// Tech Info
$if($strcmp(1,$get(show_techinfo)),
$get(spacer)
$char(1)C$get(headline)Tech Info$char(10)
$if($strcmp(1,$get(codec)),$get(info)Codec: $get(text)%__codec%$char(10))
$if($strcmp(1,$get(bitrate)),$get(info)Bitrate: $get(text)%__bitrate% Kbit/s$char(10))
$if($strcmp(1,$get(samplerate)),$get(info)Samplerate: $get(text)%__samplerate% Hz$char(10))
$if($strcmp(1,$get(channels)),$get(info)Channels: $get(text)$if(%__channels%,$ifgreater(%__channels%,2,%__channels%ch,$ifgreater(%__channels%,1,' 'Stereo,''Mono)),)$char(10))
$if($strcmp(1,$get(time_elapsed_total)),$get(info)Time: $get(text)%_time_elapsed% / %_time_total%$char(10))

$puts(size,5)
$if($strcmp(1,$get(trackgain)),$if(%__replaygain_track_gain%,$get(info)RG Track: $get(text)$cut(%__replaygain_track_gain%,$get(size)) dB$char(10)))
$if($strcmp(1,$get(albumgain)),$if(%__replaygain_album_gain%,$get(info)RG Album: $get(text)$cut(%__replaygain_album_gain%,$get(size)) dB$char(10)))

$puts(rating,1)
$puts(_rating,$repeat($get(rating_char),%rating%))
$if($strcmp(1,$get(rating)),$if(%rating%,$get(info)Rating: $get(text) $get(_rating) $get(grayed)'('%rating%')'$char(10)))

$if($strcmp(1,$get(play_counter)),$if(%play_counter%,$get(info)Played $get(text)%play_counter%$get(info) times.$char(10)))
$if($strcmp(1,$get(play_date)),$if(%play_date%,$get(info)Last played: $get(text)%play_date%$char(10)))
$if($strcmp(1,$get(encodedby)),$if(%encodedby%,$get(info)Encoded by: $get(text)%encodedby%$char(10)))
$if($strcmp(1,$get(encodersettings)),$if(%encodersettings%,$get(info)Encoder Settings: $get(text)%encodersettings%$char(10)))

// formating filesize string by upNorth
$if($strcmp(1,$get(filesize)),$get(info)Filesize: $get(text)$div(%_filesize%,1048576).$left($num($muldiv($mod(%_filesize%,1048576),1000,1048576),3),2)' MB'$char(10))
$if($strcmp(1,$get(filename_ext)),$get(info)File: $get(text)%_filename_ext%$char(10))
$if($strcmp(1,$get(mediatype)),$if(%mediatype%,$get(info)Mediatype: $get(text)%mediatype%$char(10)))
$if($strcmp(1,$get(size)),$if(%size%,$get(info)Size: $get(text)%size%$char(10)))
$if($strcmp(1,$get(songlen)),$if(%songlen%,$get(info)Length: $get(text)%songlen%$char(10)))
$if($strcmp(1,$get(time)),$if(%time%,$get(info)Time: $get(text)%time%$char(10)))
)
// End Tech Info

// Web Info
$if($strcmp(1,$get(show_webinfo)),
$if($if(%wwwaudiofile%,$and($strcmp(1,$get(wwwaudiofile))))
|$if(%wwwcopyright%,$and($strcmp(1,$get(wwwcopyright))))
|$if(%wwwcommercialinfo%,$and($strcmp(1,$get(wwwcommercialinfo))))
|$if(%wwwpayment%,$and($strcmp(1,$get(wwwpayment))))
|$if(%wwwpublisher%,$and($strcmp(1,$get(wwwpublisher))))
|$if(%wwwuser%,$and($strcmp(1,$get(wwwuser))))
|$if(%wwwradiopage%,$and($strcmp(1,$get(wwwradiopage))))
|$if(%netradioowner%,$and($strcmp(1,$get(netradioowner))))
|$if(%netradiostation%,$and($strcmp(1,$get(netradiostation))))
,$get(spacer)

// Web Related
$if($strcmp(1,$get(show_webrelated)),
$if($if(%wwwaudiofile%,$and($strcmp(1,$get(wwwaudiofile))))
|$if(%wwwcopyright%,$and($strcmp(1,$get(wwwcopyright))))
|$if(%wwwcommercialinfo%,$and($strcmp(1,$get(wwwcommercialinfo))))
|$if(%wwwpayment%,$and($strcmp(1,$get(wwwpayment))))
|$if(%wwwpublisher%,$and($strcmp(1,$get(wwwpublisher))))
|$if(%wwwuser%,$and($strcmp(1,$get(wwwuser))))
,
$char(1)C$get(headline)Web Info$char(10)
$if($strcmp(1,$get(wwwaudiofile)),$if(%wwwaudiofile%,$get(info)File: $get(text)%wwwaudiofile%$char(10)))
$if($strcmp(1,$get(wwwcopyright)),$if(%wwwcopyright%,$get(info)© $get(text)%wwwcopyright%$char(10)))
$if($strcmp(1,$get(wwwaudiosource)),$if(%wwwaudiosource%,$get(info)Source: $get(text)%wwwaudiosource%$char(10)))
$if($strcmp(1,$get(wwwcommercialinfo)),$if(%wwwcommercialinfo%,$get(info)Info: $get(text)%wwwcommercialinfo%$char(10)))
$if($strcmp(1,$get(wwwpayment)),$if(%wwwpayment%,$get(info)Payment: $get(text)%wwwpayment%$char(10)))
$if($strcmp(1,$get(wwwpublisher)),$if(%wwwpublisher%,$get(info)Publisher: $get(text)%wwwpublisher%$char(10)))
$if($strcmp(1,$get(wwwuser)),$if(%wwwuser%,$get(info)User: $get(text)%wwwuser%$char(10)))
$char(10))
)
// End Web Info

// Net Radio Ifno
$if($strcmp(1,$get(show_netradioinfo)),

$if($if(%wwwradiopage%,$and($strcmp(1,$get(wwwradiopage))))
|$if(%netradioowner%,$and($strcmp(1,$get(netradioowner))))
|$if(%netradiostation%,$and($strcmp(1,$get(netradiostation))))
,$char(1)C$get(headline)NetRadio Info$char(10)
$if($strcmp(1,$get(wwwradiopage)),$if(%wwwradiopage%,$get(info)Page: $get(text)%wwwradiopage%$char(10)))
$if($strcmp(1,$get(netradioowner)),$if(%netradioowner%,$get(info)Owner: $get(text)%netradioowner%$char(10)))
$if($strcmp(1,$get(netradiostation)),$if(%netradiostation%,$get(info)Station: $get(text)%netradiostation%$char(10))))
)))
// End - Web Related

// Misc Info
$if($strcmp(1,$get(show_miscinfo)),
$if($if(%subtitle%,$and($strcmp(1,$get(subtitle))))
|$if(%involvedpeople%,$and($strcmp(1,$get(involvedpeople))))
|$if(%playlistdelay%,$and($strcmp(1,$get(playlistdelay))))
|$if(%initialkey%,$and($strcmp(1,$get(initialkey))))
|$if(%isrc%,$and($strcmp(1,$get(isrc))))
|$if(%partinset%,$and($strcmp(1,$get(partinset))))
,$get(spacer)
$char(1)C$get(headline)Misc Info$char(10)
$if($strcmp(1,$get(subtitle)),$if(%subtitle%,$get(info)Subtitle: $get(text)%subtitle%$char(10)))
$if($strcmp(1,$get(involvedpeople)),$if(%involvedpeople%,$get(info)Involved People: $get(text)%involvedpeople%$char(10)))
$if($strcmp(1,$get(playlistdelay)),$if(%playlistdelay%,$get(info)Playlistdelay: $get(text)%playlistdelay%$char(10)))
$if($strcmp(1,$get(initialkey)),$if(%initialkey%,$get(info)Initialkey: $get(text)%initialkey%$char(10)))
$if($strcmp(1,$get(isrc)),$if(%isrc%,$get(info)ISRC: $get(text)%isrc%$char(10)))
$if($strcmp(1,$get(partinset)),$if(%partinset%,$get(info)Partinset: $get(text)%partinset%$char(10)))
))
// End Misc Info

// Original Info
$if($strcmp(1,$get(show_originalinfo)),
$if($if(%origartist%,$and($strcmp(1,$get(origartist))))
|$if(%origyear%,$and($strcmp(1,$get(origyear))))
|$if(%origlyricist%,$and($strcmp(1,$get(origlyricist))))
|$if(%origfilename%,$and($strcmp(1,$get(origfilename))))
,$get(spacer)
$char(1)C$get(headline)Original Info$char(10)
$if($strcmp(1,$get(origartist)),$if(%origartist%,$get(info)Artist: $get(text)%origartist%$char(10)))
$if($strcmp(1,$get(origyear)),$if(%origyear%,$get(info)Year: $get(text)%origyear%$char(10)))
$if($strcmp(1,$get(origlyricist)),$if(%origlyricist%,$get(info)Lyricist: $get(text)%origlyricist%$char(10)))
$if($strcmp(1,$get(origfilename)),$if(%origfilename%,$get(info)Filename: $get(text)%origfilename%$char(10)))
))

Screenshot:

Let me know what you think about it (and any bugs too).
Lycox

moderation: changed [ code ] into [ codebox ]
[a href=\"index.php?act=findpost&pid=266314\"][{POST_SNAPBACK}][/a]

Code: [Select]
// Spacer
$puts(spacer,52525------------------------------------------------------------------------------------------$char(10))

// color codes
$puts(headline,4380f4)
$puts(info,b29078)
$puts(text,000000)
$puts(grayed,525252)

// chars
$puts(rating_char,♪)
$puts(progress_char,▪)

// End Global Config
// ==============================================


b29078Mode: %_trackinfo_mode%$char(10)$if(%_trackinfo_notrack%,No track,

// progressbar config
$puts(theme,1)
$puts(progress_length,18)

$if($strcmp($get(theme),1),
$puts(progress_color1,85b194)
$puts(progress_color2,2accff)
)
)

My little piece of HmmXP color theme, just find the strings and copy paste them into it.  _O_ thnx Lycox _O_

foo_uie_trackinfo

Reply #172
Quote
Because this is not what i want.
http://img178.exs.cx/img178/1761/mp34dd.png
[a href="index.php?act=findpost&pid=267784"][{POST_SNAPBACK}][/a]

Put your display string under the "display" tab for the size column, then use %_filesize% in the "sort" tab.

PS. Ever heard of [url]?

foo_uie_trackinfo

Reply #173
Quote
Hello all. I have a question.
The plisk formatting string has a special formatting for 3 digit tracknumbers. Is it possible to implement it to upNorth's config for foo_uie_trackinfo? The plisk string does the following: if there is a three-digit tracknumber, writes the #of the disc next to album info.

Code: [Select]
//-----formatting of 3 digit tracknumbers-----
$if($strcmp(3,$len2($get(t_tracknumber))),
$puts(t_disc,'Disc '$cut($get(t_tracknumber),1))
$puts(has_disc_info,1)
$puts(t_tracknumber,$substr($get(t_tracknumber),2,3))
$if($strcmp($get(t_tracknumber),01),$puts(is_first,1))
)
//--------------------------------------------
[a href="index.php?act=findpost&pid=267782"][{POST_SNAPBACK}][/a]


In my formatting, replace this line:
Code: [Select]
'Album: '$get(c_t1b)$replace($meta(album),'(',$get(c_3)'(',')',')'$get(c_t1b),'[',$get(c_3)'[',']',']'$get(c_t1b))FFFFFF|FFFFFF[' disc '$meta(disc)][' '''$meta(discname)'']$char(10)
with this:
Code: [Select]
'Album: '$get(c_t1b)$replace($meta(album),'(',$get(c_3)'(',')',')'$get(c_t1b),'[',$get(c_3)'[',']',']'$get(c_t1b))FFFFFF|FFFFFF$if(%disc%,' disc '%disc%,$ifgreater($len($tracknumber()),2,' disc '$left($tracknumber(),1),))[' '''$meta(discname)'']$char(10)


and
Code: [Select]
'Tracknumber: '$get(c_t1b)$tracknumber(1)$char(10)
with:
Code: [Select]
'Tracknumber: '$get(c_t1b)$ifgreater($len($tracknumber()),2,$right($tracknumber(),2),$tracknumber(1))$char(10)


No guarantee, as I hardly tested it, and just threw it together.

foo_uie_trackinfo

Reply #174
Thank you!

Is it possible to put left and right parenthesis next to the text? I tried, but i failed...
disc 1 -> (Disc 1)