Help - Search - Members - Calendar
Full Version: [Request] Inactive Tracks
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Pages: 1, 2, 3
TheDom
Hi!

I would like to see a plugin that skips tracks that are marked via a tag as inactive. I don't like some tracks on albums and so I don't want to hear them (except if I click on them) but I want to keep them on my playlist because of the completeness.

Would be great if anybody could code something like this!
Silverbolt
Sounds like a cool idea.
Strictly4me
Very impressive and cool!
I like this idea.

((((( Strictly4me )))))
Strictly4me
Another way:
Maybe there is a way only to play tracks with rating and skip all other tracks without rating-tag. Would be nice so!
Not a specially mark via a "tag for inactive" needs!

((((( Strictly4me )))))
TheDom
I don't have and don't like ratings...
Lyx
Great idea!

It would be especially cool, if one could not just set a "dontplay"-tag to a file, but could also tell the plugin to "play only files with a rating of at least [dropdown-menu] but not higher than [dropdown-menu]."

- Lyx
mazy
well i'm all for configurable plugin, that would sit on top of playback flow and simply skip tracks that evaluate given formatting string to 'true' ...

edit: and if you could save some presets and then select them from toolbar, that would be uber cool wink.gif
TheDom
*bump*
Anyone?
Der_Iltis
Isn't it possible with playlist_gen or Playlist tree?

Another suggestion would be to use Shuffle control (don't know if it is possible to increment the tracknumber in the playlist (just like the tracknumbers in Album shuffle mode) and to use something like +%Active% +$inc(%_Playlist_entry%)
TheDom
QUOTE (Der_Iltis @ Jan 6 2005, 04:19 PM)
Isn't it possible with playlist_gen or Playlist tree?

No because I want that the tracks to show up on the playlist.
kdx
Well, I quickly put something together which might at least be a start. smile.gif

If the plugin is enabled, all files with a 'skip'-tag are skipped except it's 'false' or '0'. The only way to play skip-tagged files is either to disable the plugin with 'Skip/deactivate' or to stop playback first and then play it. I made it this way, because I don't know any way to find out, if the user has double-clicked on a track or pressed the 'next'-button.

Get it here, may need the msvcr71.dll
mazy
nice!

but could you please add adjustable formatting string to evaluate for that?
kdx
okay, done smile.gif

The formatting string now must evaluate to 'true' or '1' to skip. Default is '$if2(%skip%,0)'

new version here
anza
Cool, now we'll only have to wait for Peter to implemet the "store these tags in the database instead of writing them to the files" option :B
TheDom
Works great. Thank you!!!
mazy
thanks a lot! smile.gif
lightbulb
EDIT - never mind.
Fishy Joe
QUOTE (anza @ Jan 11 2005, 03:11 AM)
Cool, now we'll only have to wait for Peter to implemet the "store these tags in the database instead of writing them to the files" option :B
*



Would it be possible to implement a "DB Only Mask" like the play count plugin? Any file masks listed there will have the playcount saved in the foobar database rather than in the tag of the file.
Zurman
Amazing plugin. I would just suggest a few things :
The ability to have more than one format string, and choose the one that I want to use. For example some times I may want to skip the tracks marked "skip", and other times I want to play only rated tracks, etc...
It would be really nice if we could choose this quickly from the interface

keep up the good work biggrin.gif
Zurman
Just another thing : make the plugin always play the track whan double-clicked
Lyx
Cool, thanks :)

- Lyx

edit: eek, go away smiley!
Zurman
Sorry to have another request unsure.gif

When the plugin skips a track, it plays automatically the following, but it should (I think) play the following or a random one, according to the playing mode.

Anyway thanks for the plugin cool.gif
kdx
QUOTE
Amazing plugin. I would just suggest a few things :
The ability to have more than one format string, and choose the one that I want to use. For example some times I may want to skip the tracks marked "skip", and other times I want to play only rated tracks, etc...
It would be really nice if we could choose this quickly from the interface

okay, is in wink.gif
..not choosable from interface but you can always make a keyboard-shortcut, if you want to change it that quickly tongue.gif

QUOTE
When the plugin skips a track, it plays automatically the following, but it should (I think) play the following or a random one, according to the playing mode.

hmk, fixed .. but why aren't you using the shuffle plugin ? wink.gif
Zurman
Thanks for updating cool.gif
andreas
Hi,

I'm not quite sure, if I absolutely understood the function of the menu entries.
If I manually add a SKIP tag to my files everything works perfectly. And 'Activate' and 'Deactivate' also seem to work as i expect, but I would have loved some sort of signal, if skip-mode is activated (perhaps a checkmark in front of 'Activate' or 'Deactivate'). At the moment I seem to have to remember or try.

