HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: yanni on 2006-06-12 14:16:45

Title: foo_navigator
Post by: yanni on 2006-06-12 14:16:45
Since foobar2000 0.9 has been lacking a functional history component, I decided to take a try and make my own. By now it just provides commands to go back and forward and show the recently played tracks.
(Maybe I'll get to create a custom panel, but this would certainly take some time and for the time being I will only do some small bugfixes and additions)

For more information and downloads go to my page (http://mry.awardspace.com/fb2k/foo_navigator.htm).
Title: foo_navigator
Post by: roentgen on 2006-06-12 14:58:11
nice idea
but...
Quote
Error!
Could not connect to remote server

I've tried for the last 5 minutes
Title: foo_navigator
Post by: ARiel G. on 2006-06-12 15:17:44
Some improvments:

1) Beside the option "Seconds to wait", amore flexable option would be "Precenge (%) to wait".

2) An option to an automatic creation of History playlist without to press "View history" in a submenu.

3) Maybe an option to mark in the DB the track history to interact with foo_autoplaylist.

Thanks, I will reguard for feutre releases.
Title: foo_navigator
Post by: yanni on 2006-06-12 22:35:46
Quote
Error!
Could not connect to remote server
I've tried for the last 5 minutes

No problems over here. Does anybody else get this error?


1) Beside the option "Seconds to wait", amore flexable option would be "Precenge (%) to wait".
2) An option to an automatic creation of History playlist without to press "View history" in a submenu.

Done
Not quite sure about number 3, what exactly do you mean? I think most of such things can be done with Playback Statistics.
Title: foo_navigator
Post by: roentgen on 2006-06-12 22:37:41
still cannot connect
please could use the Uploads subforum and post there?
This is badly needed
Title: foo_navigator
Post by: kockroach on 2006-06-12 22:43:39
Strange, I can get there no problem.  Browser problem instead?
Title: foo_navigator
Post by: roentgen on 2006-06-12 22:49:43
Strange, I can get there no problem.  Browser problem instead?

tried Opera, Firefox, IE ()
ping says 'Request timed out.'
must be some damn ISP problem
Title: foo_navigator
Post by: ladiko on 2006-06-12 23:01:42
ping says 'Request timed out.'
must be some damn ISP problem
same here with lycos dsl (telekom backbone). i think röntgen is also a german. try this --> http://anonymouse.org/cgi-bin/anon-www_de....o_navigator.htm (http://anonymouse.org/cgi-bin/anon-www_de.cgi/http://mry.awardspace.com/fb2k/foo_navigator.htm) this works for me.
Title: foo_navigator
Post by: yanni on 2006-06-12 23:05:14
still cannot connect :(
please could use the Uploads subforum and post there?

OK, here (http://www.hydrogenaudio.org/forums/index.php?showtopic=45616) it is.

Quote
same here with lycos dsl (telekom backbone). i think röntgen is also a german.

Well, I'm german, too. However, using T-Online.
Title: foo_navigator
Post by: ARiel G. on 2006-06-13 06:48:26
Another improvments:
1) May you add an option to choise the adding order of the tracks to the playlist, last to newest or newest to last.

2) when I close (or remove in fb2k terminology) the history playlist - all past history dissapear. more over i can change the order or delete items from the playlist, can it possibole to make it untouchable by choise?

3) adding a new button/feature: Clear history.

4) What is the function of "History size:"? is it the size of the history you can get via the buttons press? it have no effect on the History playlist. so if i don't use the buttons i can reduce it to zero?

Thanx a lot, the other feature work very well, it just what whe need :-)
Title: foo_navigator
Post by: ww2 on 2006-06-18 19:42:38
Great plugin, working perfectly so far (much better than foo_history, also - the option to control waiting time is great). I hope you continue to develop it. Kudos.
Title: foo_navigator
Post by: q-stankovic on 2006-06-21 20:32:16
Nice plugin!

The only improvement i would love to see is a reversed playlist where the newest tracks are on the top.

A bigger request i must admit: Introducing a database-only tag (saved in cfg.file f.e.) %_play_stamp%. So you would even have a column for displaying the date & time when a song was played. That tag would have to be a multiple oneand could be used for other purposes too!

Thanks for the plugin!

EDIT: It would be logical to make the navigator playlist a locked one like the foo_history is!
Title: foo_navigator
Post by: Piet on 2006-08-19 16:11:24
Nice plugin!

I agree.
Quote
The only improvement i would love to see is a reversed playlist where the newest tracks are on the top.

I agree.
Quote
EDIT: It would be logical to make the navigator playlist a locked one like the foo_history is!

I agree.

Thank you very much for the plugin. 
Title: foo_navigator
Post by: milanorex on 2006-08-20 04:24:57
very cool plugin, thanks!

the only feature I would request would be for the 'foward' option to also act like the 'next' button when you reach the end of the history list. I like going back a few songs, then skipping ahead to random songs with a global shortcut key. Thanks!
Title: foo_navigator
Post by: yanni on 2006-11-03 14:07:46
Hi,

