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: [Not my release] Biography view (Read 490878 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[Not my release] Biography view

Reply #700
see my edit above about the one image it can fetch.

i think your problem with artist/album artist is down to your title formatting string/tags. that's all my script uses. it's not magic.

on line 30 of the panel, you'll find this...

Code: [Select]
function on_metadb_changed() {
    im.metadb_changed();
}


replace it with..

Code: [Select]
function on_metadb_changed() {
    if (im.metadb_changed()) fb.ShowPopupMessage("Folder tf: " + im.custom_folder_tf + "\nFolder: " + im.folder);
}


code edited because i forgot artist is irrelevant when using custom mode. 

[Not my release] Biography view

Reply #701
Another info : I think I have finally found an artist where Bio component can find info but your script can't :
Nils Landgren Funk Unit

Last.fm page ( http://www.lastfm.fr/music/Nils+Landgren+Funk+Unit ) doesn't show any Bio for this artist.
Hence your script doesn't show anything.
However, Bio component displays this : http://img15.hostingpics.net/pics/210553nils1.jpg

And again, the Bio server preferences specify last.fm as the ONLY "Current source list"...

[Not my release] Biography view

Reply #702
Another funny test : if I cut down my Internet access, the Bio component can't display anymore the Miley Cyrus bio and image. If I resume my Internet access, the bio and image show again.
So it looks like the Bio component (v4.2.4 BTW) is fetching them online every time BUT not writing them to the custom folder. How bizarre.


foo_uie_biography component do not download image if you don't ask to do that, it only shows image.

Marc script download image and then display it from folder.
That is how work.
You can display your old images with name ''artist_01.jpg'' and cycle them , but only in off mode. That means you can't use online ''last.fm'' mode at same time when you use ''custom folder mode''.
To do that you must modify script..
This script uses different names for images then foo_uie_biography use, so you must add support in this script  to read ''artist_01.jpg'' files instead names that are already use...

[Not my release] Biography view

Reply #703
it works for me...


 

[Not my release] Biography view

Reply #704
Damn ! Well done Marc !

My last.fm webpage (in french) shows these links at the top :
    Titres
    Albums
    Images
    Vidéos
    Concerts
    Biographie
    Artistes similaires
    Charts
    Tags
    Auditeurs
    Articles
    Actualités
    Groupes

I clicked on "Biography" (which leads to http://www.lastfm.fr/music/Nils+Landgren+Funk+Unit/+wiki ) and it's empty, so I assumed there was no Bio...
But still, I thought we couldn't download stuff from last.fm anymore ?

mire777, please... I've been using the Bio component for some years now. Of course it can download images automatically, otherwise my cache folder wouldn't be 20 GB with thousands of images !!!

[Not my release] Biography view

Reply #705
you'll find the bio on the english page: http://www.last.fm/music/Nils+Landgren+Funk+Unit. you can change the language in the bio panel settings to french if you like. then it will correspond by displaying nothing like the website.

as my script uses the.echonest.com, it's english only and you don't get any choice.

Quote
But still, I thought we couldn't download stuff from last.fm anymore ?


you can still fetch text (and one image). but as you should have noticed, it's truncated to 300 characters which is why i use the alternative site.

[Not my release] Biography view

Reply #706
Damn ! Well done Marc !

My last.fm webpage (in french) shows these links at the top :
    Titres
    Albums
    Images
    Vidéos
    Concerts
    Biographie
    Artistes similaires
    Charts
    Tags
    Auditeurs
    Articles
    Actualités
    Groupes

I clicked on "Biography" (which leads to http://www.lastfm.fr/music/Nils+Landgren+Funk+Unit/+wiki ) and it's empty, so I assumed there was no Bio...
But still, I thought we couldn't download stuff from last.fm anymore ?

mire777, please... I've been using the Bio component for some years now. Of course it can download images automatically, otherwise my cache folder wouldn't be 20 GB with thousands of images !!!


I'm just saying that you must have set in the preferences to download images. Otherwise component would not download anything..You probably know it.

[Not my release] Biography view

Reply #707
Marc, here are the results of the modification of line 30 of your panel :

Folder tf: X:\PRIVATE\BIOS\%artist%\Biography\
Folder: X:\PRIVATE\BIOS\Epica\Biography\

Folder tf: X:\PRIVATE\BIOS\%artist%\Biography\
Folder: X:\PRIVATE\BIOS\Justin Timberlake\Biography\

Folder tf: X:\PRIVATE\BIOS\%artist%\Biography\
Folder: X:\PRIVATE\BIOS\Miley Cyrus\Biography\

Does it mean something to you ?

[Not my release] Biography view

Reply #708
i thought you might be using some fancy title formatting but you're not. i really am done now.

[Not my release] Biography view

Reply #709
LOL !  Thanks anyway.

I think I'm not too bad at least at basic titleformatting. Been using it for years now ! FYI here's my own "better than just %artist%" script :

Code: [Select]
$puts(d,$if($or($strcmp($len($meta(album artist2)),0),$strstr($meta(album artist2),Brilliant Classics),$and($strstr($left(%sorting%,3),OST),$not($strstr(%language%,Instrumental)))),$if($or($strcmp($len($meta(album artist)),0),$strstr($meta(album artist),Compilation)),$if($strcmp(%artist2%,?),$if($strcmp($len($meta(artist)),0),$if($strcmp($len($meta(composer)),0),'?',%composer%),%artist%),%artist2%),%album artist%),%album artist2%))$puts(d2,$if($or($strcmp($len($meta(album artist2)),0),$strstr($meta(album artist2),Brilliant Classics),$and($strstr($left(%sorting%,3),OST),$not($strstr(%language%,Instrumental)))),$if($or($strcmp($len($meta(album artist)),0),$strstr($meta(album artist),Compilation)),$if($strcmp(%artist2%,?),$if($strcmp($len($meta(artist)),0),$if($strcmp($len($meta(composer)),0),'?',composer),artist),artist2),album artist),album artist2))$puts(m,$if2($meta($get(d2),0),%$get(d2)%))$if($and($strchr($get(m),'('),$strcmp($strchr($get(m),')'),$len($get(m)))),$puts(a,$left($get(m),$sub($strchr($get(m),'('),2))),$puts(a,$get(m)))$puts(m,$meta($get(d2),1))$if($and($strchr($get(m),'('),$strcmp($strchr($get(m),')'),$len($get(m)))),$puts(b,$left($get(m),$sub($strchr($get(m),'('),2))),$puts(b,$get(m)))$puts(m,$meta($get(d2),$sub($meta_num($get(d2)),1)))$if($and($strchr($get(m),'('),$strcmp($strchr($get(m),')'),$len($get(m)))),$puts(c,$left($get(m),$sub($strchr($get(m),'('),2))),$puts(c,$get(m)))$if($strcmp($get(a),?),,[$ifgreater($meta_num($get(d2)),3,$get(a)', [...] & '$get©,$ifgreater($meta_num($get(d2)),2,$get(a)', '$get(b)' & '$get©,$ifgreater($meta_num($get(d2)),1,$get(a)' & '$get(b),$get(a))))])

You don't need to examine it. I'm pretty sure it works, since I've been using it for a while now within foobar2000. Maybe it could be more efficient/shorter, but anyway... it works.
I just pasted it in your script (this was the thingy that was too long a few posts ago, so you explained me how to insert it manually with shift  ).

But damn... that Epica thing... the images are there... I just don't get it !!! AAAAAAAAAAH !!!

PS : funny, the forum handles "( c )" as "©" even within a code or a codebox...

[Not my release] Biography view

Reply #710
can a command prompt list the files?

Code: [Select]
function on_metadb_changed() {
    if (im.metadb_changed()) p.WshShell.Run("cmd /k dir /a \"" + im.folders[0] + "\\*.*");
}

[Not my release] Biography view

Reply #711
Yes, it can :

Répertoire de X:\PRIVATE\BIOS\Epica\Biography

20/10/2013  18:02    <REP>          .
19/08/2009  22:11    <REP>          ..
20/10/2013  23:44            1 737 Epica Biography.txt.lfml
11/09/2011  00:45            31 227 Epica.jpg
18/06/2013  04:03            19 602 Epica_01.jpg
12/05/2012  16:06            24 977 Epica_02.jpg
08/05/2012  03:15            24 977 Epica_03.jpg
06/05/2012  17:32            24 977 Epica_04.jpg
12/05/2012  16:06            59 933 Epica_05.jpg
21/10/2013  02:07          181 705 Epica.png
18/06/2013  04:03        1 066 928 Epica_03.png
12/05/2012  16:06        1 066 928 Epica_01.png
18/06/2013  04:03          306 401 Epica_02.png
18/06/2013  04:03          762 082 Epica_04.png
18/06/2013  04:03          158 701 Epica_05.png
20/10/2013  23:43          143 872 Thumbs.db
              14 fichier(s)        3 874 047 octets


EDIT 1 - Right now the last.fm bio for Justin Timberlake won't appear anymore in your script ("Justin Timberlake - Nothing found."). It used to appear an hour ago or so ! And of course standard Bio component still displays it (at least the first few lines). Switching to Wikipedia doesn't change anything ("Nothing found."). Changing selection mode doesn't change anything either. Playing other songs then going back to J.T. doesn't change anything either. A foobar restart doesn't change anything either. Now that's weird, isn't it ?  Especially since I naively thought the Bio had been saved somewhere and didn't have to be downloaded every time...

EDIT 2 - as you suggested, I have changed your data folder to this : p.data_folder = "X:\PRIVATE\marc2003data"
But the folder is still completely empty. I'm wondering if there's a problem somewhere. And isn't there a semicolon missing or something ?

EDIT 3 - another sugggestion. In the same way that we can delete an image (right-click), maybe we could choose an image as the "preferred" image for that Artist, so that image would be the one displayed each time afterwards for that Artist. There are several ways to achieve that. The complicated one involves handling a database. The easy one involves saving the "preferred" image in the same directory as "preferred.jpg" (or .png or whatever).

[Not my release] Biography view

Reply #712
if you go back and look at the example i gave, you should see that double backslashes are needed to separate folders.

Code: [Select]
p.data_folder = "e:\\path\\to\\folder\\"


also you need to make this folder exists as the script won't create it for you.

if you still have problems with nothing displaying, clear your internet explorer cache. you don't normally ever have to touch it but if you've lost/deleted files generated by my scripts, you do need to clear IE to force a fresh download.

Quote
Yes, it can :


well that definitely proves there is nothing wrong with title formatting or finding the folder. i can only assume some sort of bug with the function used in the component to get the files?? as it's not actively developed, i don't think anything else can be done.

[Not my release] Biography view

Reply #713
i don't think anything else can be done.


i might have lied - i found an alternative way to list files not using the function built into the component. right click panel>Update script, restart when prompted and see if it helps.

[Not my release] Biography view

Reply #714
double backslashes are needed to separate folders

I thought it was just fancy stuff.  I'm happy to report that it works now !

i might have lied - i found an alternative way to list files not using the function built into the component. right click panel>Update script, restart when prompted and see if it helps.

It... it... works !!!    Epica images now display perfectly. Man, you are a genius ! How did you do that ?...

[Not my release] Biography view

Reply #715
i had a little help from a friend..... google.

it just took a few lines of javascript instead of using a function that is built into the component.

[Not my release] Biography view

Reply #716
So it looks like it was a bug from within the component. I knew I wasn't crazy ! 

Now the only thing that could make the whole machinery even better would be an option (= not mandatory for those who don't want it, so everyone is happy) to keep downloading online stuff (both bios and images) even if the cache is on a custom directory. Because we may want to have a custom directory AND still keep on downloading online stuff, right ?...

If that option was added, could I totally remove my standard Biography component ? I suppose I could.

[Not my release] Biography view

Reply #717
I knew I wasn't crazy !


i really thought you were. perhaps it's some issue with file attributes or permissions but i would have thought anything running from within foobar would behave the same.

anyway, you need to right click and update again because the new version ignored filenames with uppercase letters in the file extension.

as for letting you download images where you want, i'll think about but it but no promises.

any more comments really should go in this thread. this has been unbelievably off topic for this component thread.

[Not my release] Biography view

Reply #718
moved

[Not my release] Biography view

Reply #719
Romor will you do something about image artist problem in standard biography? I use your script to show bio text, the problem is that we only have one picture. I don't want to change component because of this. Maybe you can provide vbs script that showing more images?

[Not my release] Biography view

Reply #720
I'm using the biography component in three different panels, one for cover, one for artist info and one for artist photo. It looks better this way than with photo and text together.

What I miss (or don't know how to implement) is a generic (custom if possible) image while the album cover is being downloaded or in case it's not found. Any idea?

[Not my release] Biography view

Reply #721
I'm using the biography component in three different panels, one for cover, one for artist info and one for artist photo. It looks better this way than with photo and text together.

What I miss (or don't know how to implement) is a generic (custom if possible) image while the album cover is being downloaded or in case it's not found. Any idea?


You can set custom image in preferences>display>stub image path. If nothing found then it display yours image...

Or you can try something like this in panel stack splitter:

$puts(user_path,%ps_user_profile_path%)
$if($not(%album%),
$imageabs($add($get(but_w),110),$add($get(but_h),200),,,$get(user_path)images\no_album.png,nokeepaspect,))

[Not my release] Biography view

Reply #722
I'm using the biography component in three different panels, one for cover, one for artist info and one for artist photo. It looks better this way than with photo and text together.

What I miss (or don't know how to implement) is a generic (custom if possible) image while the album cover is being downloaded or in case it's not found. Any idea?


You can set custom image in preferences>display>stub image path. If nothing found then it display yours image...

Or you can try something like this in panel stack splitter:

$puts(user_path,%ps_user_profile_path%)
$if($not(%album%),
$imageabs($add($get(but_w),110),$add($get(but_h),200),,,$get(user_path)images\no_album.png,nokeepaspect,))


I've tried the stub image path option and it works. That's however, for the album art component, not the biography. For some strange reason I never get covers downloaded with the album art component. That's why I use biography for this. I don't understand the second part of your message. Where do I write that code? Sorry I'm new to foobar. Is it for UI columns? I don't use UI columns. Thanx.

[Not my release] Biography view

Reply #723
I'm using the biography component in three different panels, one for cover, one for artist info and one for artist photo. It looks better this way than with photo and text together.

What I miss (or don't know how to implement) is a generic (custom if possible) image while the album cover is being downloaded or in case it's not found. Any idea?


You can set custom image in preferences>display>stub image path. If nothing found then it display yours image...

Or you can try something like this in panel stack splitter:

$puts(user_path,%ps_user_profile_path%)
$if($not(%album%),
$imageabs($add($get(but_w),110),$add($get(but_h),200),,,$get(user_path)images\no_album.png,nokeepaspect,))


I've tried the stub image path option and it works. That's however, for the album art component, not the biography. For some strange reason I never get covers downloaded with the album art component. That's why I use biography for this. I don't understand the second part of your message. Where do I write that code? Sorry I'm new to foobar. Is it for UI columns? I don't use UI columns. Thanx.


I earlier used 'stub image path' with biography component if i set path in 'front cover' it works with biography-artist image.
It shows embedded front cover if not found from net, also you can set your image from folder.
Yes this code is for columns UI, if you use DUI, then you don't have this option. You can only use 'stub image' or try WSH bio component from Marc. But this component also don't have option to show image if not found from net i think? But you can ask Marc about that: http://www.hydrogenaudio.org/forums/index....883&st=2725

If you want to download images from last.fm, then this Marc component is best to do that. Because it download more then one image.. And you can set that this downloaded image appears as artist image in playlist with 'stub image path'.





[Not my release] Biography view

Reply #724
Is there a way to remember the last selected track/artist so that when i launch foobar2000 the biography panel is not empty??