Skip to main content
Topic: Biography Discussion (Read 53295 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Re: Biography Discussion

Reply #300
Great panel.

Is there a way I can save all my artist images in one folder? This is how I used to do it with the old Biography View before it stopped working after the last.fm update.



I have tried changing the [SAVE] section in biography.ini to:
Code: [Select]
Image [Artist] Folder=F:\Documents\Foobar\Artist\%BIO_ARTIST%

But this creates a subfolder for the artist with the artist image inside like this "%artist%\%artist%.jpg".
Is there a way I can have all of the artist images in the one folder? I'd rather not have a new folder for each artist when I only want one image per artist.

I have also tried this, but no image is saved:
Code: [Select]
Image [Artist] Folder=F:\Documents\Foobar\Artist

Re: Biography Discussion

Reply #301
@tinkerer2015
I have changed the menu handling so that different modes (e.g. image only vs combo) as well as different styles can be independently set with bio & reviews. It should be in the next version. The small difference in autofill handling between auto display and image only is because the former respects the "Layout Outer Padding Image..." settings in panel properties to provide the ability to align with text & so you can adjust it there. The latter always fills the whole panel.

@Solynth. Saving heterogenous artist images in the same folder isn't supported. Since the normal aim is to cycle through images of a particular artist, the simplest way of doing it is to have separate folders and load the images therein. That method also enables efficient updating and so I don't see it changing. You didn't really explain what you can't achieve through the way its done. Your picture showed a mixture of artist images in windows explorer (?). If that's what you want then simply apply a search filter for pictures to the master folder. If you want to display artist images in other album art viewers, playlists or browsers etc enter the appropriate patterns, e.g. in main foobar2000 preferences>display>album art>artist. For the default save location enter:
Code: [Select]
XX\foobar2000\yttm\art_img\$cut(%artist%,1)\%artist%\*
where XX is your own specific path
Most current plug-ins support that source.
That will load 1 image per artist.

Re: Biography Discussion

Reply #302
Works a treat, thanks.
The main reason is I didn't want to have folders within folders if each folder only contained 1 image file.

Re: Biography Discussion

Reply #303
Hello,

Updating to foobar2000 1.3.18 seems to have broken Biography.
Using JScript Panel 2.1.4 and Biography 0.9.0.2.
Any help with this will be highly appreciated!

Edit:
Tried installing foobar2000 1.4 beta 17 and same issue.
Should also mention I use DarkOne 4.0

Best regards


 

Re: Biography Discussion

Reply #304
Rolled back to foobar2000 1.3.17 and still no luck!
That's weird, maybe something else is broken?

Re: Biography Discussion

Reply #305
I just tried on a fresh foobar2000 1.3.19 install with JScript panel 2.1.4 & it all worked. However, for the foobar2000 1.3 series, JScript panel 2.1.4 requires installation of the vc_redist.x86.exe package as documented in the JScript panel installation instructions. Had you installed that? I assume you are properly connected to the internet etc.

The only other thing I'm aware of that could also effect 1.4 installs is a hangover of this issue, which specifically effected image downloading. Essentially, the utils.WriteTextFile in early releases of the JScript panel v2 series resulted in an invalid "foo_lastfm_img.vbs" file that wouldn't save images. Try following steps 1-4 in the post. Essentially ensure Biography version 0.9.0.2 is being used (shift + right click biography & choose configure to check). Navigate to foobar2000\yttm\foo_lastfm_img.vbs and delete the corrupt "foo_lastfm_img.vbs". Restart foobar2000. A new functional "foo_lastfm_img.vbs" should be created. You may need to use sources > force update to show images (i.e. if you've artists folders with just update.txt & no pictures). While I doubt that there's an issue with biography.ini that's in the same folder, you could also reset that by deleting (or renaming to keep a back up) and restarting foobar2000.

HTH

Re: Biography Discussion

Reply #306
Thanks for your answer! Appreciate that!

Followed your advice and got good results! YAY!

I already had VC_redist.x86.exe installed.
Internet connected... of course... :D
I deleted first the foo_lastfm_img.vbs but that didn't change anything.
Then deleted the biography.ini and the Biography worked like a charm!
I noticed that my old biography.ini backup looked different from the newly created one.
The path I had before to save images to another drive was | Album Review [Allmusic] Folder Location=X:\Biography\yttm |
The new path needed to be changed to | Album Review [Allmusic] Folder=X:\Biography\yttm |
So removing | Location | from the path did the trick!
Thanks for your input, all is good now! Biography is back!

Edit:
Updated to foobar2000 v1.3.18 and all is good!

Best regards

Re: Biography Discussion

Reply #307
@WilB,
I report about another error but when using Biography v0.9.0.2 script (see attached pic.).
Unfortunately, I didn't understand what actions cause this error.
Please check, and let me know if you need more info.
My previous report Reply #71

Thanks.

Re: Biography Discussion

Reply #308
That error doesn't make any sense. It's on line 2083, yet the v0.9.0.2 release is only 2021 lines long. So the script appears to have been modified in some way. Consequently, I don't know whether or not the error is caused by the modification, or in which part of the code to look... I haven't been able to reproduce the issue. If the script has only cosmetic modifications, i.e. it's just less condensed, then you can post the code block around your line 2083 and I'll take a look.

Re: Biography Discussion

Reply #309
@WilB,
I use the original script Biography v0.9.0.2 by WilB and didn't modify.
But I paste the text of script after line 121 where was the text JScript Panel v2.1.4 from 1 to 121 lines.
So the lines became more then 2021. I'm not correct? Is it necessary to clean the all area before paste the Biography script? or how right?
So the issue at the Line: 1962 (2083-121), Col: 175
This line is below:
Code: [Select]
 var remove = imgExisting.length + noNewLinks - artLimit; remove = Math.min(remove, imgExisting.length); if (remove > 0) {for (k = 0; k < remove; k++) imgToDelete.push({a:a, p:imgExisting[k].p}); p.save(bio_cache, JSON.stringify(imgToDelete, null, 3));}
I hope this helps to identify and fix the issue.

Thanks.

Re: Biography Discussion

Reply #310
Thanks for the extra info.

1) You should delete the default JScript panel script before pasting in biography. If you don't, functions etc are duplicated although in reality it shouldn't actually matter as JScript panel uses the last instance of things.

2) I'll add a fix for the line 2083 issue in the next version. In the meantime, there is a file in the folder foobar2000 > yttm called "cache_bio.json". It looks to me as though it might have become invalid in some way and I suggest deleting it. Then restart foobar2000. A new valid one should be auto-created. If that doesn't stop the problem, then, until the fixed version is out, please switch off the artist image cache limit in biography.ini by setting it blank:

