Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_pathinfo (Read 2157 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

foo_pathinfo

foo_pathinfo is another small component, that provides %folder_created% and %folder_modified% titleformat fields for each item in the library, reflecting the creation and modification timestamp of the item's containing folder.

useful if you wanna sort an (auto)playlist by folder timestamps, while keeping the contents of the folder next to each other (especially handy if you group by $directory_path(%path%) in columns_ui)

an example (autoplaylist) query:
  X:\Music\Incoming SORT ASCENDING BY "$sub(99999999999999,$replace(%folder_modified%,'-',,':',,' ',))-%track%"
which sorts results by most recent folders, and keeps tracks ordered by number inside the folders.

compatible with foobar2000 1.6.16+, available in both x86 and x64 versions

notes:
- has not been tested on Wine, etc., either.

latest version:
0.5.0 (initial release)

Re: foo_pathinfo

Reply #1
Thanks for your component.
I have a question.

yyyy-mm
"$cut($date(%file_created%),7)" IS 2023-07
Media Library, Album List, Filter Search (CUI), etc... usable

"$cut($date(%folder_created%),7)" IS 2023-07
Media Library, Album List, Filter Search (CUI), etc... Not available

foobar2000 v2.1 preview 2023-08-01 : 32-bit | 64-bit (Default UI, Columns UI)

Thanks.
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD 490 PRO, DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH-ULT900N (ULT WEAR) (made a Upgrade/Balanced Cable by myself)

Re: foo_pathinfo

Reply #2
Media Library, Album List, ReFacets Filters, Filter Search (CUI), etc...
Folder Created: %folder_created% DURING LAST 4 WEEKS
does not work.
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD 490 PRO, DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH-ULT900N (ULT WEAR) (made a Upgrade/Balanced Cable by myself)

Re: foo_pathinfo

Reply #3
hmm, both queries work for me in the search window (sceenshots attached)

are you sure you have the right component (the one with the "x86" int the filename for the 32bit, and the other with the "x64" in it for the 64 bit version of fb2k?)...

does it show the component in the list on the "components" pane in the preferences windows?

other than this kind of accidental mix-up, i have no apparent idea what can cause this at ther moment, i'm afraid :(


Re: foo_pathinfo

Reply #4
Thank you for your reply.
Doesn't work as pictured.
Playlist View display $date(%folder_created%) and sort works fine.



SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD 490 PRO, DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH-ULT900N (ULT WEAR) (made a Upgrade/Balanced Cable by myself)

Re: foo_pathinfo

Reply #5
foobar2000 v2.1 preview 2023-08-01 64-bit
initial state
3rd party components:
foo_playcount
foo_pathinfo

is working.



When folder_created was displayed in the initial state of foobar, folder_created of other foobars started working.
Reading and writing of Media Library seems to be affected.

Many Thanks.
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD 490 PRO, DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH-ULT900N (ULT WEAR) (made a Upgrade/Balanced Cable by myself)

Re: foo_pathinfo

Reply #6
When folder_created was displayed in the initial state of foobar, folder_created of other foobars started working.

looking at your screenscaps again, a likely suspect could be a conflict with another component - the scroll-bar handle's relative size on the component list in the first batch of screenshots suggests you have quite a few installed (compared to me, at least).

by any chance - if that is indeed the case - have you since figured out which one was the culprit?

Re: foo_pathinfo

Reply #7
When folder_created was displayed in the initial state of foobar, folder_created of other foobars started working.

looking at your screenscaps again, a likely suspect could be a conflict with another component - the scroll-bar handle's relative size on the component list in the first batch of screenshots suggests you have quite a few installed (compared to me, at least).

by any chance - if that is indeed the case - have you since figured out which one was the culprit?



I also suspected a conflict with another components
But folder_create of multiple foobars for Test suddenly started working.

-foobar2000 v2.1 preview 2023-08-01 : 32-bit | 64-bit
-foobar2000 v2.0 : 32-bit | 64-bit
-foobar2000 v1.6.16

Spoiler (click to show/hide)
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD 490 PRO, DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH-ULT900N (ULT WEAR) (made a Upgrade/Balanced Cable by myself)

Re: foo_pathinfo

Reply #8
I own multiple PCs and multiple foobars.
I have several PCs with the same symptoms.
Not all are the same.
All foobars on the same PC have the same symptoms.
I am thinking of a simple solution.

Found to respond to "%folder% MISSING".
All Music Not all, but almost all.



No problem with foobar2000 v1.6.16.
Type 「"$cut($date(%folder_created%),7)" IS 2023-07」 in Media Library Search and the search results will be displayed.
After that, foobar2000 v2.x 32bit 64bit can be used without problems.
It does not seem to be affected by other components.
I'll do something about this for the time being.
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD 490 PRO, DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH-ULT900N (ULT WEAR) (made a Upgrade/Balanced Cable by myself)

Re: foo_pathinfo

Reply #9
Reply #8
> Found to respond to "%folder% MISSING".
the image is also wrong.
I'm pretty confused.

I can't find any solution for now.
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD 490 PRO, DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH-ULT900N (ULT WEAR) (made a Upgrade/Balanced Cable by myself)

Re: foo_pathinfo

Reply #10
Tested it lightly.

Folder info says «multiple items selected» when they are all from same folder.
That sure was the truth, but think over the kind of use(r)s this component targets. If I organize albums by folder, then I probably want folder info when I select the entire folder?


Re: foo_pathinfo

Reply #12
Reply #8
> Found to respond to "%folder% MISSING".
the image is also wrong.
I'm pretty confused.

I can't find any solution for now.

this component does not provide a %folder% field, however foobar provides a %path% field by default and you can use  ex. $directory(%path%) to get the folder name.

(there's a few (3) way to get a folder path actually, see: Foobar2000 Title Formatting Reference : $directory)

the %folder_created%/%folder_modified% fields should only be "MISSING" for items inside compessed files, etc.

Re: foo_pathinfo

Reply #13
Tested it lightly.

Folder info says «multiple items selected» when they are all from same folder.
That sure was the truth, but think over the kind of use(r)s this component targets. If I organize albums by folder, then I probably want folder info when I select the entire folder?

yeah, it was kinda easier to check if the count of selected items is more than 1 than to check all selected items belong to the same folder O:) but yeah, i'll look into adding this feature (yet it may complicate things too much, so i make no promises)

BTW, is it this component that leaves them orangecd.ini files around? Or is it a new Windows update?
huh, i don't think so? seems weird.

Re: foo_pathinfo

Reply #14
Reply #8
> Found to respond to "%folder% MISSING".
the image is also wrong.
I'm pretty confused.

I can't find any solution for now.

this component does not provide a %folder% field, however foobar provides a %path% field by default and you can use  ex. $directory(%path%) to get the folder name.

(there's a few (3) way to get a folder path actually, see: Foobar2000 Title Formatting Reference : $directory)

the %folder_created%/%folder_modified% fields should only be "MISSING" for items inside compessed files, etc.
This is my mistake.
that's not the problem i'm having.

6 of the 8 PCs I use do not work.

%folder_created% DURING LAST 4 WEEKS
"$cut($date(%file_created%),7)" IS 2023-07

4 of them were solved by method Reply #5.
Reply #5 https://hydrogenaud.io/index.php/topic,124568.msg1031093.html#msg1031093

The remaining two are completely useless.
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD 490 PRO, DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH-ULT900N (ULT WEAR) (made a Upgrade/Balanced Cable by myself)

Re: foo_pathinfo

Reply #15
hm, judging from some of your screenshots i may be some character encoding problems in the path?
i've attached a version which tries to mitigate such problem if it occurs, could you please check if this solves the problem?
and if not could you copy/paste the %path% of an affected item?

my naive testing by randomly inserting some CJK characters into a filename yielded no results (as it seems to work with and without the fix, but that could be due to windows language/code-page settings for example)

(also, it might worth noting that the date retrieval is only enabled for local paths, excluding mapped network drives)

(the attached file is a combined 32+64 bit component package, with version number 0.5.1)

Re: foo_pathinfo

Reply #16
Pathinfo 0.5.1
working fine.

Hmmm.

If foo_pathinfo of one foobar works, foo_pathinfo (v0.5) of foobar on the same PC will start working.
Same for other PCs.

C:\Program Files\foobar2000\foobar2000.exe (64bit)
C:\Users\ken\Documents\Online Soft 03\foobar2000\foobar2000 DUIBD x32\foobar2000\foobar2000.exe (32bit Portable)

Media Library:
X:\MyMusic
(Same for other PCs)

Many Thanks.
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD 490 PRO, DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY WH-ULT900N (ULT WEAR) (made a Upgrade/Balanced Cable by myself)

 

Re: foo_pathinfo

Reply #17
hm, very curious indeed. so it seems that 0.5.1 solved your problem?

and if it did not, then can you check one more thing:
what do you see, or even better, could you please screenshot, whats visible on the "details" tab of the "properties" dialog of an library item that does not seem to have these fields?

normally there should be a "Folder info" section with both fields (%folder_created% and %folder_modified%), or, or a single field with a "«message»" if anything fails.