I finally developed a new version, including a panel and custom dropdown buttons. I also made some of the improvements you suggested. Information and download of the component can be found on the same page (http://mry.awardspace.com/fb2k/foo_navigator.htm) as the first version.

Bye,
yanni

PS: I also posted an update to the uploads forum (http://www.hydrogenaudio.org/forums/index.php?showtopic=45616) for the ones unable to download from the page above.
Title: foo_navigator
Post by: sitemap on 2006-11-03 14:35:02
Coooooool, thanks for the panel version.

One tiny, little thing: the edge style option is missing
Title: foo_navigator
Post by: roentgen on 2006-11-03 15:37:53
Nice one. Thanks.

I see something about a toolbar in configuration but I can't seem to be able to activate it (the panel works as expected though), am I doing something wrong?
Title: foo_navigator
Post by: yanni on 2006-11-03 16:09:21
One tiny, little thing: the edge style option is missing

Done.

I see something about a toolbar in configuration but I can't seem to be able to activate it (the panel works as expected though), am I doing something wrong?

You need to open the Customise button dialog (for any button toolbar you'd like), add a new button, click Change and select the Buttons Command group.
Title: foo_navigator
Post by: Coppertop on 2006-11-03 17:26:24
Thanks for this plugin!
Title: foo_navigator
Post by: nightfishing on 2006-11-03 23:52:02
Hi,

I finally developed a new version, including a panel and custom dropdown buttons. I also made some of the improvements you suggested. Information and download of the component can be found on the same page (http://mry.awardspace.com/fb2k/foo_navigator.htm) as the first version.

Bye,
yanni


Nice work! I would like the history not to be reset whenever I close foobar, though. The playlist remains, so it is functional, for me, but the panel would be nice if it held the info.
Title: foo_navigator
Post by: Coppertop on 2006-11-04 01:14:10
I just noticed this as well just now. I would also like to request this feature. Thanks!


Hi,

I finally developed a new version, including a panel and custom dropdown buttons. I also made some of the improvements you suggested. Information and download of the component can be found on the same page (http://mry.awardspace.com/fb2k/foo_navigator.htm) as the first version.

Bye,
yanni


Nice work! I would like the history not to be reset whenever I close foobar, though. The playlist remains, so it is functional, for me, but the panel would be nice if it held the info.
Title: foo_navigator
Post by: Andreasvb on 2006-11-04 09:52:41
Don't know if it only me but the back dropdown button just adds the same songs on the same row, like this:
Quote
5. artist - title
5. artist - title4. artist - title
5. artist - title4. artist - title3. artist - title
5. artist - title4. artist - title3. artist - title2. artist - title
5. artist - title4. artist - title3. artist - title2. artist - title1. artist - title


foo_navigator.dll v0.5 [03 November 2006] - Navigator

My formatting is:
Code: [Select]
$num(%_history_number%,$len(%_history_number%)). %artist% - %title%
Title: foo_navigator
Post by: q-stankovic on 2006-11-04 12:53:41
I had a quick look and what confused me was whenever i started playback from the panel foo switched to the origin playlist. Navigator seems to remember the source playlist. The problem is: If a track inside the navigator panel doesn't belong to an playlist anymore no playback is possible anymore even if the track belongs to the history plugin. My suggestion: Let a doubleclick apply the "play" command from foo_utils.

Also one bug: Sometimes a playing track isn't send to the history panel/playlist. I will see if i can reproduce that.

And sure! The History should be kept! 
Title: foo_navigator
Post by: q-stankovic on 2006-11-04 15:45:22
I wrote:

The problem is: If a track inside the navigator panel doesn't belong to an playlist anymore no playback is possible anymore even if the track belongs to the history plugin. My suggestion: Let a doubleclick apply the "play" command from foo_utils.



On the other side some people like the behavior that the source of the tracks is remembered. So why not an option like "Play history item in its playlist":  If it is not checked a doubleclick always applies the "play" command and if it is checked the "play" command is is only then applied then the track doesn't belong to a playlist anymore.

Another feature request: Now in the panel version it would be useful to have a variable %_history_timestamp% (yyyy.mm.dd hh:mm:ss) which displays when the track was played.

Thanks for your work so far! 
Title: foo_navigator
Post by: yanni on 2006-11-04 20:19:15
There's now an option to remember the history across sessions.

@Andreasvb: That's very strange. I can't imagine what may be causing this behaviour. Are the forward button and the panel working fine? Are you using the latest versions of foobar2k and ColumnsUI.
Does anybody else experience this bug?

@q-stankovic: Unfortunately I don't know how foo_utils works; as far as I can see, there's no function in the SDK to play a track that's not inside a playlist. If anyone knows better, I may have a try.
Regarding the timestamp: Maybe this will be implemented in a future release, for the time being you may use foo_playcount as a replacement.
Title: foo_navigator
Post by: nightfishing on 2006-11-04 23:31:24
There's now an option to remember the history across sessions.


Thank you!
Title: foo_navigator
Post by: Andreasvb on 2006-11-05 11:53:15
@Andreasvb: That's very strange. I can't imagine what may be causing this behaviour. Are the forward button and the panel working fine? Are you using the latest versions of foobar2k and ColumnsUI.
Does anybody else experience this bug?


Everything should be the newest, if you need every component just tell me, here's the ones you req:
Quote
Core.dll v0.9.4.1 - foobar2000 core
foo_navigator.dll v0.6 [04 November 2006] - Navigator
foo_ui_columns.dll v0.1.3 beta 1v6 TEST [08 September 2006] - Columns UI


The forward looks just like back.
Panel looks good. Maybe use that code for buttons too.

One more thing, the playlist(panel works) adds beyond the limit, I've set it at 100. The playlist is right now at 180 entries.

Thanks for a great component.
Title: foo_navigator
Post by: yanni on 2006-11-05 13:06:52
I've uploaded a test version here (http://mry.awardspace.com/fb2k/download.php?file=foo_navigator_test.7z). If it still doesn't work, would you please post your console output after pressing the back dropdown.

One more thing, the playlist(panel works) adds beyond the limit, I've set it at 100. The playlist is right now at 180 entries.

This is intended, the limit only applies to the internal history and the panel, while the playlist rather acts as a log, where items are just added as they are played.
Title: foo_navigator
Post by: q-stankovic on 2006-11-05 13:22:13
@q-stankovic: Unfortunately I don't know how foo_utils works; as far as I can see, there's no function in the SDK to play a track that's not inside a playlist. If anyone knows better, I may have a try.


If foosions plugin foo_utils is installed there is a play command that is accessable by context menu -> Play: This command plays a track that is not inside a playlist.  I think to associate this command with a doubleclick in the panel or a simple click in the drop down button could be the most simple solution
Title: foo_navigator
Post by: Andreasvb on 2006-11-05 13:35:47
If it still doesn't work, would you please post your console output after pressing the back dropdown.

Here's my log after pressing back dropdown:
Code: [Select]
4. Sy & Unknown feat. Lou Lou - Dancing In The Shadows (1)
4. Sy & Unknown feat. Lou Lou - Dancing In The Shadows (2)
3. Insight feat. Amie Jayne - We Feel So High (Sy & Unknown Remix) (1)
3. Insight feat. Amie Jayne - We Feel So High (Sy & Unknown Remix) (2)
2. Nysse & Hinton feat. Pascale - Silver Water (Sy & Unknown Remix) (1)
2. Nysse & Hinton feat. Pascale - Silver Water (Sy & Unknown Remix) (2)
1. Cube Hard - Music Of The Primes (Gammer Edit) (1)
1. Cube Hard - Music Of The Primes (Gammer Edit) (2)


This is intended, the limit only applies to the internal history and the panel, while the playlist rather acts as a log, where items are just added as they are played.
Ok, got it. Thanks.
Title: foo_navigator
Post by: yanni on 2006-11-05 14:23:04
It seems like everything is working correctly, since the component is passing the right strings to ColumnsUI. I can't imagine what could go wrong after that, since it's doing fine on other machines.
All that I can advise now is to try with a clean install of fb2k.
Title: foo_navigator
Post by: Andreasvb on 2006-11-05 15:06:42
Tried with only these files, same thing

Code: [Select]
foo_input_std.dll
foo_navigator.dll
foo_ui_columns.dll
foobar2000.exe
libpng13.dll
shared.dll
zlib1.dll


Quote
CPU: AMD Athlon™ 64 Processor 3400+ [x86 Family 15 Model 4 Stepping 10] [DEP enabled]
Operating System: Windows Vista ™ Ultimate [version: 6.0.5840 ]
Installed RAM: 1022 MBytes
Free disk space on foobar2000 partition: 20518 MBytes
foobar2000 path: D:\Program Files\foobar2000\
Core version: foobar2000 v0.9.4.1
Title: foo_navigator
Post by: Andreasvb on 2006-11-06 00:13:30
I think I found the problem. If a track has "&" and/not "( )" or if a track after has "( )", then it adds like that.

(http://img153.imageshack.us/img153/2162/foonavigatorjy9.png)
Title: foo_navigator
Post by: yanni on 2006-11-11 13:37:17
@Andreasvb: OK, now I can reproduce this behaviour; it seems to be a bug in ColumnsUI, I already posted a report. As a workaround you could replace all & with something else by using the Title formatting setting.

@q-stankovic: I don't know how contextmenu items can be called from other components. If anybody else is aware of a way, please let me know.
Title: foo_navigator
Post by: Andreasvb on 2006-11-11 14:49:13
Thanks, working great now =)

Here's my format, if someone wants.
Code: [Select]
$num(%_history_number%,$len(%_history_number%)). $replace(%artist% - %title%,&,and))
Title: foo_navigator
Post by: 2Pacalypse on 2006-11-13 19:35:58
i read in a foo_hopper thread that this is like jump to file in winamp, just scanned the thread couldnt see anything?

is it just a history?
Title: foo_navigator
Post by: fabiospark on 2006-11-25 14:23:58
Can we have a %_history_datetime% associated to the logged items?

We mostly listen to randomized playlists and the jukebox runs from dawn to late night.
Some times, in the evening, the wife asks me to see what was that cute little song she heard last night at 1.30 while ironing.
In such a long time, I could have more than on instance of the same item but they both will have the same last played value.

Thanks.
Title: foo_navigator
Post by: q-stankovic on 2007-03-05 12:40:21
Unfortunately I don't know how foo_utils works; as far as I can see, there's no function in the SDK to play a track that's not inside a playlist. If anyone knows better, I may have a try.
Regarding the timestamp: Maybe this will be implemented in a future release, for the time being you may use foo_playcount as a replacement.


A simpler idea: Tracks without a playlist can be added to a specified playlist (f.e. Default) and then be played.

A small issue: $tab() is not working if you try to create more than 2 pseudo columns
Title: foo_navigator
Post by: The Judge on 2007-04-22 03:50:51
I would like to be able to middle-click a song in the History panel and have it added to the playback queue. I can do this in a normal playlist. Does anyone know a way this is possible? If not I will make do with right-clicking
Title: foo_navigator
Post by: yanni on 2007-07-20 23:55:49
Hi,
I finally created a new version, adding several date/time related variables. Multiple columns using $tab() should also be possible.

Info & Download (http://mry.awardspace.com/fb2k/foo_navigator.htm)
Title: foo_navigator
Post by: q-stankovic on 2007-07-23 14:10:07
Thanks!!! 

I am going to test that. Did you solved the problem that playlistless tracks are not going to be played? My suggestion a few posts ago was just to add these tracks to a defined playlist (f.e. Default)
Title: foo_navigator
Post by: q-stankovic on 2007-07-24 19:28:19
I have experienced a bad bug: parts of history are deleted sometimes when an entry in the panel is started - but still not can reproduce that. Will try to reproduce that!
Title: foo_navigator
Post by: thuan on 2007-07-25 10:07:22
Yeah, I experienced that too, but was busy so I can't submit the bug now I forget how to reproduce. When I can reproduce I'll report the exact steps needed.
Title: foo_navigator
Post by: q-stankovic on 2007-07-27 15:39:21
You can reproduce the bug that way: Doubleclick an item inside the history panel and then doubleclick during playback of that song an track inside a playlist - parts of history are eaten!
Title: foo_navigator
Post by: TheTravis on 2007-07-27 19:47:26
This may sound stupid but i think it might be good that you couldn't play files from the panel or History playlist. It could be an option to toggle on/off.
Title: foo_navigator
Post by: kanak on 2007-07-27 20:09:24
This may sound stupid but i think it might be good that you couldn't play files from the panel or History playlist. It could be an option to toggle on/off.


why?
Title: foo_navigator
Post by: TheTravis on 2007-07-27 20:20:43

This may sound stupid but i think it might be good that you couldn't play files from the panel or History playlist. It could be an option to toggle on/off.


why?


I often mess up with playlist and end up playing songs from History. After playing the file it's added to Hisotory playlist again and the whole thing gets quite messy. This option could also prevent user to delete parts of history as q-stankovic explained.
Title: foo_navigator
Post by: q-stankovic on 2007-07-29 16:19:23
This option could also prevent user to delete parts of history as q-stankovic explained.


That is a very bad bug that makes this wonderful plugin totally unuseful - a new option is not a solution. Hopefully yanni will soon make a new version
Title: foo_navigator
Post by: yanni on 2007-08-04 13:09:47
Just as in most history implementations (like e.g. in browsers), whenever an item in the middle of the history is being played (displayed) and a new item is added, all newer items are first removed. (This was also the default behaviour of the old history plugin for v0.8.3). Therefore it's not a bug but a feature.
For the ones who dislike this behaviour, I have added an option ("Always append new tracks") to disable it.

Unfortunately I currently don't have the time to implement any other suggestions.
Title: foo_navigator
Post by: q-stankovic on 2007-08-06 12:10:55
Yanni, many thanks for that option!! 

(Hopefully someday you will find time to let play playlistless tracks  )
Title: foo_navigator
Post by: TomBarlow on 2007-12-29 23:30:08
Hi, this is a really useful plugin, but none of the titleformatting fields work for me, they all return question marks. I'm using version 0.63, Panels UI 14.9 and foobar 0.9.5. Apart from that it works fine.

Edit: nm, just found out they are only available in the panel, I thought they were global and could be used in a columns playlist, but obv. not!
Title: foo_navigator
Post by: hsadan on 2008-03-24 01:36:44
Hello, thanks for this great plugin.

Is there a way to move the played track to the top of the list, rather than keep adding it multiple times?

eg. if I keep playing two tracks repeatedly, one after the other, I don't want it to keep adding both tracks over and over again.
Title: foo_navigator
Post by: TakuSkan on 2009-10-28 03:42:46
Are the forward button and the panel working fine? Are you using the latest versions of foobar2k and ColumnsUI.
Does anybody else experience this bug?

Is the panel for foo_navigator still supported in FB2K v0.9.6.9 with foo_ui_columns-0.3.7.3?  I'm just starting to get a handle on setting up FB2K, and have managed to set up several panels.

But while foo_navigator's 'View History', 'Back', 'Forward' items appear on the 'Playback' menu by default, and I got its buttons set up on the toolbar, I fail to see any options for creating a panel for it.

Am I missing something right in from of me?

Thx
TS
Title: foo_navigator
Post by: 2E7AH on 2009-10-28 04:19:43
Panel name is "History". You can add it in CUI preferences > Layout
Title: foo_navigator
Post by: TakuSkan on 2009-10-28 06:25:52
I’m not sure why ‘History’ didn’t originally appear on the 'Add panel > Panels'  menu while trying to install the History panel before I posted this message.  But whatever it was, it’s there now and I didn’t have to go the route you outlined 2E7AH.

Panel name is "History". You can add it in CUI preferences > Layout

That method for creating panels is one I haven't figured out.  I’ve managed to figure out 95% of the issues I was having configuring what I've wanted in FB2K. But understanding that process has eluded me.

What the heck am I missing? 

EDIT:  An oh... I see there's a 'Log Mode' for foo_navigator.  I thought that may create an external text file with the play history.  But at closer look I see it enables appending newly played tracks to the list.

I'd like to have an external file created and appended on an ongoing basis.  Is that possible with this or some other component?

TS
Title: foo_navigator
Post by: 2E7AH on 2009-10-28 06:41:26
It's hard to understand your English but you should check on "Remember History".
"Log mode" is for playlist named "History". Than you can use Text Tools to output that playlist to text file

As for CUI layout - nothing hard to comprehend: Use vertical/horizontal splitters to split the space and place panel(s) in it or in tabs

[edit]
Quote
I'd like to have an external file created and appended on an ongoing basis. Is that possible with this or some other component?

Yes it's possible with Now Playing Simple (http://skipyrich.com/wiki/Foobar2000:Now_Playing_Simple)
Title: foo_navigator
Post by: TakuSkan on 2009-10-28 08:40:15
It's hard to understand your English

And I'm a native English speaker! I may need to get a little rest... 

Quote
Than you can use Text Tools to output that playlist to text file

Okay.. great.

Quote
As for CUI layout - nothing hard to comprehend: Use vertical/horizontal splitters to split the space and place panel(s) in it or in tabs

Ah!  The context menu.  Now I see it.  Very useful.

Quote
Yes it's possible with Now Playing Simple (http://skipyrich.com/wiki/Foobar2000:Now_Playing_Simple)

Okay... That went in easy.  By default it writes one long comma delimited line to the log file.  I'm not that good at scripting.  I managed to paste $crlf() to the end of its formatting string.  That got each track to be written to individual lines. 

But I'm still struggling to figure out how to insert time and date values.
EDIT: %datetime% ... that was simple enough!

Thanks for your feedback 2E7AH

TS
Title: foo_navigator
Post by: 2E7AH on 2009-10-28 09:04:27
I have your non-edited post in RSS reader, and while it's correct it is somehow hard for me to read it and i'm not native nor good English speaker

%datetime%?
Title: foo_navigator
Post by: TakuSkan on 2009-10-28 09:25:52
I have your non-edited post in RSS reader, and while it's correct it is somehow hard for me to read it and i'm not native nor good English speaker

You're English seems great.  When I go back and read what I 1st wrote, I can see I committed at least one major error.  A run-on sentence.  Back in school I could have been flunked for that alone.  I always feel guilty for not getting a better grasp of another language.

Quote
%datetime%?

Heh... I must have been composing my last post as you were posting yours.  I pretty much just guess when scripting, and go the 'trial and error' method.  The '%[insert_whatever]% components I can uaually deal with.  It's the rest I'm struggling with.
Title: foo_navigator
Post by: Robertina on 2009-10-28 10:18:49
It's the rest I'm struggling with.
Simple date and time formatting only (results in: YYMMDD hh'h'mm'ss, e.g. 091027 23h20'35):
Code: [Select]
$substr(%datetime%,23,24)$replace($substr(%datetime%,5,7),Jan,01,Feb,02,Mar,03,Apr,04,May,05,Jun,06,Jul,07,Aug,08,Sep,09,Oct,10,Nov,11,Dec,12)$substr(%datetime%,9,10) $substr(%datetime%,12,13)'h'$substr(%datetime%,15,16)''$substr(%datetime%,18,19)

More complete syntax:
Code: [Select]
$if(%isplaying%,$if(%ispaused%,
$substr(%datetime%,23,24)$replace($substr(%datetime%,5,7),Jan,01,Feb,02,Mar,03,Apr,04,May,05,Jun,06,Jul,07,Aug,08,Sep,09,Oct,10,Nov,11,Dec,12)$substr(%datetime%,9,10) $substr(%datetime%,12,13)'h'$substr(%datetime%,15,16)''$substr(%datetime%,18,19)'  '
[%artist%'  ']$if(%title%,['['$if2(%album%,<no album>)[ %date%]']  '][#[%disc%/]$num(%tracknumber%,2) ]%title%,%_filename%)  '[paused  ]'
  '('%codec% '('$info(encoding)')' %samplerate% Hz %bitrate% kBit/s $if2($info(mp3_stereo_mode),%channels%)')'
[  %path%][  $meta(URL)]
[  '[Last modified: '$replace($substr(%last_modified%,3,16),-,,:,h)']']
[  '[Added: '$replace($substr(%added%,3,16),-,,:,h)']']
[  '[Length: '%length%']']
$char(10),
$substr(%datetime%,23,24)$replace($substr(%datetime%,5,7),Jan,01,Feb,02,Mar,03,Apr,04,May,05,Jun,06,Jul,07,Aug,08,Sep,09,Oct,10,Nov,11,Dec,12)$substr(%datetime%,9,10) $substr(%datetime%,12,13)'h'$substr(%datetime%,15,16)''$substr(%datetime%,18,19)'  '
[%artist%'  ']$if(%title%,['['$if2(%album%,<no album>)[ %date%]']  '][#[%disc%/]$num(%tracknumber%,2) ]%title%,%_filename%)  '[>playing]'
  '('%codec% '('$info(encoding)')' %samplerate% Hz %bitrate% kBit/s $if2($info(mp3_stereo_mode),%channels%)')'
[  %path%][  $meta(URL)]
[  '[Last modified: '$replace($substr(%last_modified%,3,16),-,,:,h)']']
[  '[Added: '$replace($substr(%added%,3,16),-,,:,h)']']
[  '[Length: '%length%']']
$char(10)),
$substr(%datetime%,23,24)$replace($substr(%datetime%,5,7),Jan,01,Feb,02,Mar,03,Apr,04,May,05,Jun,06,Jul,07,Aug,08,Sep,09,Oct,10,Nov,11,Dec,12)$substr(%datetime%,9,10) $substr(%datetime%,12,13)'h'$substr(%datetime%,15,16)''$substr(%datetime%,18,19)'  '
stopped$char(10)$char(10))

Results in:
Code: [Select]
091028 09h29'22   Jason Crane   [The Jazz Session 2009]   #100 The Jazz Session #100: Bernie Flanders, My Grandfather   [>playing]   (MP3 (lossy) 44100 Hz 128 kBit/s stereo)   D:\music\The Jazz Session\tjs-2009-10-23.mp3     The Jazz Session #100- Bernie Flanders, My Grandfather.mp3   [Last modified: 091023 19h27]   [Added: 091023 20h56]   [Length: 42:10]
091028 09h54'50  Jason Crane  [The Jazz Session 2009]  #100 The Jazz Session #100: Bernie Flanders, My Grandfather  [paused  ]  (MP3 (lossy) 44100 Hz 128 kBit/s stereo)  D:\music\The Jazz Session\tjs-2009-10-23.mp3    The Jazz Session #100- Bernie Flanders, My Grandfather.mp3  [Last modified: 091023 19h27]  [Added: 091023 20h56]  [Length: 42:10]
091028 10h14'22  Jason Crane  [The Jazz Session 2009]  #100 The Jazz Session #100: Bernie Flanders, My Grandfather  [>playing]  (MP3 (lossy) 44100 Hz 128 kBit/s stereo)  D:\music\The Jazz Session\tjs-2009-10-23.mp3    The Jazz Session #100- Bernie Flanders, My Grandfather.mp3  [Last modified: 091023 19h27]  [Added: 091023 20h56]  [Length: 42:10]
091028 10h33'53  stopped

and can be imported in Excel (separator = three spaces).

[!--sizeo:1--][span style=\"font-size:8pt;line-height:100%\"][!--/sizeo--]Moderation: replaced code with codebox to prevent wrecking the page layout[/size]
Title: foo_navigator
Post by: TakuSkan on 2009-10-31 13:08:31
and can be imported in Excel (separator = three spaces).
Thanks for posting that Robertina.  Could you tell me what programming language these codes are based on?  Is it specific to FB2K?  Or maybe based on some kind of pre-existing programming? 

Hunting the net, the only information I could come up with was the Foobar2000:Title Formatting Reference (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference) page.  Is there anything more informative somewhere?

Parts of the code you posted worked for me, and other parts didn't.  The unicode line feed character $char(10) does nothing on my system running Windows 7.  I was able to replace it with the $crlf() code I found in the FB2K formatting page above which worked for me.

I also had problems importing the output into Excel.  Those 3 spaces made things a bit of a pain to load into my 2003 version.  I found I could replace the groups of 3 spaces in your code with the tab function $tab() specifified in the wiki page above. The output is in a tab delimited format that Excel then loads easily.

By just replacing your $char(10) and 3 spaces with $crlf() and $tab(), the result was the following:

Code: [Select]
$if(%isplaying%,$if(%ispaused%,
$substr(%datetime%,23,24)$replace($substr(%datetime%,5,7),Jan,01,Feb,02,Mar,03,Apr,04,May,05,Jun,06,Jul,07,Aug,08,Sep,09,Oct,10,Nov,11,Dec,12)$substr(%datetime%,9,10) $substr(%datetime%,12,13)'h'$substr(%datetime%,15,16)''$substr(%datetime%,18,19)''$tab()
[%artist%]$tab()$if(%title%,['['$if2(%album%,<no album>)[ %date%]']']$tab()[#[%disc%/]$num(%tracknumber%,2) ]%title%,%_filename%)$tab()'[paused  ]'
$tab()'('%codec% '('$info(encoding)')' %samplerate% Hz %bitrate% kBit/s $if2($info(mp3_stereo_mode),%channels%)')'
$tab()[%path%]$tab()[$meta(URL)]
$tab()['[Last modified: '$replace($substr(%last_modified%,3,16),-,,:,h)']']
$tab()['[Added: '$replace($substr(%added%,3,16),-,,:,h)']']
$tab()['[Length: '%length%']']
$crlf(),
$substr(%datetime%,23,24)$replace($substr(%datetime%,5,7),Jan,01,Feb,02,Mar,03,Apr,04,May,05,Jun,06,Jul,07,Aug,08,Sep,09,Oct,10,Nov,11,Dec,12)$substr(%datetime%,9,10) $substr(%datetime%,12,13)'h'$substr(%datetime%,15,16)''$substr(%datetime%,18,19)''$tab()
[%artist%]$tab()$if(%title%,['['$if2(%album%,<no album>)[ %date%]']']$tab()[#[%disc%/]$num(%tracknumber%,2) ]%title%,%_filename%)$tab()'[>playing]'
$tab()'('%codec% '('$info(encoding)')' %samplerate% Hz %bitrate% kBit/s $if2($info(mp3_stereo_mode),%channels%)')'
$tab()[%path%]$tab()[$meta(URL)]
$tab()['[Last modified: '$replace($substr(%last_modified%,3,16),-,,:,h)']']
$tab()['[Added: '$replace($substr(%added%,3,16),-,,:,h)']']
$tab()['[Length: '%length%']']
$crlf()),
$substr(%datetime%,23,24)$replace($substr(%datetime%,5,7),Jan,01,Feb,02,Mar,03,Apr,04,May,05,Jun,06,Jul,07,Aug,08,Sep,09,Oct,10,Nov,11,Dec,12)$substr(%datetime%,9,10) $substr(%datetime%,12,13)'h'$substr(%datetime%,15,16)''$substr(%datetime%,18,19)''$tab()
stopped$crlf())
And that gives me this tab delimited output that imports easily into Excel for me:

Code: [Select]
091031 05h03'36'	They Might Be Giants	[Apollo 18 1992]	#18 Fingertips (Part 1)	[>playing]	(MP3 (lossy) 44100 Hz 122 kBit/s joint stereo)	G:\They Might Be Giants\18 - Fingertips (Part 1).mp3		[Last modified: 091030 18h58]		[Length: 0:06]
091031 05h03'42' They Might Be Giants [Apollo 18 1992] #28 Fingertips (All Alone) [>playing] (MP3 (lossy) 44100 Hz 117 kBit/s joint stereo) G:\They Might Be Giants\28 - Fingertips (All Alone).mp3 [Last modified: 091030 18h58] [Length: 0:06]
There are 2 'invisable' tabbed fields in that output.  The tab characters are there, but I'm not getting any data output for them.  The 1st is for the 'Added' field in your script that should indicate when the file was loaded into FB2K's library, right?  The other is a result of your $meta(URL) that I don't entirely understand.  It seems to be an alternate network path, and I could probably just eliminate the $tab() I placed before it.

With your unaltered code, for some reason the output didn't reflect pausing or stopping the playback.  The following is the output from your script on my system running 2 short MP3s, and pausing in the middle of both:

Code: [Select]
091031 05h08'14   They Might Be Giants   [Apollo 18 1992]   #18 Fingertips (Part 1)   [>playing]   (MP3 (lossy) 44100 Hz 122 kBit/s joint stereo)   G:\They Might Be Giants\18 - Fingertips (Part 1).mp3   [Last modified: 091030 18h58]   [Length: 0:06]
091031 05h08'21  They Might Be Giants  [Apollo 18 1992]  #28 Fingertips (All Alone)  [>playing]  (MP3 (lossy) 44100 Hz 117 kBit/s joint stereo)  G:\They Might Be Giants\28 - Fingertips (All Alone).mp3  [Last modified: 091030 18h58]  [Length: 0:06]
The only difference in between that output and the one my modified script created is the replacment of those 3 spaces with tabs.  And I manually folded the 2nd line where your $char(10) code failed to create a carriage return.

Notice the pauses aren't listed.  There's are no timestamp for when playback stopped.  And there's no output for the 'Added' field.  Any idea why that may be?

Thanks again for your feedback Robertina.

TS

Title: foo_navigator
Post by: odyssey on 2009-10-31 13:13:43
I pretty much just guess when scripting, and go the 'trial and error' method.  The '%[insert_whatever]% components I can uaually deal with.  It's the rest I'm struggling with.

Save this link (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference)  It's good to have now and then.
Title: foo_navigator
Post by: Robertina on 2009-10-31 21:57:42
Could you tell me what programming language these codes are based on?  Is it specific to FB2K?  Or maybe based on some kind of pre-existing programming?
It is foobar2000 specific (http://www.hydrogenaudio.org/forums/index.php?showtopic=72344&view=findpost&p=637656), you already found the link to its online help (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Titleformat_Reference), foobar's menu Help / Title Formatting Help provides a shortened offline version. Only the %datetime% syntax comes with Skipy Rich's Now Playing Simple component and it only works within this plugin.

Quote
The unicode line feed character $char(10) does nothing on my system running Windows 7. I was able to replace it with the $crlf() code I found in the FB2K formatting page above which worked for me.
Well done. I am using Windows XP where both elements are working, I am glad you found the correct adjustment.

Quote
I also had problems importing the output into Excel. Those 3 spaces made things a bit of a pain to load into my 2003 version. I found I could replace the groups of 3 spaces in your code with the tab function $tab() specifified in the wiki page above. The output is in a tab delimited format that Excel then loads easily.
Some of my podcasts I am listening to have unfortunately tabs in some of their relevant tagging fields. So I needed another unique separator and chose the three spaces arbitrarily.

Quote
The other is a result of your $meta(URL) that I don't entirely understand. It seems to be an alternate network path
I am often listening to online streams and $meta(URL) reflects their played addresses.

Quote
And there's no output for the 'Added' field. Any idea why that may be?
As you assumed %added% refers to foobar's Media Library Playback statistics, so this element is not available for files outside your monitored folders. There is no output data because square brackets put around a title formatting element suppress the question mark which would be shown otherwise.

Quote
Notice the pauses aren't listed. There's are no timestamp for when playback stopped. And there's no output for the 'Added' field. Any idea why that may be?
Try this Formatting string, I have improved it for Excel's importing function so that all values now are in their correct column (at least on Windows XP, Excel 2002 SP3). All your suggestions and adjustments to your OS are all taken in (at least I hope so):

$if(%isplaying%,$if(%ispaused%,
$substr(%datetime%,23,24)$replace($substr(%datetime%,5,7),Jan,01,Feb,02,Mar,03,Apr,04,May,05,Jun,06,Jul,07,Aug,08,Sep,09,Oct,10,Nov,11,Dec,12)$substr(%datetime%,9,10) $substr(%datetime%,12,13)'h'$substr(%datetime%,15,16)''$substr(%datetime%,18,19)$tab()
$if2(%album artist%,'Album artist: n/a')
$tab()$if(%title%,['['$if2(%album%,<no album>)[ %date%]']  '][#[%disc%/]$num(%tracknumber%,2) ]%title%,%_filename%)$tab()'[paused]'
$tab()'('%codec% '('$info(encoding)')' %samplerate% Hz %bitrate% kBit/s $if2($info(mp3_stereo_mode),%channels%)')'
$tab()$if2(%path%,$meta(URL))
$tab()'[Last modified: '$if2($replace($substr(%last_modified%,3,16),-,,:,h),'n/a')']'
$tab()'[Added: '$if2($replace($substr(%added%,3,16),-,,:,h),'n/a')']'
$tab()'[Length: '$if2(%length%,'n/a')']'
$crlf(),
$substr(%datetime%,23,24)$replace($substr(%datetime%,5,7),Jan,01,Feb,02,Mar,03,Apr,04,May,05,Jun,06,Jul,07,Aug,08,Sep,09,Oct,10,Nov,11,Dec,12)$substr(%datetime%,9,10) $substr(%datetime%,12,13)'h'$substr(%datetime%,15,16)''$substr(%datetime%,18,19)$tab()
$if2(%album artist%,'Album artist: n/a')
$tab()$if(%title%,['['$if2(%album%,<no album>)[ %date%]']  '][#[%disc%/]$num(%tracknumber%,2) ]%title%,%_filename%)$tab()'[>playing]'
$tab()'('%codec% '('$info(encoding)')' %samplerate% Hz %bitrate% kBit/s $if2($info(mp3_stereo_mode),%channels%)')'
$tab()$if2(%path%,$meta(URL))
$tab()'[Last modified: '$if2($replace($substr(%last_modified%,3,16),-,,:,h),'n/a')']'
$tab()'[Added: '$if2($replace($substr(%added%,3,16),-,,:,h),'n/a')']'
$tab()'[Length: '$if2(%length%,'n/a')']'
$crlf()),
$substr(%datetime%,23,24)$replace($substr(%datetime%,5,7),Jan,01,Feb,02,Mar,03,Apr,04,May,05,Jun,06,Jul,07,Aug,08,Sep,09,Oct,10,Nov,11,Dec,12)$substr(%datetime%,9,10) $substr(%datetime%,12,13)'h'$substr(%datetime%,15,16)''$substr(%datetime%,18,19)$tab()
stopped$crlf())

Edit: removed Codebox (sorry for that), because pasting my code into it with Opera there are unwanted spaces in it and I did not find a way to remove them.  
Title: foo_navigator
Post by: willardjuice on 2010-02-09 05:46:36
Can you update this plug-in for foobar 1.0 please?  Thanks
Title: foo_navigator
Post by: kheops on 2010-02-15 17:18:30
bump
foobar2000 troubleshooter tells me this component should be updated, i'm using the history panel as 2E7AH describes it
Title: foo_navigator
Post by: 2E7AH on 2010-02-15 17:29:09
author didn't updated his component for a long time, so probability to see such outdated component in troubleshooter are evident
you shouldn't worry about it, if it works for you, thou it won't work forever if it stays outdated
Title: foo_navigator
Post by: yanni on 2010-02-23 08:24:35
New version for foobar2000 v1.0:
information and download: here (http://mry.awardspace.com/fb2k/foo_navigator.htm)
additional download in upload forum: here (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=45616&view=findpost&p=689743)
Title: foo_navigator
Post by: Fool_on_the_hill on 2010-02-23 14:38:24
Thank you for the update!
Title: foo_navigator
Post by: kheops on 2010-02-23 16:12:37
i'm glad this component is still there
thanks
Title: foo_navigator
Post by: linus on 2010-02-23 20:11:27
Thanks!
Title: foo_navigator
Post by: linus on 2010-02-26 18:13:47
after the uopdate, foobar still reports in component list:

version 0.64
Navigator for foobar2000 v0.9
by Yannick Schillinger

Maybe need to update some string of text?

bye, Linus

Title: foo_navigator
Post by: yanni on 2010-03-02 08:51:50
Oops, missed that.
Thank you, Linus
Title: foo_navigator
Post by: q-stankovic on 2010-03-07 13:28:45
Hello yanni,

nice to see that development is not abandoned. I like this component for two reasons: the possibility to show real playback time instead of last_played and especially because it covers also tracks outside of library (wich i have a lot). To benefit from your component i would love to see two features:
Furthermore some suggestions that are not essential in the sense of the two features above: Some parts of the component now after 4 years seem a bit outdated. For example it is now possible to set colors and fonts on a central page in columnsui preferences wich also offer a global setting for all panels. What also comes to my mind are these pseudocolumns created by $tab() - i think real columns (definable by user in a simple gridview) would look nicer.

Thanks! 

Title: foo_navigator
Post by: acmodeu on 2010-03-07 17:25:55
Plugin doesn't show streamed history (i.e. last.fm radio) after restarting foobar, it says "unknown title". That's because he stores history in "path to file" format, I guess. Is there any way to workaround?
Title: foo_navigator
Post by: RogerG on 2010-05-10 22:24:29
some improvement ideas:
Title: foo_navigator
Post by: watercolor on 2010-06-06 06:58:30
Please support Windows 7 Theme selected menu appearance.
Please support smooth scrolling. I think foo_navigator panel is not smooth scrolling. It don't happen on scrollbar dragging.
But on use mouse wheel, it happen.
If current playing track is newest, please 'forward' command behavior make like 'next'.
Title: foo_navigator
Post by: DarkBlackCorner on 2010-10-29 15:59:05
Hi, just wondering if there's a way to use the "previous" button to go back through the history?
Title: foo_navigator
Post by: TakuSkan on 2012-06-03 23:43:50
Wow... no new discussion on this component since Brutus betrayed Julius.

My question is really on FB2K scripting, but specifically for this component.  I mistakenly thought this was a foo_playlisthistory issue that got moved to the Playlist History (foo_playlisthistory) (http://www.hydrogenaudio.org/forums/index.php?showtopic=86082&view=findpost&p=797563) thread.  Another triumph of ADD over reason I guess.  But here's the question again:

Is there some simple title formatting using tabs to space out %title% - %artist% - %album% into even columns in a foo_navigator panel? Don't know there's an obvious solution, or if the panel doesn't allow it. 

I tried $tab, but since foo_navigator isn't a text or word processor, it has no (to my knowledge) preset column fields. So if you use $tab between the tag values, it will insert a tab, but not at any preset column field positions. So instead of even columns, you just get a set distance between metadata vales that are in a different position in each row.

I'm not familiar enough with FB2K title formatting to know if something like what I'm looking for here can be accomplished.
Title: foo_navigator
Post by: TakuSkan on 2012-06-05 03:03:18
Well, maybe this is just a title formatting limitation with foo_navigator.  Have I missed a newer columns UI panel component to display history that could be scripted to display %title% - %artist% - %album% in organized columns?  Or a way to script this component to do that?
Title: foo_navigator
Post by: yanni on 2013-01-01 15:16:00
New version (0.8) available here (http://mry.awardspace.com/fb2k/foo_navigator.htm) (homepage) or here (http://www.hydrogenaudio.org/forums/index.php?showtopic=45616&view=findpost&p=819089) (uploads forum).
New features and changes:
- Default UI panel
- Panel settings dialog
- Ability to use UIs default colors and font
- Ability to choose action for middle mouse button
- Ability to move tracks that already are in the history to the top (instead of creating copies)
- Ability to let Forward command act as Next if there's no track to forward to
- When using the "Seconds to wait" function, seeking the track doesn't influence the behaviour anymore
- Navigating the history also works after tracks have been removed from playlist
- Panel selection follows Forward and Back commands

Be sure to check out the descriptions on the homepage and let me know if there are any problems.
Happy new year 
Title: foo_navigator
Post by: q-stankovic on 2013-01-01 15:29:17

I already have forgotten this component. Thanks for making a defaultUi version and adding improvements!
Happy new year!
Title: foo_navigator
Post by: q-stankovic on 2013-01-06 11:54:40
Didn't have much time to test. So far this: wouldn't it be better for defaultUi if the "edit..." button for "use global ui settings" (panel prefrences) leads some branches deeper (in foobar2000 preferences) to "colors & fonts" settings (preferences) rather than to "display"?
Title: foo_navigator
Post by: yanni on 2013-01-07 16:13:52
Didn't have much time to test. So far this: wouldn't it be better for defaultUi if the "edit..." button for "use global ui settings" (panel prefrences) leads some branches deeper (in foobar2000 preferences) to "colors & fonts" settings (preferences) rather than to "display"?

I agree that would make more sense, however I couldn't find the corresponding entry in the SDK 
Title: foo_navigator
Post by: hodok on 2013-04-17 14:04:26
Can you use its functionality to go back and forward in history by keyboard shortcuts? If yes, how?
Title: foo_navigator
Post by: yanni on 2013-04-17 16:16:18
Can you use its functionality to go back and forward in history by keyboard shortcuts? If yes, how?

You can assign keyboard shortcuts to these commands the same way you do with any other command, by going to Preferences->Keyboard Shortcuts
http://wiki.hydrogenaudio.org/index.php?ti...board_Shortcuts (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000%3a%50references:General:Keyboard_Shortcuts)
Title: foo_navigator
Post by: q-stankovic on 2013-04-17 16:26:12
hello yanni,

just one point: could you make a multicolumn-list for navigator like kerpondiles queue contents editor?
Title: foo_navigator
Post by: hodok on 2013-04-17 17:27:07
Can you use its functionality to go back and forward in history by keyboard shortcuts? If yes, how?

You can assign keyboard shortcuts to these commands the same way you do with any other command, by going to Preferences->Keyboard Shortcuts
http://wiki.hydrogenaudio.org/index.php?ti...board_Shortcuts (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000%3a%50references:General:Keyboard_Shortcuts)

You mean this command should in the "Action" list? But I can't see it:
(http://s13.postimg.org/aff1rr2rb/image.png)
Title: foo_navigator
Post by: marc2003 on 2013-04-17 17:45:31
you could try commands that actually exist... like forward or back
Title: foo_navigator
Post by: NullString on 2013-04-19 16:47:44
Thanks for a Default UI version!
Title: foo_navigator
Post by: Forfit on 2014-11-27 14:57:18
When I listen to a radio, I can see the titles of the songs gradually transmitted.
With "copy name" I can also copy to the clipboard a particular song.
It would be possible to display the console each title as the songs are transmitted instead of staying fixed on the url of the radio?
Title: Re: foo_navigator
Post by: fabiospark on 2016-01-30 14:48:12
Is there a variable to detect if a track is now playing to dynamically change some formatting?
In an old FB setup I see I have a %_history_is_playing% but I can't see any effects with it nor with %isplaying%: is there something else I can use for that?

Another thing: I put some $rgb() in the panel settings string and it works
but how does the priority works between the color codes in the string
and the settings for unselected and selected lines?

Thanks.
Title: Re: foo_navigator
Post by: TheLomaxx on 2020-10-21 12:42:57
hmm .. I might be too late since the post is rather old by now and no updates were made during the last years. I still try my luck to ask for a new feature: Is it possible to add support for internet radios? Currently only the internetstation itself is being added to the history not the actual songs playing.
 I know that this is called "Navigator" and you can't practically move back to a song in an stream, but for me the history is also a source to simply look up names of songs that I have been listening to.