Help - Search - Members - Calendar
Full Version: [Request] Inactive Tracks
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
Pages: 1, 2, 3
iOsiris
Well Lance Uppercut uses "$ifgreater(%rating%,2,0,1)" to play songs with ratings over two. But I'm assuming that his music collection uses rating tagged accordingly "1, 2, 3, 4, 5" but mine uses "|, ||, |||, ||||, |||||" so you can't use numeric values to compare the rating metadata. So that's why I tried to make it so it just compares the length of the string of the %rating% tag with "$iflonger($len(%rating%), 3, 0, 1)" but it doesn't work, I was just wondering if anyone knows why ? or if my code is completely wrong..
digidistortions
QUOTE(iOsiris @ Dec 12 2005, 03:37 PM)
Well Lance Uppercut uses "$ifgreater(%rating%,2,0,1)" to play songs with ratings over two.  But I'm assuming that his music collection uses rating tagged accordingly "1, 2, 3, 4, 5" but mine uses "|, ||, |||, ||||, |||||" so you can't use numeric values to compare the rating metadata.  So that's why I tried to make it so it just compares the length of the string of the %rating% tag with "$iflonger($len(%rating%), 3, 0, 1)" but it doesn't work, I was just wondering if anyone knows why ? or if my code is completely wrong..
*


Did you try what I suggested? Using $iflonger() you are comparing the LENGTH of $len(%rating%) (which would be a single digit number) to the LENGTH of " 3" (which is two characters...the space counts). Therefore every track you point that at will come back false because the first length (1) is not longer than the second length (2).

What I suggested should instead take the length of %rating% (it will be either 1, 2, 3, 4, 5) and if it is greater than 3, it will play the song (I guess).
iOsiris
Ah I see, your code does work

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

thank you so much biggrin.gif
iStormy
QUOTE(iOsiris @ Dec 12 2005, 01:33 PM)
Due to the fact that my ratings use bars instead of #s
|||
||||
$ifgreater(%play_counter%,0,1,0) - doesn't work for me
*

It looks like you're storing your rating as the actual "|||" string. If you use a number instead, and simply display that number of "|" in your TAGZ code, you won't have further problems, and you'll be able to change the display character at will.
SoulMan
A great way to have a random that play mors most rated tracks :

$if($or(%talking%,$and(%rating%,$greater($add(1,$mod($rand(),10)),$sub($mul(%rating%,2),1)))),1,0)

The track is skiped if the TALKING tag is present, and if the tag RATING is present, I compare a 1-10 random number to the (RATING * 2) - 1
The resulting probability is :
Rating < 1 --> 0 / 10
Rating = 1 --> 1 / 10
Rating = 2 --> 3 / 10
Rating = 3 --> 5 / 10
Rating = 4 --> 7 / 10
Rating = 5 --> 9 / 10
Rating > 5 --> 10 / 10
randal1013
is there any plan to update this for .9?
Bacchus95
QUOTE(randal1013 @ Apr 9 2006, 08:27 PM) *

is there any plan to update this for .9?

+1
randal1013
anyone feel like porting this?
iOsiris
QUOTE(randal1013 @ May 25 2006, 02:04) *

anyone feel like porting this?

Yeh would someone please port this to .9 ! biggrin.gif
DanDanRevolution
(*bump*)

some kind coder, please port? i think i'm developing RSI from skipping manually

crying.gif crying.gif crying.gif

thank you in advance ;-)
DanDanRevolution
QUOTE(DanDanRevolution @ Jun 24 2006, 21:26) *

(*bump*)

some kind coder, please port? i think i'm developing RSI from skipping manually

crying.gif crying.gif crying.gif

thank you in advance ;-)


unsure.gif pa-palease, kind sirs?
bytemastr
Unless I'm missing something (and I've tried extensive searches on Google, the author's web site, and here on the forums), the source isn't available for anyone but the author to port. I did send'm an email, but have gotten no response yet.

QUOTE(DanDanRevolution @ Jul 2 2006, 15:10) *

unsure.gif pa-palease, kind sirs?

kdx
QUOTE(bytemastr @ Jul 4 2006, 19:02) *

Unless I'm missing something (and I've tried extensive searches on Google, the author's web site, and here on the forums), the source isn't available for anyone but the author to port. I did send'm an email, but have gotten no response yet.

got your email and just ported it to 0.9 smile.gif

