foo_skip: skip tracks that match a specified search query, Was: [Request] Inactive Tracks |
![]() ![]() |
foo_skip: skip tracks that match a specified search query, Was: [Request] Inactive Tracks |
Dec 13 2005, 00:37
Post
#51
|
|
![]() Group: Members Posts: 175 Joined: 4-June 05 Member No.: 22520 |
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..
|
|
|
|
Dec 13 2005, 01:54
Post
#52
|
|
|
Group: Members Posts: 55 Joined: 12-December 03 Member No.: 10382 |
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). |
|
|
|
Dec 13 2005, 02:50
Post
#53
|
|
![]() Group: Members Posts: 175 Joined: 4-June 05 Member No.: 22520 |
Ah I see, your code does work
$ifgreater($len(%rating%),3,0,1) thank you so much |
|
|
|
Dec 14 2005, 05:44
Post
#54
|
|
|
Group: Members Posts: 116 Joined: 8-April 05 Member No.: 21293 |
[removed]
This post has been edited by iStormy: Apr 28 2009, 23:06 |
|
|
|
Dec 14 2005, 10:58
Post
#55
|
|
|
Group: Members Posts: 103 Joined: 13-February 05 Member No.: 19824 |
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 |
|
|
|
Apr 9 2006, 20:27
Post
#56
|
|
![]() Group: Members Posts: 301 Joined: 1-March 06 Member No.: 28189 |
is there any plan to update this for .9?
|
|
|
|
Apr 23 2006, 11:58
Post
#57
|
|
|
Group: Validating Posts: 4 Joined: 15-November 04 Member No.: 18148 |
|
|
|
|
May 25 2006, 09:04
Post
#58
|
|
![]() Group: Members Posts: 301 Joined: 1-March 06 Member No.: 28189 |
anyone feel like porting this?
|
|
|
|
Jun 13 2006, 17:50
Post
#59
|
|
![]() Group: Members Posts: 175 Joined: 4-June 05 Member No.: 22520 |
|
|
|
|
Jun 25 2006, 04:26
Post
#60
|
|
|
Group: Members Posts: 25 Joined: 25-June 06 Member No.: 32216 |
(*bump*)
some kind coder, please port? i think i'm developing RSI from skipping manually thank you in advance ;-) |
|
|
|
Jul 2 2006, 21:10
Post
#61
|
|
|
Group: Members Posts: 25 Joined: 25-June 06 Member No.: 32216 |
|
|
|
|
Jul 5 2006, 04:02
Post
#62
|
|
|
Group: Members Posts: 33 Joined: 15-February 06 From: Washington, DC Member No.: 27759 |
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.
|
|
|
|
Jul 6 2006, 00:50
Post
#63
|
|
|
Group: Members Posts: 45 Joined: 11-March 04 Member No.: 12667 |
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 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 well, try it out and see, if it does any problems, you can get it here |
|
|
|
Jul 6 2006, 05:39
Post
#64
|
|
![]() Group: Members Posts: 301 Joined: 1-March 06 Member No.: 28189 |
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 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 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... |
|
|
|
Jul 6 2006, 06:09
Post
#65
|
|
|
Group: Members Posts: 33 Joined: 15-February 06 From: Washington, DC Member No.: 27759 |
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.
this is great news......but...um....there doesnt appear to be a download link...
|
|
|
|
Jul 6 2006, 10:44
Post
#66
|
|
|
Group: Members Posts: 45 Joined: 11-March 04 Member No.: 12667 |
|
|
|
|
Jul 6 2006, 18:58
Post
#67
|
|
![]() Group: Members Posts: 301 Joined: 1-March 06 Member No.: 28189 |
this is great news......but...um....there doesnt appear to be a download link... sorry, it was a bit late .. should work now sweet! thanks for porting this, i find it really useful. This post has been edited by randal1013: Jul 6 2006, 18:58 |
|
|
|
Jul 6 2006, 20:04
Post
#68
|
|
![]() Group: Members Posts: 57 Joined: 2-November 05 Member No.: 25521 |
cool thing! big big thanx
This post has been edited by Brainbug: Jul 10 2006, 19:32 |
|
|
|
Jul 7 2006, 02:13
Post
#69
|
|
|
Group: Members Posts: 25 Joined: 25-June 06 Member No.: 32216 |
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 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 well, try it out and see, if it does any problems, you can get it here ... I ... love... I ... I LOVE YOU! |
|
|
|
Jul 22 2006, 16:50
Post
#70
|
|
![]() Group: Members Posts: 301 Joined: 1-March 06 Member No.: 28189 |
would it be possible for foo_skip to recognize %_system_xxxx% time fields? like %_system_year%, etc..
This post has been edited by randal1013: Aug 1 2006, 18:53 |
|
|
|
Jul 24 2006, 13:41
Post
#71
|
|
|
Group: Members Posts: 71 Joined: 10-May 06 Member No.: 30639 |
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... 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. |
|
|
|
Jul 25 2006, 15:35
Post
#72
|
|
![]() Group: Members Posts: 96 Joined: 8-March 05 From: Germany Member No.: 20465 |
Thanks for the port, kdx. This was the last plugin needed to make fb2k 0.9 complete.
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 -------------------- cu
Brother John ------ http://brother-john.net/tagz/ |
|
|
|
Aug 1 2006, 18:56
Post
#73
|
|
![]() Group: Members Posts: 301 Joined: 1-March 06 Member No.: 28189 |
it would be of great help if this plug-in could read variables in columns_ui global tab. would this be possible?
|
|
|
|
Aug 8 2006, 19:33
Post
#74
|
|
![]() Group: Members Posts: 102 Joined: 5-May 06 From: Minneapolis, MN Member No.: 30448 |
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.
|
|
|
|
Aug 13 2006, 20:39
Post
#75
|
|
![]() Group: Members Posts: 1686 Joined: 28-May 06 From: Düsseldorf Member No.: 31251 |
Thanks for porting!
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. -------------------- german support forum: www.foobar-users.de / user: qwert73
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th June 2013 - 12:45 |