Then I thought, 'toggle' would toggle the SKIP tag in files, but it also seems to activate or deactivate the skip mode. I'm missing a way to add the skip tags. Currently im using the Quick-Tag plugin for this, but I would have liked this feature in the Skip submenu and I can't get the Quick-Tag functions in the main menu.
Also I can't realize a "Toggle" function with quicktag.

Another thing: I've changed my playlist (based on plisk's column_ui playlist) to sort of grey out the entries, which will be skipped. I could try to post my changes, if somebody is interested in this.

In foo_trackinfo I use the following to show the skipped info:
CODE
$if($strcmp(%skip%,1),,0080ff)$caps2(%artist%)$if($strcmp(%skip%,1), '['skipped']',)


Many thanks for this plugin,
Andreas
Strictly4me
QUOTE (andreas @ Jan 15 2005, 11:13 AM)
Another thing: I've changed my playlist (based on plisk's column_ui playlist)  to sort of grey out the entries, which will be skipped. I could try to post my changes, if somebody is interested in this.
*

Nice, i have interest for it! - THX

@kdx
Realy good work and THX for that!

One question:
If i mark a song for "skipped", all other songs behind are not playing too, without SKIP-TAG.
Whats wrong?

((((( Strictly4me )))))
andreas
QUOTE
Nice, i have interest for it! - THX

Well, here we go.
Only files which have their skip tag set to "1" will be greyed out.

Please, don't mind that I do not post my entire skripts, because I changed some stuff in plisks-config, which don't seem usefull for everybody (e.g.: I removed the colour theme switching for a bit more performance) and the scripts look a bit messy.

It basically comes down to add this to your "Globals":
CODE
$if($strcmp(%skip%,1),is_skipped=1,)

Now, you can use %_is_skipped% in your columns.
In plisks configuration this basically involves two flavours of insertions:

First flavour for columns, where there's already something configured in the "Colour"-Tab.

E.g. the Title column: Go to the "Colour"-Tab:
Change this:
CODE
$if(%_isplaying%,%_ptext%,
$if($and(%_is_first%,$not(%_is_single%)),%_altext%,
%_ntext%))|

into this:
CODE
$if(%_isplaying%,%_ptext%,
$if(%_is_skipped%,%_brtext%,$if($and(%_is_first%,$not(%_is_single%)),%_altext%,
%_ntext%)))|

Pay attention to the third closing braket at the end! This way, the song title colour is changed only, when the song is NOT playing (remember: you can play songs marked as skipped with a double-click). Actually the colour is changed to the colour normally used for less important text %_brtext% (e.g. text in brakets).

The other sort of change is bit more concise, for columns which don't have anything in their "Colour"-tab:
E.g.: Bitrate-column: Go to the "Display"-Tab:
Change this:
CODE
$if(%_isplaying%,%__bitrate_dynamic%,%__bitrate%)

into this:
CODE
$if(%_isplaying%,%__bitrate_dynamic%,$if(%_is_skipped%,%_brtext%,)%__bitrate%)

Since there's no colour, we only need to set the new one for skipped files, so the second change boils down to the insertion of the following in such columns:
CODE
$if(%_is_skipped%,%_brtext%,)

I hope, this sounds somewhat sensible to you.

QUOTE
One question:
If i mark a song for "skipped", all other songs behind are not playing too, without SKIP-TAG.
Whats wrong?

For me everything works as it ought to. So I guess, I can't be of any help here.

Regards,
Andreas
Strictly4me
@andreas
Nice explanation ..... THX! wink.gif

But i have still this problem with my skipped tracks, behind the tagged one! crying.gif
Damn.

((((( Strictly4me )))))
kdx
QUOTE
I'm not quite sure, if I absolutely understood the function of the menu entries.
If I manually add a SKIP tag to my files everything works perfectly. And 'Activate' and 'Deactivate' also seem to work as i expect, but I would have loved some sort of signal, if skip-mode is activated (perhaps a checkmark in front of 'Activate' or 'Deactivate'). At the moment I seem to have to remember or try.

are your sure, you have the second version ? I have added checkmarks there ...

QUOTE
Then I thought, 'toggle' would toggle the SKIP tag in files, but it also seems to activate or deactivate the skip mode. I'm missing a way to add the skip tags. Currently im using the Quick-Tag plugin for this, but I would have liked this feature in the Skip submenu and I can't get the Quick-Tag functions in the main menu.
Also I can't realize a "Toggle" function with quicktag.

"toggle" simply activates/deactivates the skip mode, yes. Why would you need to toggle the skip tags itself ..?

QUOTE
One question:
If i mark a song for "skipped", all other songs behind are not playing too, without SKIP-TAG.
Whats wrong?