the good thing is that with 0.9 i didnt have to do the workaround which assumes that a file gets played only once, the bad thing that i dont see a way to *really* skip the song instead of programmatically press the next button (this is how it worked before as well, but 0.9 doesnt like it even less than 0.8 wink.gif )

well, try it out and see, if it does any problems, you can get it here
randal1013
QUOTE(kdx @ Jul 5 2006, 19:50) *

QUOTE(bytemastr @ Jul 4 2006, 19:02) *

Unless I'm missing something (and I've tried extensive searches on Google, the author's web site, and here on the forums), the source isn't available for anyone but the author to port. I did send'm an email, but have gotten no response yet.

got your email and just ported it to 0.9 smile.gif

the good thing is that with 0.9 i didnt have to do the workaround which assumes that a file gets played only once, the bad thing that i dont see a way to *really* skip the song instead of programmatically press the next button (this is how it worked before as well, but 0.9 doesnt like it even less than 0.8 wink.gif )

well, try it out and see, if it does any problems, you can get it here

this is great news......but...um....there doesnt appear to be a download link...
bytemastr
I went back and used this original link in the forum and ended up with the correct 0.9 binary, which I'm using right now.

QUOTE(randal1013 @ Jul 5 2006, 23:39) *

this is great news......but...um....there doesnt appear to be a download link...

kdx
QUOTE(randal1013 @ Jul 5 2006, 20:39) *

this is great news......but...um....there doesnt appear to be a download link...

sorry, it was a bit late .. should work now wink.gif
randal1013
QUOTE(kdx @ Jul 6 2006, 05:44) *

QUOTE(randal1013 @ Jul 5 2006, 20:39) *

this is great news......but...um....there doesnt appear to be a download link...

sorry, it was a bit late .. should work now wink.gif

sweet! thanks for porting this, i find it really useful. biggrin.gif
Brainbug
cool thing! big big thanx
DanDanRevolution
QUOTE(kdx @ Jul 5 2006, 17:50) *

QUOTE(bytemastr @ Jul 4 2006, 19:02) *

Unless I'm missing something (and I've tried extensive searches on Google, the author's web site, and here on the forums), the source isn't available for anyone but the author to port. I did send'm an email, but have gotten no response yet.

got your email and just ported it to 0.9 smile.gif

the good thing is that with 0.9 i didnt have to do the workaround which assumes that a file gets played only once, the bad thing that i dont see a way to *really* skip the song instead of programmatically press the next button (this is how it worked before as well, but 0.9 doesnt like it even less than 0.8 wink.gif )

well, try it out and see, if it does any problems, you can get it here



... I ... love... I ... I LOVE YOU! laugh.gif laugh.gif laugh.gif
randal1013
would it be possible for foo_skip to recognize %_system_xxxx% time fields? like %_system_year%, etc..
TheTravis
Is there some way to change font on the playlist for skipped tracks? I'd like to have skipped tracks with striketrough font and normal tracks with defaul font.

Example:
Title | Artist | Album
Voodoo Chile | The Jimi Hendrix Experience | The Best air guitar...
Me and Bill | The Knob | - <--- This track is is skipped
Want You Bad | The Offspring | Conspiracy of one

Is there something like $striketrough() function? At the moment I'm using $rgb() to change the colour of skipped track titles. I'm using columns_ui version 0.1.3 beta.
Brother John
Thanks for the port, kdx. This was the last plugin needed to make fb2k 0.9 complete. smile.gif

QUOTE(TheTravis)
Is there some way to change font on the playlist for skipped tracks?

No. Neither Default UI nor Columns UI allow font changes for individual tracks.

Brother John
randal1013
it would be of great help if this plug-in could read variables in columns_ui global tab. would this be possible?
rouge
This is sort-of related, but I thought a plug-in that would skip a predefined section of a song would be cool. Like, the annoying intro to a good song, or a 20 minute outtro.
q-stankovic
Thanks for porting! smile.gif

I would like to make a feature request:

Could you implement a variable like %will_be_skipped% that will show you wich track is going to be skipped in dependence of the string you use.

Not so important but very nice would be a dropdown box from which you can choose your string (why not represented by friendly names) or disable the skip function.
Sam Stoat
QUOTE(randal1013 @ Jul 22 2006, 16:50) *
would it be possible for foo_skip to recognize %_system_xxxx% time fields? like %_system_year%, etc..
I'll second this one. You could stop christmas songs playing all year round and limit them to December. biggrin.gif
q-stankovic
@sam stoat
This plugin will make %systemdate% and%systemdatetime% available for foobar
ojdo
In this post I'm requesting a new feature: Weighted random playback. If foo_skip also could deal with values between 0 (never skip) and 1 (skip always) which represent a "skip probability" this plugin could provide the requested functionality. As there any chance that the author of this plugin could code that?

