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: Media Library indexing (Read 2049 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Media Library indexing

Hi !

Is there any way to refer to the media library's folder paths, like an index ?
I wanna use it to make filters in album panel list.


For example:

I have 2 sources of music, one is where I put all my favourite albums; one folder  "New stuff" and another "Great stuff", the second is where I store what I'm previewing and unsure whether to keep it or not.

I could make a script like this :

$if($strcmp($substr(%path%,1,3),E:\),'Library'$if($strstr(%path%,New stuff),' (New stuff)',$if($strstr(%path%,'Great stuff'),' (Great stuff)',)),'Incoming')| :: [%album artist% ]['('%date%')' ]%album%|[[%discnumber%.]%tracknumber%. ][%track artist% - ]%title%

but then every time I change the sources I have to rewrite all the scripts. Or every diffent computer I installed I would have to re-write all the scripts.

If I could use the index of the media library music folders It would be great.
It would be like having multiple media library that could be filtered by media library location instead of using %path%.
It could even greater to be able to assign a name to each music folder path and use that to dynamically have the scripts adapted to everyone.

Any suggestions?

Media Library indexing

Reply #1
Unsure why I got no replies, I'll try to be a little more clear


Let's say I have 2 drives :
- 1st one is where I store my favourite music. It has two folders, like "new stuff" and "old stuff", where I accordingly store my albums.
- 2nd one is where the incoming "yet-to-listen-and-censoring" music is.

Now, fb does not support multiple media libraries, so when I add these music folders all these music ends up in the same one and only MEDIA LIBRARY.

I want to be able to distinguish the music sources anytime.
I can use album list panel component and create filters like 
Code: [Select]
$if($strcmp($substr(%path%,1,3),E:\),'Library'$if($strstr(%path%,New stuff),' (New stuff)',$if($strstr(%path%,'Great stuff'),' (Great stuff)',)),'Incoming')| :: [%album artist% ]['('%date%')' ]%album%|[[%discnumber%.]%tracknumber%. ][%track artist% - ]%title%

but then everytime I change the physical path or install foobar in another pc I have to change all the album list panel's filter scripts.

After much wandering I thought that the best way to deal with this would be to using a function like $medialibind(1), for a media library's music folder index or $medialibind(name assigned in media library) if I could add an alias to a folder when I add it as a music folder in to media library.



How hard is it to implement ? (if not yet possible)
If not, any suggestions on how to solve it ?

 

Media Library indexing

Reply #2
Not a solution with what you are asking but, you could probably make your script a bit easier to change:
Code: [Select]
$puts(new,'E:\New Stuff')$puts(good,'E:\Good Stuff')$if($strstr($lower(%path%),$lower($get(new))),'Library New',$if($strstr($lower(%path%),$lower($get(good))),'Library Good','Incoming'))
(Untested, so might want to double check my syntax in case I made a mistake)

Media Library indexing

Reply #3
edit one (or more) of the "views" putting this at the beginning....

Code: [Select]
$left(%path%,3)|


as you can see, i've edited the "album" view in this screenshot...