Skip to main content
Topic: Special tags and Extended playlist Generator help (Read 5164 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Special tags and Extended playlist Generator help

Hi folks,

First, I'm not very good with the formatting string stuff, I understand the very easy things but the rest....  I would like to have your suggestions about this: I'm using Extended Playlist Generator to generate 'Last 50 played songs', but there's something I'm doing wrong, i can't get the right order to show up (latest song first, then previous, etc...). That's what i do:

Query: play_date GREATER 0
Search: database
Sort: %play_date% %play_time%

I limit the results to 50 tracks 

I can't find a way to show this up. I figure out that if I sort it by play_date and then by the play_time it should come up right, but it's obviously wrong  I managed some weeks ago to figure it out after a headache but my foobar config broke and I had to reconfig all again and I don't remember what I did to sort this right 

BTW I'¡m using the default play_count tagging values for date and time.

The second thing it's this: I'm using foobar in a 2 users PC, and I will like to tag favorites songs. Then I will like to generate with Extended playlist generator a playlist with favorites from user A and other with favorites from user B. This is what I came up with:

- Custom %favorite% tag field.
- Tag with Quicktag as 'favorite=A' to mark a song as A's favorite.
- Tag with Quicktag as 'favorite=B' to mark a song as B's favorite.
- Then use Extended playlist generator like this:
favorite IS A --> A' favorites playlist
favorite IS B --> B' favorites playlist

But this makes a problem, because if A mark a song as favorite but then B mark it as favorite, %favorite% keeps only the B value and remove song as A favorite. SO, A and B can't share favorites  via this tag system 

Do you have any ideas/suggestions about how you would do this? 

Thanks in advance for your help.

Special tags and Extended playlist Generator help

Reply #1
For the first thing just reverse the sorting order (works here at least).

Special tags and Extended playlist Generator help

Reply #2
Quote
For the first thing just reverse the sorting order (works here at least).

Doesn't work here...really weird. In fact last 4 played tracks are sort at then end of the generated playlist 

The last 4 tracks I've just played are (the last one first in playlist, and so on):

Bob Marley & The Wailers - 09 - Revolution.mp3
Bran Van 3000 - Drinking In LA.mp3
The Cure - 04 - Lovesong.mpc
Pearl Jam & Neil Young - 02 - Act of Love.mp3


But that's what I get:

Veruca Salt - 04 - Spiderman '79.mp3
American Thighs\Veruca Salt - 03 - Seether.mp3
Slipknot - 09 - Pulse Of The Maggots.mp3
Slipknot - 08 - Vermilion.mp3
Slipknot - 07 - Welcome.mp3
Slipknot - 06 - Circle.mp3
Slipknot - 05 - Opium Of The People.mp3
Slipknot - 03 - Three Nil.mp3
Slipknot - 02 - The Blister Exists.mp3
Slipknot - 01 - Prelude 3.0.mp3
Rancid - 19 - The Way I Feel.mp3
Rancid - 18 - Avenues & Alleyways.mp3
Rancid - 17 - As Wicked.mp3
Rancid - 16 - You Don't Care Nothin'.mp3
Rancid - 15 - The Wars End.mp3
Rancid - 14 - Disorder and Disarray.mp3
Rancid - 13 - Old Friend.mp3
Rancid - 12 - She's Automatic.mp3
Rancid - 11 - Journey to the End of the East Bay.mp3
Rancid - 09 - Ruby Soho.mp3
Rancid - 07 - Junkie Man.mp3
Rancid - 06 - Lock, Step & Gone.mp3
Rancid - 05 - Olympia Wa.mp3
Rancid - 04 - Time Bomb.mp3
Héroes del Silencio - 08 - Agosto.mp3
Héroes del Silencio - 07 - Flor Venenosa.mp3
Héroes del Silencio - 06 - La Lluvia Gris.mp3
Héroes del Silencio - 05 - Olvidado.mp3
Héroes del Silencio - 04 - No Mas Lagrimas.mp3
Héroes del Silencio - 03 - Fuente Esperanza.mp3
Héroes del Silencio - 02 - Hace Tiempo.mp3
Héroes del Silencio - 01 - Mar Adentro.mp3
Crazy Town - 06 - Butterfly.mpc
Crazy Town - 05 - Black Cloud.mpc
Crazy Town - 04 - Darkside.mpc
Crazy Town - 03 - Think Fast.mpc
Crazy Town - 02 - Toxic.mpc
Crazy Town - 01 - Intro.mpc
Rancid - 01 - Maxwell Murder.mp3
Héroes del Silencio - 11 - La Isla de las Iguanas.mp3
Héroes del Silencio - 10 - La Vision de Vuestras Almas.mp3
Héroes del Silencio - 09 - El Estanque.mp3
Crazy Town - 11 - Revolving Door.mpc
Crazy Town - 10 - Lollipop Porn.mpc
Crazy Town - 09 - Face The Music.mpc
Crazy Town - 08 - Hollywood Babylon.mpc
Bob Marley & The Wailers - 09 - Revolution.mp3
Bran Van 3000 - Drinking In LA.mp3
The Cure - 04 - Lovesong.mpc
Pearl Jam & Neil Young - 02 - Act of Love.mp3


It seems to sort the rest by artist and tracknumber (which I didn't play in the last 50 songs anyway).....     

Special tags and Extended playlist Generator help

Reply #3
Here's what settings I use (and which seem to work well..)

Query NOT %play_counter% MISSING
Search what database
Limit to 50 tracks
  • Use custom sort
    Sort spec %play_date%
  • Reverse

    My %play_date% tag uses the following format: %Y-%M-%DT$H:$M:$S$T
    This means it's something like 2004-07-07T01:23:45-02:00.

Special tags and Extended playlist Generator help

Reply #4
Quote
Here's what settings I use (and which seem to work well..)

Query NOT %play_counter% MISSING
Search what database
Limit to 50 tracks
  • Use custom sort
    Sort spec %play_date%
  • Reverse

    My %play_date% tag uses the following format: %Y-%M-%DT$H:$M:$S$T
    This means it's something like 2004-07-07T01:23:45-02:00.

Thanks a lot for your help   

I get same list with your settings, but I use defaults date settings in play_count so I guess it has to do with that. Hmm...

Special tags and Extended playlist Generator help

Reply #5
Quote
But this makes a problem, because if A mark a song as favorite but then B mark it as favorite, %favorite% keeps only the B value and remove song as A favorite. SO, A and B can't share favorites via this tag system

In the QuickTag "A" field, type
Code: [Select]
%favorite%A
. This will retain any previous data in the favorite tag.

Note, however, that this will not prevent such data as "ABBA" etc. Therefore, you can either manually clean the data, or in your code to make the favorites list, use the $strchr(x,y) function to check if the tag contains "A" or "B".

[EDIT] typos fixed.
[EDIT] Fixed italics tags
"There is no point in saving WAV... unless you have a huge HD in a very slow computer" - Jan S. (WAV or FLAC, Space No Problem)

Special tags and Extended playlist Generator help

Reply #6
Quote
In the QuickTag "A" field, type
Code: [Select]
%favorite%A
. This will retain any previous data in the favorite tag.

Note, however, that this will not prevent such data as "ABBA" etc. Therefore, you can either manually clean the data, or in your code to make the favorites list, use the [/I]$strchr(x,y) function to check if the tag contains "A" or "B".

Thanks, I'll try this later

Special tags and Extended playlist Generator help

Reply #7
Quote
In the QuickTag "A" field, type
Code: [Select]
%favorite%A
. This will retain any previous data in the favorite tag.

I can't use this with 'Quick tag' plugin (or I don't know how to setup this  ). Under details you can only enter 'field name' without % cad. to enter '%favorite%' you must use 'favorite'. Could you please tell me how I can setup this with Quick Tag? 

Special tags and Extended playlist Generator help

Reply #8
Quote
My %play_date% tag uses the following format: %Y-%M-%DT$H:$M:$S$T
This means it's something like 2004-07-07T01:23:45-02:00.

Ok, the sorting issue it's because of the %play_date% format. With default %D%M%Y% you have problems sorting. Putting it in reverse it's ok. I've just check it. Thanks for your help   

It's not  big deal, but I would like to change all existing default %play_date% format to the new one. I've read in the play counter thread that it can be done with Masstagger but after playing with it long time I don't know how to setup the function and what to use. I guess that 'Format value from other fields' it's what I'm looking for...

So that's what I try to achieve:

Old:
PLAY_DATE=%D%M%Y
PLAY_TIME=$H$M$S

New:
PLAY_DATE=%Y-%M-%D
PLAY_TIME=$H:$M:$S

Any suggestion? 

Special tags and Extended playlist Generator help

Reply #9
Quote
So that's what I try to achieve:

Old:
PLAY_DATE=%D%M%Y
PLAY_TIME=$H$M$S

New:
PLAY_DATE=%Y-%M-%D
PLAY_TIME=$H:$M:$S

Any suggestion? 

- In Masstagger, click 'Add'.
- Select 'Format value from other fields...'
- Destination field name: PLAY_DATE
- Formatting pattern: $right(%play_date%,2)-$substr(%play_date%,3,4)-$left(%play_date%,2)
- Click OK
- Repeat steps 1-2
- Destination field name: PLAY_TIME
- Formatting pattern: $left(%play_time%,2):$substr(%play_time%,3,4):$right(%play_time%,2)
- Click OK
- Back at the Masstagger main screen, click Run

I haven't tried it on my side, but it should work.

Special tags and Extended playlist Generator help

Reply #10
Quote
- In Masstagger, click 'Add'.
- Select 'Format value from other fields...'
- Destination field name: PLAY_DATE
- Formatting pattern: $right(%play_date%,2)-$substr(%play_date%,3,4)-$left(%play_date%,2)
- Click OK
- Repeat steps 1-2
- Destination field name: PLAY_TIME
- Formatting pattern: $left(%play_time%,2):$substr(%play_time%,3,4):$right(%play_time%,2)
- Click OK
- Back at the Masstagger main screen, click Run

I haven't tried it on my side, but it should work.

First of all: thanks a lot 

It works! But for the PLAY_DATE I'll have to use 4 instead of 2 for year (to 2004 be 2004 instead of 04):

$right(%play_date%,4)-$substr(%play_date%,3,4)-$left(%play_date%,2)

Thanks again! 

Special tags and Extended playlist Generator help

Reply #11
Quote
The second thing it's this: I'm using foobar in a 2 users PC, and I will like to tag favorites songs. Then I will like to generate with Extended playlist generator a playlist with favorites from user A and other with favorites from user B. This is what I came up with:

- Custom %favorite% tag field.
- Tag with Quicktag as 'favorite=A' to mark a song as A's favorite.
- Tag with Quicktag as 'favorite=B' to mark a song as B's favorite.
- Then use Extended playlist generator like this:
favorite IS A --> A' favorites playlist
favorite IS B --> B' favorites playlist

But this makes a problem, because if A mark a song as favorite but then B mark it as favorite, %favorite% keeps only the B value and remove song as A favorite. SO, A and B can't share favorites  via this tag system 

Do you have any ideas/suggestions about how you would do this?   [a href="index.php?act=findpost&pid=223510"][{POST_SNAPBACK}][/a]



Can someone point me in the right direction? I tried what Go2Null suggested me, but I didn't managed to setup 'Quick tag' plugin for doing that. I guess it can be done with Masstagger but I would like to use Quick tag as it's much easier and you can assign a shorcut key.

Thanks for your help ind advance 

Special tags and Extended playlist Generator help

Reply #12
Quote
I tried what Go2Null suggested me, but I didn't managed to setup 'Quick tag' plugin for doing that.

On the Quick Tag preferences page, set field name to "FAVOURITE" and value to "[%favourite%]A" or "[%favourite%]B". When you execute such an action, it will append "A" or "B" to the favourite tag. When no favourite tag exists, it will be created in the process.

Special tags and Extended playlist Generator help

Reply #13
Quote
On the Quick Tag preferences page, set field name to "FAVOURITE" and value to "[%favourite%]A" or "[%favourite%]B". When you execute such an action, it will append "A" or "B" to the favourite tag. When no favourite tag exists, it will be created in the process.
[a href="index.php?act=findpost&pid=224357"][{POST_SNAPBACK}][/a]


Thanks a lot! Now it works, really great. 

I guess that what's impossible it's to avoid %favorite%=ABAAABAB (because of several tagging).... Is there a way to prevent for ex. favorite to be written as A, if A already exist in the value?

Anyway, thanks again truly for all your help guys 

Special tags and Extended playlist Generator help

Reply #14
Quote
I guess that what's impossible it's to avoid %favorite%=ABAAABAB (because of several tagging).... Is there a way to prevent for ex. favorite to be written as A, if A already exist in the value?

As mentioned by Go2Null, you could use the $strchr() function. Here's how: for Favorites A use this value: "$if($strchr(%favorites%,A),%favorites%,[%favorites%]A)". Enter the same for Favorite B, replacing the As in the string to Bs.

Special tags and Extended playlist Generator help

Reply #15
Quote
As mentioned by Go2Null, you could use the $strchr() function.[a href="index.php?act=findpost&pid=224558"][{POST_SNAPBACK}][/a]

Well, you could also take the easy road, and delete every A in the %favorites% tag before adding a new one. Just use "$replace([%favorites%],A,)A" as value of your quick tag action. (Sorry for not thinking of this in the first place.)

Special tags and Extended playlist Generator help

Reply #16
Quote
Quote
As mentioned by Go2Null, you could use the $strchr() function.[a href="index.php?act=findpost&pid=224558"][{POST_SNAPBACK}][/a]

Well, you could also take the easy road, and delete every A in the %favorites% tag before adding a new one. Just use "$replace([%favorites%],A,)A" as value of your quick tag action. (Sorry for not thinking of this in the first place.)
[a href="index.php?act=findpost&pid=224917"][{POST_SNAPBACK}][/a]


Thanks a lot! Now it works really well with Quick tag  I can also remove the favorite tag from one user while keeping the other's user favorite tag using "$replace([%favorites%],A,)" (to remove A tag)...great!

Thanks for all your help 

Special tags and Extended playlist Generator help

Reply #17
Quote
"$replace([%favorites%],A,)A"


foosion: That's elegance!
"There is no point in saving WAV... unless you have a huge HD in a very slow computer" - Jan S. (WAV or FLAC, Space No Problem)

 
SimplePortal 1.0.0 RC1 © 2008-2019