Code: [Select]
[MISCELLANEOUS]
---
---
---
Image [Artist] Cache Limit=

HTH

Thanks for reporting.

Re: Biography Discussion

Reply #311
1) The number of images stored can be restricted to a set value: Image [Artist] Cache Limit: "menu > sources > server settings" (biography.ini). That way newer images are added & older removed to give a fixed number of up-to-date images. Due to issues with lfm & images, both a few years ago and again recently, I think its best to cache images, and not make repeated requests for the same images. Plus it's faster.
@WilB,
but that mode (only one folder for cache with overwriting files for other artist - let's say overlay cache mode) can be realizable as enable/disable option. That realized and works well (and quite fast) in the script by kgena_ua. It would be great to have this opportunity for Biography script too.
Also, speed download can be increased by selecting the quality option of images - this is sometimes a useful thing.

3) Static mode. That can be done by specifying fallback images in foobar2000>preferences>display>album art. Titleformatting can be used in the patterns (e.g. genre related images could be used) or a stub set. Artist mode checks artist patterns & album mode checks front cover patterns. If auto mode is used, any unnecessary text auto-hides when nothing is found.
I meant the lock mode like in YouTube Track Manager.

Dear WilB, Please add these features for the next version if possible.

Thanks.

Re: Biography Discussion

Reply #312
anyone have a recommendation for how I can find/scrape albums/artists in my library that haven't already been scanned with biography panel, ie last/never updated?

Re: Biography Discussion

Reply #313
one more...

The script crashes (1.4/dui) without internet connection?

Error: JScript Panel v2.1.6 (Biography v0.9.0.2 by WilB)
JavaScript runtime error:
Object expected
File: <main>
Line: 543, Col: 173
<source text only available at compile time>

Re: Biography Discussion

Reply #314
I was aware of the issue, which occurs in rather a rare scenario. It should be fixed for the next version.

In the meantime, if you're inclined, you can replace the whole of line 543 with that below. Shift + right click the script, choose configure and navigate to line 543.

Code: [Select]
this.on_state_change = function() {if (this.xmlhttp != null && this.func != null) if (this.xmlhttp.readyState == 4) {if (this.xmlhttp.status == 200) this.func(); else if (this.on_search_done_callback) this.on_search_done_callback(artist, list, done, handles);}}

Thanks for the report.

Re: Biography Discussion

Reply #315
Hi WilB
Looking forward to trying the new SpiderMonkey version.

