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

foo_cwb_hooks

Reply #350
when i use $cwb_datediff(d1,d2) in my config it shows me an unknown function error.

my code:
$cwb_datediff(%cwb_systemdatetime%,%first_played%)

foo_cwb_hooks

Reply #351
Hi!

Does %cwb_followcursor% return anything?
If I put it in my code, it doesn't return a string or a value (like %cwb_playback_order% or %cwb_playback_state% does).
Is it possible to force it, or how can I compare if %cwb_followcursor% is true or false?

bye

foo_cwb_hooks

Reply #352
No it does not return a string only a boolean value. Use it like this:
Code: [Select]
$if(%cwb_followcursor%,'true','false')

foo_cwb_hooks

Reply #353
No it does not return a string only a boolean value. Use it like this:
Code: [Select]
$if(%cwb_followcursor%,'true','false')

Thank you!
This works, the only problem is, that it doesn't update immediately after playback information has changed!

bye

foo_cwb_hooks

Reply #354
This is a request for three new additions to the playlist information specific variables.
  • %cwb_activelist_filesize% - Would return the cumulative file size in bytes of the active playlist
  • %cwb_selection_filesize% - Would return the cumulative file size in bytes of the selected tracks
  • %cwb_playinglist_filesize% - Would return the cumulative file size in bytes of the playlist list

Why would this be useful? One example: I am trying to emulate the iTunes status bar that shows the number of tracks in a playlist or selected, the duration of the said tracks, and file size of the said tracks. With the currently available variables all but the cumulative file size can be calculated.

Any reply on the acceptance or rejection of this request by the developer would be appreciated. Thanks

foo_cwb_hooks

Reply #355
Hello Chris!

Sometimes it seems to me that people would like to have everything as panel. However, i don't really know there to put the tagger window in my layout and i also think that a panel is in that sense a bad place for it like it would be for the properties window. I would like to ask if you can make an option to use tagger window as normal window (like properties...). And if the SDK allows to create an own page in the properties window, so... 

foo_cwb_hooks

Reply #356
Sometimes it seems to me that people would like to have everything as panel. However, i don't really know there to put the tagger window in my layout and i also think that a panel is in that sense a bad place for it like it would be for the properties window. I would like to ask if you can make an option to use tagger window as normal window (like properties...). And if the SDK allows to create an own page in the properties window, so... 


You might take a look at my dockable panels plugin.

http://www.bazquux.com/wiki/Foobar2000:Dock
There used to be a link to my website here.

foo_cwb_hooks

Reply #357
I know Dockable Panels but there are following reasons i wouldn't like to use for it:

1. When i close the tagger window as dockable panel i would have to create a new one

2. It is not very convenient first to call dockable panel tagger window and then to send files to them. I just would like to select tracks and then send them to tagger window by context menu, hotkey or ColumnsUi button

foo_cwb_hooks

Reply #358
Hello cwbowron ,
1.Would it be possible to leave out the apply button in the tagger window? ie as soon as you toggle the tags they will be added or removed from file .

2.Can you make the tagger window to work with the custom info plugin database ie to store the tags in its external database?

Thank you.

foo_cwb_hooks

Reply #359
This is a request for three new additions to the playlist information specific variables.
  • %cwb_activelist_filesize% - Would return the cumulative file size in bytes of the active playlist
  • %cwb_selection_filesize% - Would return the cumulative file size in bytes of the selected tracks
  • %cwb_playinglist_filesize% - Would return the cumulative file size in bytes of the playlist list

+1

good request!

foo_cwb_hooks

Reply #360
when using $cwb_hms(n) on a time value of 0, "0" is displayed, might this be changed to "00" for consistency?

perhaps this is present in other functions as well


*edit

on second look there seems to be other times when only a single digit gets displayed, such as when there are single digit seconds and single digit hours, just was thinking that always having double digits for each interval(hours, minutes, seconds) would be a more consistent look

foo_cwb_hooks

Reply #361
2. It is not very convenient first to call dockable panel tagger window and then to send files to them. I just would like to select tracks and then send them to tagger window by context menu, hotkey or ColumnsUi button


Sure, that only happens when using "tag in tagger window" outside of playlists.

I hope that you can understand that i don't like to install a whole plugin just to have a simple window wich even isn't one. 

foo_cwb_hooks