hmm .. I actually have no idea why this could happen. Are you using some special .. ah .. "playback-flow-control-plugin" (something like shuffle) ?
if you are in default-mode .. what happens if you come to a file, which has the skip-tag ? does it just skip all files to the end of the playlist ?
Strictly4me
QUOTE (kdx @ Jan 17 2005, 02:23 AM)
Are you using some special .. ah .. "playback-flow-control-plugin" (something like shuffle) ?
if you are in default-mode .. what happens if you come to a file, which has the skip-tag ? does it just skip all files to the end of the playlist ?
*

Yes, it just skip all files to the end of the playlist! crying.gif
I'm in "repeat"-mode! - Maybe i have to change in "default"-mode?

EDIT: Ok, in "default"-mode it happens the same.

((((( Strictly4me )))))
andreas
QUOTE (kdx @ Jan 16 2005, 05:23 PM)
QUOTE
I'm not quite sure, if I absolutely understood the function of the menu entries.
If I manually add a SKIP tag to my files everything works perfectly. And 'Activate' and 'Deactivate' also seem to work as i expect, but I would have loved some sort of signal, if skip-mode is activated (perhaps a checkmark in front of 'Activate' or 'Deactivate'). At the moment I seem to have to remember or try.

are your sure, you have the second version ? I have added checkmarks there ...

Aaaargh! You're right, I'm too dumb sad.gif
Sorry, I somehow thought, I'd got the latest version.
Checkmarks work great and were nearly (see below) everything I needed.
Thanks a lot.

QUOTE (kdx @ Jan 16 2005, 05:23 PM)
QUOTE
Then I thought, 'toggle' would toggle the SKIP tag in files, but it also seems to activate or deactivate the skip mode. I'm missing a way to add the skip tags. Currently im using the Quick-Tag plugin for this, but I would have liked this feature in the Skip submenu and I can't get the Quick-Tag functions in the main menu.
Also I can't realize a "Toggle" function with quicktag.

"toggle" simply activates/deactivates the skip mode, yes. Why would you need to toggle the skip tags itself ..?

Well, in case I want to skip the files temporarily, only.
At the moment, I'm using quick tag plugin (as described before) or I've to open the file properties in order to set/change/remove the skip tag. Correct me, if I missed another smooth way of doing it. I would personally like a possibility to do this within my Skip-submenu (in order to keep this functionality in one spot).
kdx
QUOTE
Well, in case I want to skip the files temporarily, only.

Hm, what speaks against enabling/disabling the skip mode ? i thought thats what its for wink.gif
if you could toggle the skip tags, you wouldnt need to toggle skip mode (and the other way round ..)

QUOTE
Yes, it just skip all files to the end of the playlist!
I'm in "repeat"-mode! - Maybe i have to change in "default"-mode?

EDIT: Ok, in "default"-mode it happens the same.

the only reason for this i can think of is that you have an expression which always evaluates to
'true' or '1' .. which one do you have ? or try to change it to "false" ..
Strictly4me
QUOTE
'true' or '1' .. which one do you have ? or try to change it to "false"

I use "true"now , but i also tried "1". I don't think with "false" it will run. sad.gif
Any other idea for me?

((((( Strictly4me )))))
kdx
QUOTE
I use "true"now , but i also tried "1"

well, lol, okay .. the plugin skips all tracks for which the expression you entered evaluates to "true" or "1" .. so if you have entered "true" as the expression, it will skip all tracks .. try the default '$if2(%skip%,0)' .. it should work as you think it should wink.gif
Strictly4me
QUOTE
try the default '$if2(%skip%,0)' .. it should work as you think it should

*g* .... thats crazy!
With "$if2(%skip%,0)" it works perfect! blink.gif
THX for your help, man! wink.gif

((((( Strictly4me )))))
andreas
QUOTE (kdx @ Jan 17 2005, 03:13 AM)
QUOTE
Well, in case I want to skip the files temporarily, only.

Hm, what speaks against enabling/disabling the skip mode ? i thought thats what its for wink.gif
if you could toggle the skip tags, you wouldnt need to toggle skip mode (and the other way round ..)

But what, if I've marked a dozen files in a playlist for skipping, but want to enable only a few them temporarily?
And also, as I said, I would like to have the entire skip control in one menu, without the need for adding a tag manually.
On the other hand, if it's only me, who thinks of this as a useful functionality, you shouldn't bother too much. You've already done a nice plugin, and I can't thank you enough for this.
Olive
Nice plugin! Could you make it so that when you click previous it'll skip back instead of forward? For example I'm playing track i and track i-1 is marked %skip% then clicking Previous should play track i-2.
kdx
QUOTE (Olive @ Jan 18 2005, 02:58 PM)
Nice plugin! Could you make it so that when you click previous it'll skip back instead of forward? For example I'm playing track i and track i-1 is marked %skip% then clicking Previous should play track i-2.
*

