Help - Search - Members - Calendar
Full Version: Tagz 'special fields'
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
splint3r
Hi,
I'm testing the foobar2000 MediaBridge/Girder plugin. It has a user configurable function to send foobar2000 title formatting variables as NetRemote/Girder variables. It works well with most fields (%Artist% %Album% etc) and also works with some 'special fields' but not with others, for example %ispaused% works but %playlist_name% does not, and %length% works but %playback_time_remaining% does not.
Is there a difference between these fields or something that would explain why some will return a value and others will not?
If i have asked this question in the wrong place please let me know.
Thanks
Jan S.
QUOTE(splint3r @ Aug 9 2006, 15:16) *

If i have asked this question in the wrong place please let me know.
You have asked in the wrong place. Since it is related to a third party plugin that is where it goes.
splint3r
Hey Jan S,
Ok... thing is this question does not relate to the 3rd party plug but to foobar2000 itself. If you read past the 1st line of the question you may see that the question is about the difference in the standard foobar2000 variables, i have asked for help on behalf of the plugin developer, so... like... i really cant see an answer coming from this part of the forum.
maybe tech support would be a more appropriate place for this.... or dev, i dont know how you like tings to be done but i would really appreciate an answer on this it would make a big difference.
thanks
splint3r
I went through and tested all available variables and came up with this list of fields that are there but i cant use.

%playback_time%
%playlist_number%
%list_index%
%list_total%
%path_raw%
%playlist_name%
%playback_time_remaining%
%playback_time_remaining_seconds%

all other fields listed in the title formatting wiki work just fine.

if anyone knows a reason these fields would not be available to the plugin, or can see a pattern that might help solve the problem, plz help
kjoonlee
file:///C:/Program%20Files/foobar2000/titleformat_help.html#context-specific_fields

Some fields are not available everywhere.
splint3r
Hi kjoonlee,

Big thanks for helping with this, your post is very useful.

I got %path_raw% working by asking for it as $extra(path_raw), so that leaves everything on my list being the same as the list you are showing me, with the exception of %playlist_name%. Its kind of ironic that %playlist_name% is not in this help tutorial because thats actually the one im after. smile.gif

But... at a guess i would say if we can access other playlist specific fields we will also get %playlist_name%.

Do you know what would need to be done inside the plugin to access these context specific fields?
kjoonlee
I know nothing about the internals of foobar2000, but I have a feeling it won't be possible with no cooperation from the core. (That is, I think there's nothing 3rd-party developers can do about it.)

---

Hm.. With 0.8.3, it was possible for 3rd-party developers to create their own tech fields and pseudo-functions. I don't know if something similar would be possible with 0.9.
foosion
QUOTE(kjoonlee @ Aug 10 2006, 11:34) *
Hm.. With 0.8.3, it was possible for 3rd-party developers to create their own tech fields and pseudo-functions. I don't know if something similar would be possible with 0.9.
In 0.8.3, it was possible to provide "extra" fields - accessible via the $extra() function or using the %_name% syntax - but no additional functions. 0.9 has proper hooks for both.
kjoonlee
Oops, yes, I meant %_extra_fields%. By pseudo-functions, I meant what Tres`ni called "@fakefunctions{}".

http://www.hydrogenaudio.org/forums/index....st&p=296488

Thanks for the info. smile.gif
splint3r
Hi foosion,

QUOTE(foosion @ Aug 10 2006, 21:24) *

0.9 has proper hooks for both.


So just to confirm... you are saying %playlist_name% can be gathered by the plugin?

Is it possible for you to provide a little guidance? Even a pointer to where to look for info would be great
smile.gif

Thanks
Jan S.
QUOTE(splint3r @ Aug 10 2006, 00:19) *
Hey Jan S,
Ok... thing is this question does not relate to the 3rd party plug but to foobar2000 itself. If you read past the 1st line of the question you may see that the question is about the difference in the standard foobar2000 variables, i have asked for help on behalf of the plugin developer, so... like... i really cant see an answer coming from this part of the forum.
maybe tech support would be a more appropriate place for this.... or dev, i dont know how you like tings to be done but i would really appreciate an answer on this it would make a big difference.
thanks
Well, since this is about a problem with a specific 3rd party component I think this forum is ok though you are right that this is not as clear cut as I originally thought (far from it). But dev forum as you originally put it in is definitely wrong.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.