Reply #362
Hi all, i have a question:


Using cwb_hooks, i'd like to have a config in which i dont see the artist and the album on each line if i am playing full albums, but i want to see them when i make a custom playlist (e.g. search->*(for rated songs)->add to playlist.

It tried to use it like this

%ifequal(%tracknumber%,1,%artist%,$if(%cwb_next_artist%=%artist%,,%artist))

It works very fine for full albums, but for custom playlists it will only show artists for songs that are first on the CD in the first place. I understood from this that %cwb_next_artist% was referring to the next artist in database and not in the active playlist. Please tell me if I'm wrong.

Is there a way to do that?

thks a lot.

foo_cwb_hooks

Reply #363
foo_cwb_hooks seems to add an item to the playlist right click menu that doesn't do anything ("tag in tagger window") in the new foobar beta. Just a heads up.

foo_cwb_hooks

Reply #364
foo_cwb_hooks seems to add an item to the playlist right click menu that doesn't do anything ("tag in tagger window") in the new foobar beta. Just a heads up.


It is a leftover function from 0.9.4 (where it activated a panel)

foo_cwb_hooks

Reply #365
another request 

when using a variable from cwb_hooks that involves time, such as %cwb_selection_duration%...
and when using a variable from foobar such as %length%...
it becomes obvious that the time is being rounded differently

i may have a song that returns 4:45 when using %length%
but a cwb_hooks variable might return 4:44
i'd say this affects 1/2 of all my tracks

is this a known way of being, is it this way for a reason? might it be changed?

thanks

foo_cwb_hooks

Reply #366

This is a request for three new additions to the playlist information specific variables.
  • %cwb_activelist_filesize% - Would return the cumulative file size in bytes of the active playlist
  • %cwb_selection_filesize% - Would return the cumulative file size in bytes of the selected tracks
  • %cwb_playinglist_filesize% - Would return the cumulative file size in bytes of the playlist list

+1

good request!


+1

Would also find this useful.

Thanks

foo_cwb_hooks

Reply #367
I have a question/request for the New File Tagger.

Is it possible add a timestamp to a new file only when there is no tag entry? That could be useful to prevent overwriting when the database is lost or, like in my case, when several computers shares the same library.

Something like this:
$if($meta_test(added),,<timestamp script>)

Thanks

foo_cwb_hooks

Reply #368
Quote
Is it possible add a timestamp to a new file only when there is no tag entry? That could be useful to prevent overwriting when the database is lost or, like in my case, when several computers shares the same library.

Something like this:
$if($meta_test(added),,<timestamp script>)


This approach doesn't work - if the ADDED tag is present, it will be deleted.

See this post for an idea of how to do this:  http://www.hydrogenaudio.org/forums/index....st&p=483397

foo_cwb_hooks

Reply #369
Marvelous!

 

foo_cwb_hooks

Reply #370
hey cwbowron, are there any plans to add %cwb_selection_count%? %cwb_selection_duration% has been available for a while and the count could probably be added pretty quickly if the code is already using it to calculate the duration.


foo_cwb_hooks

Reply #372
Is it possible add a timestamp to a new file only when there is no tag entry? That could be useful to prevent overwriting when the database is lost or, like in my case, when several computers shares the same library.


yes, its possibly. i've found it somewhre in this forum, i think.

manage your script as fellowing:
1. Time Stamp: Added_temp
2. Format: "Added" using "$if(%Added%,%Added%,%Added_temp%)"
3 Remove: Added_temp

works well for me!
bye

foo_cwb_hooks

Reply #373
hey cwbowron, are there any plans to add %cwb_selection_count%? %cwb_selection_duration% has been available for a while and the count could probably be added pretty quickly if the code is already using it to calculate the duration.


oh geez.. thats what i get for not checking for the newest version. i also checked the official hooks page so i assumed it wasn't included. perhaps these 2 pages could somehow be merged to prevent confusion.

thanks for the info, i was able to pull a few neat tricks with this string.

foo_cwb_hooks

Reply #374
I just noticed %cwb_selection_count% and %cwb_selection_duration% don't work for me anymore after the recent ColumnsUI or FB2K updates (I didn't notice when it stopped working). Did it break for anyone else or is it just me? For instance, %cwb_selection_count% always returns 1 when more than 1 track is selected.