okay, updated. I had to cheat a litte again and the whole thing is based on the assumption that a track with skip-tag wants to be played only once between starting and stopping playback but it should work in practically all scenarios ...

edit: in your described case, it only works, if track i-1 was skipped before. otherwise you have to click previous twice

problem is that there is no callback 'user has clicked previous' (at least not that i know unsure.gif )
Olive
I was assuming that Previous & Next were more or less symmetrical routines, apparently not. Ok thanks -)
anza
Thanks for teh plugin! It works well enough for me with foo_quicktag_sql.dll.
xliu5
How does it work on multiple evaluations? I see that you can add more than one expressions at the configuration. Does it do "OR" or "AND"?
Say if I want to skip the tracking either with "SKIP" tag (equal "1") or with "RATING" tag (lower than "3"), it doesn't seem to do it. What about the same with "AND"?
matth6546
great plug-in, but i have a suggestion:

it'd be nice if i could customize what value or range of values that skip control looks for.

example: i made a custom setting that evaluates %play_counter%, this way foobar won't play songs with a play count of 1 without me having to individually mark any songs.

what i'd like to do is evaluate a tag, %play_counter% in my case, and see if the value is greater/less than x. right now, foobar will only skip songs with a play count of 1, but it still plays any song with a play count greater than 1. i'd like to make a setting to skip all songs with a play count greater than 0.
Lance Uppercut
QUOTE (matth6546 @ Apr 23 2005, 11:57 PM)
great plug-in, but i have a suggestion:

it'd be nice if i could customize what value or range of values that skip control looks for.

example: i made a custom setting that evaluates %play_counter%, this way foobar won't play songs with a play count of 1 without me having to individually mark any songs.

what i'd like to do is evaluate a tag, %play_counter% in my case, and see if the value is greater/less than x. right now, foobar will only skip songs with a play count of 1, but it still plays any song with a play count greater than 1. i'd like to make a setting to skip all songs with a play count greater than 0.
*


This plugin is great. I use the following to skip songs with a rating of 2 or less:

CODE
$ifgreater(%rating%,2,0,1)


matth6546, for your situation, the following should work:

CODE
$ifgreater(%play_counter%,0,1,0)
Squeller
I found a problem.

I use foo_dsp_continuator. At the end of a track and if the next track in playlist is a skipped track, foobar plays about 1/2 sec. of the skipped track and then goes on with the next, unskipped track.

I fear foo_skip has no influence on this and the author of the continuator has to take care of the skip-tag?

EDIT: Even worse. If a track is followed by, say 15 skip tracks. Foobar does play 1/2 second of about the following 10 tracks, then it goes backwards and starts playing the last unskip track, which already has been played.
Strictly4me
QUOTE (Lance Uppercut @ Apr 24 2005, 01:31 PM)
matth6546, for your situation, the following should work:
CODE
$ifgreater(%play_counter%,0,1,0)

This code is not working for me! Any idea else?

((((( Strictly4me )))))
Anas
Thanks a lot for this great plugin! It's really useful for me. biggrin.gif
Finally no more crippled albums in the playlist tongue.gif

EDIT:
Found a weird bug:
I've 242 files in palylist. The last ones are all active. The first 8 ones are all inactive.
Now when the end of the playlist is reached and it starts at the beginning, then the cursor goes excactly down till the first active track (9) and then goes backwards blink.gif back to the end of the playlist and starts again with the last song.
F*cking weird.... ohmy.gif
fabiospark
Just installed foo_skip 0.1.

Found a bug:

Playback mode = repeat one

If I play an active track followed by inactive ones, when the active ends fb skips after the inactive even if it is in repeat one.

If the active is not just before the inactive ones, at the end of the active I can see some flickering in the trackinfo panel. I think it is skipping somewhere...

Can you have a look, please?

Thanks.
SoulMan
Good little plugin, thank you.
iOsiris
Due to the fact that my ratings use bars instead of #s
Eg:
|
||
|||
||||
|||||

$ifgreater(%play_counter%,0,1,0) - doesn't work for me

So I tried writing one for strings

$iflonger($len(%rating%), 3, 0, 1)

But can anyone help me out, it looks right to me but doesn't work ?
digidistortions
$ifgreater($len(%rating%),3,0,1)

I didn't really read this thread so I'm not sure what you're trying to do, but it looked like you were misusing $iflonger() when you really wanted $ifgreater()
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-2009 Invision Power Services, Inc.