IPB

Welcome Guest ( Log In | Register )

> foobar2000 General Forum Rules

This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.

See also: Hydrogenaudio Terms of Service.

 
Reply to this topicStart new topic
Sort by date, not by folder structure
Frecktel
post Jan 10 2012, 08:59
Post #1





Group: Members
Posts: 17
Joined: 11-January 09
Member No.: 65421



Hi all,

I've been trying to sort the albums of a specific artist by date, but so far no success.
I'm using Columns UI with NG playlist enabled, and my script is:
CODE
$if(%album artist%,%album artist%,%artist%) [/ %date% / %album% ]

However, it seems that this is only for display and has nothing to do with the actual sorting.
I'm coming to the conclusion that sorting is only defined by alphabetical order of the folder structure, but I would like to avoid putting the date in the album folder name, or worse, in the song title.

Probably an easy question for most of you, but I've been looking around the forum and the wiki, and didn't find anything conclusive.
Am I missing something, or is there a workaround?

Thanks.

This post has been edited by db1989: Jan 10 2012, 20:09
Reason for edit: changing [code] to [codebox] to avoid unnecessary minimal height of latter
Go to the top of the page
+Quote Post
marc2003
post Jan 10 2012, 12:01
Post #2





Group: Members
Posts: 4330
Joined: 27-January 05
From: England
Member No.: 19379



how a playlist is sorted depends entirely on how you populate it. if you add files from windows explorer or drag/drop, then you need to look at file>preferences>shell integration>sort incoming files by

if you use the filters in columns UI, then look at file>preferences>display>columns UI>filter tab>sort incoming files by.

obviously if you use other library viewers, they might also have their own settings.
Go to the top of the page
+Quote Post
Frecktel
post Jan 13 2012, 22:15
Post #3





Group: Members
Posts: 17
Joined: 11-January 09
Member No.: 65421



Thank you for your answer.
I should have mentionned that I do not create playlist, I just use the Library Viewer.
Your solution works fine for the filters, however when just browsing the album list (with the active view being the folder structure), the files displayed in the Library Viewer are not sorted by date, even when I set the shell integration to
$if(%album artist%,%album artist%,%artist%) %date% %album% %path_sort%
Any idea where I should set this script to have that sorting behaviour when the Library Viewer is activated?
Go to the top of the page
+Quote Post
db1989
post Jan 13 2012, 22:24
Post #4





Group: Super Moderator
Posts: 5159
Joined: 23-June 06
Member No.: 32180



QUOTE
the files displayed in the Library Viewer
Which library viewer? It is a category, not a monad. Do you mean the Album List?

QUOTE
are not sorted by date, even when I set the shell integration to
$if(%album artist%,%album artist%,%artist%) %date% %album% %path_sort%
They will not be, for shell integration is something different altogether.

Go to the top of the page
+Quote Post
tpijag
post Jan 13 2012, 22:31
Post #5





Group: Members
Posts: 2337
Joined: 19-May 08
Member No.: 53637



album list views are controlled by the view you have selected. If viewing by folder structure does not give you the look you want, add a new view via preferences.
Go to the top of the page
+Quote Post
db1989
post Jan 13 2012, 22:32
Post #6





Group: Super Moderator
Posts: 5159
Joined: 23-June 06
Member No.: 32180



I should perhaps have specified that the explanation of how to do just that is in my link above, but I hoped that would become clear. wink.gif
Go to the top of the page
+Quote Post
Frecktel
post Jan 14 2012, 01:03
Post #7





Group: Members
Posts: 17
Joined: 11-January 09
Member No.: 65421



Thanks.
I probably haven't given all the informations needed to understand my setup. I am new to customising Foobar, so I'm a bit lost in what settings are relevant, my apologies.
I do use Album List as a library viewer. Well actually, I use Album List Panel which I understand is needed when using columnsUI. My Album List "view" is by directory structure, and I want to keep it that way.
In the Album List Panel preference page, there is an option to "Auto send to playlist" with the default name of that playlist being "Library view". It is this auto-generated playlist that I would like to control the sorting of (by Artist, Date, Album; at the moment it is Artist, Album), keeping the Album List view by directory structure.
Is it possible?
Thanks for your help.
Go to the top of the page
+Quote Post
Frecktel
post Jan 20 2012, 04:09
Post #8





Group: Members
Posts: 17
Joined: 11-January 09
Member No.: 65421



Hi all,

After a lot of pocking around, I finally found a solution. Here it is:

Setup:
I use the Album List Panel for CUI, with view set to "directory structure". I have the "Auto send to playlist: Library view" switched on.
Now, as said in this post, this auto generated playlist will inherit the sort options of Album List Panel view - in my case by %path_name%, when I want it to be sorted by %album artist% %date% %album%.

Solution:
Preferences -> Shell Integration -> Sort incoming files by:
Set this value to %album artist% %date% %album% (or whatever you want it to be really)
By itself this does nothing. Now go to:
Preferences -> Media Library -> Album List Panel -> Advanced
And check "Apply core sort settings to added items"

Voila. Hope this helps others. Thanks for your help, and apologies if I wasn't clear from the get go.

PS: In the Album List Panel Wiki, the "Sort incoming files by" field is said to be located in Preferences-> General. Not sure if it was like that in a previous version of Foobar2K, but my version clearly doesn't have a General menu. Maybe someone can update?
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th April 2014 - 22:58