Waiting and hoping,
ojdo
Bacchus95
QUOTE(ojdo @ Sep 1 2006, 14:41) *

In this post I'm requesting a new feature: Weighted random playback. If foo_skip also could deal with values between 0 (never skip) and 1 (skip always) which represent a "skip probability" this plugin could provide the requested functionality. As there any chance that the author of this plugin could code that?

Waiting and hoping,
ojdo


You can use $rand() to do this.
TheTravis
QUOTE(Bacchus95 @ Sep 1 2006, 17:24) *


You can use $rand() to do this.



Hmm... Something like $ifgreater($rand(100),80,1,0) will skip a track with 20 percent propability? I must try it
ojdo
QUOTE(Bacchus95 @ Sep 1 2006, 16:24) *

QUOTE(ojdo @ Sep 1 2006, 14:41) *

In this post I'm requesting a new feature: Weighted random playback. If foo_skip also could deal with values between 0 (never skip) and 1 (skip always) which represent a "skip probability" this plugin could provide the requested functionality. As there any chance that the author of this plugin could code that?


You can use $rand() to do this.

Thank you so much! How could I forget about good old $rand()... blush.gif
lakser
download link is dead
anyone can help?
Strictly4me
foo_skip Download

((((( Strictly4me )))))
lakser
thanks

Kdx also sent link for old version,

Mucho gracias to both
worldestroyer
How would one go about adapting the "$ifgreater($rand(100),80,1,0)" to make it only skip a percentage of skip tag'd songs.
Zoominee
QUOTE(worldestroyer @ Dec 31 2006, 12:00) *

How would one go about adapting the "$ifgreater($rand(100),80,1,0)" to make it only skip a percentage of skip tag'd songs.

That code would skip 80/100 (i.e. 80%) of the time. If you want to customise the skip percentage, you can change the numbers. For example, if you have a tag called "skip" that contains an integer between 0 and 100, which denotes the probability that you want to skip, you can put %skip% instead of 80, i.e.
$ifgreater($rand(100),%skip%,1,0).

-------------------------------------------------------------

Dear kdx, maker of this very useful plugin! I'm wondering, would it be possible to recognise tracks from the "enqueue" queue and never skip them?

(I've tried three times posting this, it looks fine on the preview but always ends up in my previous post... Hopefully this time it won't!)
chair
QUOTE(Strictly4me @ Nov 1 2006, 13:39) *

foo_skip Download

((((( Strictly4me )))))


This link seems to be dead as well, and the link on the components repository wiki site is dead too.

Repository Link

Can someone else please set up a mirror? I am running foobar2000 v0.9.4.1.

Thanks.
Jugdish
If playback mode is set to repeat the playlist and the playlist contains only skipped items, foo_skip should STOP playback. What it does currently is get stuck in an infinite loop, constantly printing to the console "skipping: file://X.mp3".

Here's an example scenario to illustrate this bug:
1. Set playback mode to "Repeat (playlist)"
2. Start playing a playlist which contains a single song.
2. During playback, mark the song to be skipped.
3. When the song finishes playing, foo_skip will get stuck in an infinite loop (check the console).
x10
just discoverd this
so when i make it
$ifgreater(%rating%,3,0,1)
to play rating 3+

and
$if2(%rating%,0)
to play unrated files?
funkfuzz
QUOTE(x10 @ Apr 3 2007, 13:51) *

just discoverd this
so when i make it
$ifgreater(%rating%,3,0,1)
to play rating 3+

and
$if2(%rating%,0)
to play unrated files?


That didn't work for me.

I'd like to be able to:

Play songs that have no rating
AND
Play songs that have a rating of 3, 4 or 5.

In other words, I want to SKIP songs with ratings of 1 or 2. "$ifgreater" in this case, won't work.

Anyone know how to do this? I'm using the Custom Info SQLite DB for my ratings (if that helps).

Thanks!
BenAddiction
@funkfuzz

$if(%rating%,$ifgreater(3,%rating%,1,0),0)
funkfuzz
QUOTE(BenAddiction @ Apr 27 2007, 16:29) *

@funkfuzz

$if(%rating%,$ifgreater(3,%rating%,1,0),0)