In the mean time I have a question/request. In artist mode the 'Auto Cycle Photo' option together with an interval loops through all pics in my artist folder. However in album mode it only displays the folder/cover pic. Is there any way I can get a similar behaviour as with artist ie display all pics in my album folder? Or loop through all files in the custom cover paths in server settings.

FYI; I store my albums in separate folders under each artist folder.

Re: Biography Discussion

Reply #316
Hi WilB
Looking forward to trying the new SpiderMonkey version.

I'll 2nd that, although this is one of the most efficient panels I'm running - no lag/library browse issues - great work!

One further request/suggestion: clicking switches modes, but how about adding "open containing folder" option on ctrl-click?

It would be great to be able to easily get to the artist image folder to purge the 'unrelated same band name' photos.

Thanks again for the superb script

Re: Biography Discussion

Reply #317
Hi WillB
How can I change font size ? I tried through Propertis Panel but it does not work. Does it depend on foobar skin I use ?

Re: Biography Discussion

Reply #318
Hi WillB
How can I change font size ? I tried through Propertis Panel but it does not work. Does it depend on foobar skin I use ?

ctrl-click>Panel Properties>Zoom Font Size (%)


Re: Biography Discussion

Reply #320
New Version: JScript Biography 0.9.0.2

@tr0ner Reproduced & should be fixed. It was caused by the new utils.WriteTextFile in JScript panel v2+ saving the "foo_lastfm_img.vbs" apparently in an incompatible format. That file is used for image saving. @uberunit - this should also fix your issue. Thanks for the reports.

The issue shouldn't affect upgrades because a good "foo_lastfm_img.vbs" already existed, but will affect any fresh installs with v0.9 & v0.9.01 where it is newly created - that includes anyone using the DarkOne versions above on a fresh install. I have regressed saving the file to the previous method.

Any body who used v0.9 or v0.9.0.1 and is affected by this issue, e.g. if you used a fresh foobar2000 install or didn't use JScript Biography before 0.9 should:
1) Install Biography version 0.9.0.2
2) Navigate to foobar2000\yttm\foo_lastfm_img.vbs and delete the corrupt "foo_lastfm_img.vbs"
3) Restart foobar2000
4) You may need to use sources > force update to show images (i.e. if you've artists folders with just update.txt & no pictures)

After following the above instructions I am still having this exact issue.  I am using

JScript Panel v2.1.7.2 by marc2003
Based on WSH Panel Mod by T.P. Wang
Build: 01:54:45, Oct  3 2018
Columns UI SDK Version: 6.5

and

Biography 0.9.0.2.txt

Any help would be appreciated (and excellent work btw.)

Re: Biography Discussion

Reply #321
It sounds as though foo_lastfm_img.vbs wasn't reset. I believe the invalid version has a file size of 696 bytes.

Double check there aren't any copies of 0.9 or 0.9.0.1 in the layout, i.e. only 0.9.0.2 should be present. Then try deleting foo_lastfm_img.vbs again. To ensure you're in the right location: shift + click > file menu > browse configuration folder > yttm > foo_lastfm_img.vbs. Restart foobar2000 after deleting.

Otherwise it could be down to the site or internet etc being slow... I noticed that lfm was very slow/essentially unavailable for a while over the weekend, but it seems back to normal now. All is currently working for me.

The next version has an auto-fix of the foo_lastfm_img.vbs issue.

@Black_Over_Bills_Mothers & mjm716: requested features should also be in the next version.

HTH


Re: Biography Discussion

Reply #323
Hi WillB
How can I change font size ? I tried through Propertis Panel but it does not work. Does it depend on foobar skin I use ?

ctrl-click>Panel Properties>Zoom Font Size (%)
Hi WillB
How can I change font size ? I tried through Propertis Panel but it does not work. Does it depend on foobar skin I use ?

Hover over panel, Ctrl + Mouse Wheel.
Thanks for help.
I have another question. I want photos not to be saved.  I change in biography.ini "Image [Artist] Auto-Fetch" and "Image [Review] Auto-Fetch" from 1 to 0 but photos are still saved. What settings should I change ?

Re: Biography Discussion

Reply #324
To quote from the site: "You will implement suitable caching...". So it's not supported. In many cases it would result in repeat downloads of the same images time & again, and is slower. The site has on two occasions I know of taken steps to limit image downloading, the last late 2017. My overriding concern has always been to try & maintain access to sites, and not abuse what foobar2000 users can currently obtain in a way that jeopardises access. Anyway, best practice is always to save all images & data, else if sources disappear you'll have nothing, and layouts immediately break.

 
SimplePortal 1.0.0 RC1 © 2008-2018