Worked like a charm. Thanks BenAddiction. wink.gif
eradumvelhinho
Let's see if someone can help me.
Problem: when I have 2 files from the same album (one .cue and another .mp3), they both go to the library of foobar. So basically you have two times the same album. I want to have only the cue file. I installed foo_skip hoping that this dll would solve my problem (I put a SKIP tag in the big files). But, when you play a file from the .cue file, they inherit the properties of the .mp3 file. So, all the songs in the .cue file stay with "SKIP = 1" value.
How do you do with your library in this case? Do you use another component?
With lossless files I dont have this problem, because I put the .cue file inside the tag "cuesheet" of the big files. But with mp3 files, you cannot do this.

Thanks for any help
locutus
Any working link for this plugin for foobar 0.9 available?
locutus
QUOTE(locutus @ Aug 13 2007, 07:02) *

Any working link for this plugin for foobar 0.9 available?

Found the link, installed and have seen the new topic in the menu. But how do i mark a file for skipping?
ppnilpa
Script
CODE

$if($or(%talking%,$and(%rating%,$greater($add(1,$mod($cwb_rand(),10)),$sub($mul(%rating%,2),1)))),1,0)


posted here is really nice. But what if i want to use hotness instead of rating?

I cant use multiline scripts with foo_skip as i understand.
buktore adopted hotness script to single line, but i didnt manage to make it work with foo_skip alike %rating% did.

Does anybody here use hotness with foo_skip? Any ideas? Maybe i can calculate hotness for every track in playlist with... hmmm... columns_ui or something. And then skip tracks using %hotness%
Zoominee
QUOTE(ppnilpa @ Feb 4 2008, 19:35) *

Maybe i can calculate hotness for every track in playlist with... hmmm... columns_ui or something. And then skip tracks using %hotness%

Does it work with $get_global(hotness) as suggested at the top of the hotness thread? Otherwise, you could I suppose put the whole hotness code on one line into the skip control (get rid of anything that is comments, i.e. anything to the right ot // including that symbol).
ppnilpa
QUOTE(Zoominee @ Feb 4 2008, 22:23) *

QUOTE(ppnilpa @ Feb 4 2008, 19:35) *

Maybe i can calculate hotness for every track in playlist with... hmmm... columns_ui or something. And then skip tracks using %hotness%

Does it work with $get_global(hotness) as suggested at the top of the hotness thread?

No. For me - No. It is displayed correctly in column, but is useless with foo_skip. So I asked here whether this trick works for anybody.

QUOTE(Zoominee @ Feb 4 2008, 22:23) *

Otherwise, you could I suppose put the whole hotness code on one line into the skip control

I've mentioned single line hotness script. It does not work for me either.
buktore
QUOTE
I've mentioned single line hotness script. It does not work for me either.

What he meant is to use hotness code inside skip control + a bit change.

Here, should work.
QUOTE
$ifgreater($mod($cwb_rand(),100),PASTE ENTIRE SINGLE LINE HOTNESS SCRIPT HERE,1,0)

This will use hotness as it shown as a play probability.

And here the another version for rating that work.
QUOTE
$if($or(%skip%,$greater($mod($cwb_rand(),100),$if(%rating%,$mul(%rating%,20),50))),1,0)

1 star = 20% to pick the track.
If there is SKIP tag present, it will always skip that track.
The bold number is the probability rate in % for track that don't have rating. Change to 0 will make it skip all track that don't have rating.
jacobbrett
A database method implementation would convince me to use this, as with this plugin (allows entry of custom comments without modifying the file's tags as they are stored in a local db): http://wiki.hydrogenaudio.org/index.php?ti...o_custominfo%29

The user is given the choice of storing data via:
  • Foobar2k config file: saves all info fields in foobar's configuration file. Reasonable loading time, fast reading of info, fast writing of info. This is also insecure, you will lose all changes since the last config file saving if foobar crashes or something.
  • Text file (foobar2kdir\custominfo.txt): Utf-8 encoded text file (which shouldn't be modified though). Slow loading, fast reading of info, fast writing of info. This is also insecure, changes are not written to disk until you exit foobar.
  • SQLite database (foobar2kdir\custominfo_sqlite.db): Slow loading, fast reading of info, slow writing of info. Changes are immediately written to disk which is why I personally recommend this option.

In fact, couldn't these two plugins be used in conjunction? Use 'Custom Info' to store a rating of 1-5, output it as %rating%, then use that with foo skip?
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.