Skip to main content
Topic: Biography Discussion (Read 54504 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Biography Discussion

Reply #276
@Nighthawk_NL. Thanks for the pm. I have now modified the theme for you.

DARKONE 3.1 modified to work with JScript Biography.

All original credit to tedgo.

To use:
1) You HAVE TO install tedgo's DarkOne v3.1 according to tedgo's instructions here.. This is required so that all the necessary stuff is in place. From tedgo instructions: ensure you BACKUP YOUR EXISTING COMPONENTS, CONFIGURATION FILES AND THEMES BEFORE EXECUTING THE SELF-EXTRACTING ARCHIVE!

2) Ensure JScript panel 2.01+ is installed.

2) Import the below fcl file: foobar2000 preferences > columns ui > main tab.

For anyone interested in DarkOne v4, I previously modified it to work with JScript Biography. That can be used with JScript panel v2.0.1+ after importing JScript Biography 0.9. Since this is upgrading from a rather old version of JScript Biography, clear panel properties to get a fresh clean set (right click > panel properties > clear).

Re: Biography Discussion

Reply #277
New Version: JScript Biography 0.9

CHANGELOG

ADD: Image reflections (enable: right click > menu > image).
- Strength/size/gradient are configurable; e.g. gradient = 0 gives whole reflection at the same level; 100 gives a sharp transition.
- Default is full size light fill. For something like NG Playlist, try: Strength,30,Size,30,Gradient,30
- Settings are in panel properties ("Image Reflection..."). Strength can also be adjusted by shift + mouse wheel over image.

ADD: Two style engines are now supported.

1) Auto, as before. Straightforward style that is used by the top, left, bottom or right preset styles.

2) Freestyle. Offers drag style positioning of image & text boxes, plus supports text overlay.
For a freestyle layout choose:
- "Layout > Overlay" preset.
- or "Layout > Create & Manage Styles > Create New Style". The new style is based on the current layout.

Press CTRL to alter layouts (requires mouse-over + panel focus [e.g. click it]). Also shows name & type.

ADD: Choice of overlay effects for use with freestyle layouts.
- Fade (default): fades image into background & offers gradient effects.
- Rectangle & round rectangle: semi-transparent or solid fills +/- rim (border) with custom colour support.
- Most overlay settings are in panel properties ("Overlay..."). Strength can also be adjusted by shift + mouse wheel over text.

ADD: Ability to create/rename/delete/export/reset CUSTOM layout styles (right click > menu > layout).

ADD: Bios & reviews can use different layouts; e.g. try bios > "overlay"; reviews > "top" with reflection.

CHG: Upgraded "More Items" button:
- Now shows Similar artists & Top Albums, previously only listed in the text, as well as "More Tags" as before.
- Click to load bios, reviews & images or cycle items.
- Use "Menu > Sources" to display button (default hidden). Button shows top left and can be resized (CTRL + mouse wheel over button).
- Set heading titleformat to show info type if required (e.g. Similar Artist, Top Album): see documentation for examples.
- Enable a separate cache for novel look-ups, if required.*

ADD: Image [Artist] Cache Limit: limits number of images stored to value set. If used with auto-add, newer images are added & older removed to give a fixed number of up-to-date images.*

CHG: Similar Artists ("Tagger" & "More Items Menu"). Number used can now be set*. If writing >20 similar artists to tag, it's likely to be necessary to increase size limits in "LargeFieldsConfig.txt" for correct operation.

All tag writing (shift + right click) is from saved sources and will work best if JScript Biography has been used for a while.

CHG: Themes are now in a sub-menu (right click > menu > layout > themes) + added a blend theme.

CHG: Altered numbering system for biography.ini version.

CHG: Last.fm language can now be set with "right click > menu > sources", as well as in server settings (biography.ini). Biography.ini also has a setting to automatically fallback to trying the English server if there are no results, as before*. The other source is only available in English.

FIX: Compatibility with JScript Panel v2.0.1.

* Settings: "menu > sources > server settings" (biography.ini).

Re: Biography Discussion

Reply #278
Sergey77,
you mush change Lastfm Server= in yttm\biography.ini

Lastfm Server: change for biographies & album reviews in different languages. Known Last.fm Servers: www.last.fm, www.last.fm/de, www.last.fm/es, www.last.fm/fr, www.last.fm/it, www.last.fm/ja, www.last.fm/pl, www.last.fm/pt, www.last.fm/ru, www.last.fm/sv, www.last.fm/tr and www.last.fm/zh.
pIv, I didn't know, thanks for the tip.

WilB, Thank You very much for your great work - JScript Biography!
this is exactly what I dreamed (and many other people, I think) to see for the fb2k.
I will test and use this script. If I'll have suggestions of improvement, I'll write ))).

Best Regards.

Re: Biography Discussion

Reply #279
New Version: JScript Biography 0.9

Hi @WilB, greatly appreciate your efforts to revive the BIO in DarkOne v4.0.  Text bios are showing up without issue but Artist images aren't being fetched; I'm just seeing the default No Photo image permanently.  I have tried my best to follow the steps correctly by reading through the 12 pages (I was late to the party) but there is a lot of info so I must be missing a step or doing something wrong.

I'm doing clean standard installs and these are the steps I take and component versions used:

- Install foobar2000_v1.4_beta_3
- Install DarkOne v4.0 as per Tedgo's method
- Load Tedgo's DarkOne v4.0 FCL
- Install JScript ("foo_jscript_panel-v2.0.1-Beta1.fb2k-component")
- Install your DarkOne v4.0 JScript Biography Version FCL
- Update Biography to v0.9 via Configure > Tools

Apologies for having to ask for your assistance - I've checked Server Settings for issues but the default looks to be in order.  Thanks in advance for any help you can offer!

Re: Biography Discussion

Reply #280
It seems writing to tags isn't able to write to multiple artists at once and also It seems to only write to currently playing artists. I didn't experience that with previous versions. Is this normal behavior or did I mess something up with the settings?

Re: Biography Discussion

Reply #281
New Version: JScript Biography 0.9.0.1

@jazzthieve. I have fixed an issue with writing similar artists to tag & that hopefully sorts the problem. Note that tag writing is only from saved sources. If writing > 4 similar artists, the similar artists list has to already exist, and in this mode there is no fall-back to writing the 4 in the biography so that missing ones can be more easily identified. Thanks for reporting.

@uberunit. I couldn't reproduce the issue with DarkOne v4. It just worked for me through the route you used. Occasionally, lfm servers don't respond very quickly or perhaps there could be an issue with the artist name you used. To rule out a problem with the biography.ini, try renaming it to something so you have a back-up & restart foobar2000 to create a new one with default settings. Biography.ini should be in foobar2000\yttm\biography.ini. I would also remove it if you decide to try the new version below.

New DarkOne v4.0 - modified with JScript Biography 0.9.0.1.

All original credit to tedgo.

To use:
1) You HAVE TO install tedgo's DarkOne v4 according to tedgo's instructions here. This is required so that all the necessary stuff is in place. From tedgo instructions: ensure you BACKUP YOUR EXISTING COMPONENTS, CONFIGURATION FILES AND THEMES BEFORE EXECUTING THE SELF-EXTRACTING ARCHIVE!

2) Ensure JScript panel 2.0.1+ is installed.

3) Import the below fcl file: foobar2000 preferences > columns ui > main tab

Re: Biography Discussion

Reply #282
Hi guys,

I uninstalled foobar and all settings to do a fresh install of Foobar 1.4 with the new Jscipt panel and biography 0.9.0.1.
For some reasons it only pulls the Artist Bio but not the covers or the artist pictures. I tried to switch from allmusic to last.fm but it did not help.
I have no idea what I might be doing wrong. Everything is on auto-fetch=1
Other than that I did not change anything in the ini.

It creates the folder for the artist in the yttm folder but in the artists folder there is only a empty txt called update.txt, no pictures.


Is there any other setting I need to change in order to get the pictures to download?
Maybe I lost some other component when reinstalling or there is some setting in the foobar options I needed to change?

Thank you for any ideas =)



Re: Biography Discussion

Reply #283
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)

Re: Biography Discussion

Reply #284
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)

Thanks for your efforts, WilB, that fixed it! I initially missed your comment advising to delete foo_lastfm_img.vbs so I did that and boom! Excellent work my friend!

Re: Biography Discussion

Reply #285
Hello Everyone!

Dear WilB,
after some use JScript Biography I concluded it works excellent.
However, I would to offer some improvements, I think so:
1.  Add mode caching of all images in one folder.  So that every next pictures of the new artist will be load with the removal of the previous pictures without storage. This will limit the disk space for images.
2.  Add a function to delete the contents of cache images and text files.
3.  Add a static mode, when new pictures and texts are not loaded for the next songs.
4.  Is it possible to exclude the frizzing of visualization when loading pictures?

Best regards.

Re: Biography Discussion

Reply #286
Hello !!!

I have this error: Error: JScript Panel v2.1.0.2 (biography v0.9.0.1 by WilB)
Error en tiempo de ejecución de JavaScript:
La longitud de la matriz debe ser un número positivo finito
File: <main>
Line: 374, Col: 46

What it means ?  Thank you for your patience

Re: Biography Discussion

Reply #287
@Sergey77 Thanks for the feedback.

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.

2) The next version should include "Open Containing Folder". That will give direct accesss to file management and the proper windows tools.

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.

4) That can occasionally occur when images are resized by JScript panel to the required resolution, which occurs on their first use. Resized images are temporarily cached & so minor occasional blips should be gone on reuse. I don't believe I can do any more than that.

@Pepmag

I couldn't reproduce the issue & had a good look at the code. I can see from the report the error, but currently haven't been able to identify an issue with the script.

Just to confirm, you haven't altered the script in any way. Right?

I can add a workaround to stop it happening but if possible I'd rather get to the route cause. If you were able to provide an example artist for which it happens or better still post the last.fm artist biography that causes the issue it may help me to see if I can reproduce it. What last.fm language are you using? If you've changed biography.ini in any way a copy of that would also be useful (right click > sources > server settings). Is there anything else unique about your PC set up? Also it's worth updating to the latest version,  (0.9.0.2) although I don't think there were any changes in that bit of the code that should effect the issue, and to use the 'Chakra' script engine if possible (shift + right click > configure).

Re: Biography Discussion

Reply #288
The script is the original and this is my biographi.ini:

[A foobar2000 restart is required for any changes to take effect. Only change entries after the equal signs. Entries have a 255 character limit.

Version 0.8.

========================================
CUSTOMISATION HELP:

AUTO-FETCH:
1 Enable web search for source. Results are cached.
0 Disable web search for source. Existing data cached to disc will be loaded. Nothing will load for a source if nothing is saved to disc.

NAMES:
Used in search, file names, headings & folder locations. %BIO_ALBUMARTIST%, %BIO_ARTIST% and %BIO_ALBUM% define titleformat used for albumartist, artist and album, respectively. Variables are specific to JScript Biography. Change default title formatting if required.

PATHS:
Enter title formatting or absolute paths. Always use the variables %BIO_ALBUMARTIST%, %BIO_ARTIST% or %BIO_ALBUM%, if applicable, to ensure correctly named paths (copy style of defaults). The 2 reviews (& 2 biographies) must have different paths. %profile% can be put at the start of the path and resolves to the foobar2000 profile folder or program folder in portable mode. Don't use %path% except in cover paths where $directory_path(%path%) can be used. As with title formatting, enclose literal ()[]'%$ in single quotes. It is recommended to validate changes by checking save paths of a few files. Trailing \ not needed. Conditional folders are not supported. File names are auto generated except cover name set.

MISCELLANEOUS:
Album Name Auto-Clean. 0 or 1; 1 strips out words that may interefere with searching.
Album Review [Allmusic] Include Partial Matches: 0 or 1; 1 includes partial matches of the album name.
Album Review & Cover [Lastfm] Use Lastfm Autocorrect: 0 or 1.
Cache Expiry: change if required - force update overrides.
Image [Artist] Auto-Add New: 0 or 1 (requires enabled auto-fetch).
Image [Artist] Fetch Number (maximum 20). Sets number of artist images to auto-fetch. If Auto-Add New is enabled, 5 is optimum.
Image [Artist] Cycle Time: enter value in seconds.
Lastfm Server: change for biographies & album reviews in different languages. Known Last.fm Servers: www.last.fm, www.last.fm/de, www.last.fm/es, www.last.fm/fr, www.last.fm/it, www.last.fm/ja, www.last.fm/pl, www.last.fm/pt, www.last.fm/ru, www.last.fm/sv, www.last.fm/tr and www.last.fm/zh.
Lastfm Server Fallback To www.last.fm: 0 or 1; 1 falls back to trying www.last.fm if set server is different & no results.
Mouse Left Button Click: Map To Double-Click: 0 or 1.
Show More Tags: 0 or 1; 1 enables display of last.fm biographies & photos of more tags. When available, a button appears in artist view. Expands all fields referenced by "%BIO_ARTIST%" and includes multivalues.
Various Artists. Change name used to identify compilations if required (not critical: helps with allmusic searches).

ADVANCED:
Image [Cover] Check Custom Paths. 0 or 1. 0 gives automatic loading of covers via foobar2000 album art reader and through checking save location, which should suffice for most users. 1 additionally checks custom front cover paths first. Custom paths: enter full path minus extension; up to 5 can be entered on separate lines allowing for different locations & file names. All title formatting + absolute paths supported. Use $replace for custom illegal character replacements (no auto replacements here). %BIO_ALBUMARTIST%, %BIO_ARTIST% and %BIO_ALBUM% supported, but don't have to be used if standard fields work.
Example path=%profile%\cover\$replace(%album artist% - %album%,/,_,\,_,|,_,:,_,*,_,",_,<,_,>,_,?,_) '['%date%']'
%path% OK here as load only & no save incompatibility with radio streams etc.]
========================================

[AUTO-FETCH]
Biography [Allmusic] Auto-Fetch=1
Biography [Lastfm] Auto-Fetch=1
Album Review [Allmusic] Auto-Fetch=1
Album Review [Lastfm] Auto-Fetch=1
Image [Artist] Auto-Fetch=1
Image [Cover] Auto-Fetch=0
[NAMES]
%BIO_ALBUMARTIST%=$if3($meta(album artist,0),$meta(artist,0),$meta(composer,0),$meta(performer,0))
%BIO_ARTIST%=$if3($meta(artist,0),$meta(album artist,0),$meta(composer,0),$meta(performer,0))
%BIO_ALBUM%=$meta(album,0)
[PATHS]
Album Review [Allmusic] Folder Location=%profile%\yttm\review\allmusic\$lower($cut(%BIO_ALBUMARTIST%,1))
Album Review [Lastfm] Folder Location=%profile%\yttm\review\lastfm\$lower($cut(%BIO_ALBUMARTIST%,1))
Biography [Allmusic] Folder Location=%profile%\yttm\biography\allmusic\$lower($cut(%BIO_ARTIST%,1))
Biography [Lastfm] Folder Location=%profile%\yttm\biography\lastfm\$lower($cut(%BIO_ARTIST%,1))
Image [Artist] Folder Location=%profile%\yttm\art_img\$lower($cut(%BIO_ARTIST%,1))\%BIO_ARTIST%
Image [Cover] Folder Location=$directory_path(%path%)
Image [Cover] File Name=cover
[MISCELLANEOUS]
Album Name Auto-Clean=0
Album Review [Allmusic] Include Partial Matches=1
Album Review & Cover [Lastfm] Use Lastfm Autocorrect=1
Cache Expiry (days: minimum 28)=28
Image [Artist] Auto-Add New=1
Image [Artist] Fetch Number (maximum 20)=5
Image [Artist] Cycle Time (seconds)=8
Lastfm Server=www.last.fm
Lastfm Server Fallback To www.last.fm=0
Mouse Left Button Click: Map To Double-Click=1
Show More Tags=1
Various Artists=Various Artists
[ADVANCED]
Image [Cover] Check Custom Paths=0
Image [Cover] Custom Path 1=
Image [Cover] Custom Path 2=
Image [Cover] Custom Path 3=
Image [Cover] Custom Path 4=
Image [Cover] Custom Path 5=
[LASTFM LANGUAGE]
Lastfm Language=ES
************************************************************

thank you for your time

Pepe

Re: Biography Discussion

Reply #289
Sorry for steal the focus of your problem but I have a doubt.

I'm using 0.9.0.2 version and I don't have a

Code: [Select]
Lastfm Server=www.last.fm
Lastfm Server Fallback To www.last.fm=0

option in my biography.ini

I only have

Code: [Select]
[LASTFM LANGUAGE]
Lastfm Language=ES
Lastfm Language Fallback To English=1

Must I add it?


Re: Biography Discussion

Reply #290
@paregistrase: All is correct.

@Pepmag: I'm not sure why but that is the wrong biography.ini and in fact rather an old version. The correct version for 0.9.01 or 0.9.02 is: JScript Biography.ini Version A0001. Fortunately it's very easily corrected. Simply delete the biography.ini (or rename it to something else if you want to keep a back-up). Biography.ini should be in foobar2000\yttm\biography.ini. Restart foobar2000 and a fresh one will be created.  Then right click JScript Biography > Sources > Server Settings. Opens biography.ini. Double check it's the right version number. If for some reason it's not, you deleted/renamed the wrong one.

Re: Biography Discussion

Reply #291
@paregistrase: All is correct.

 OK, nothing to edit here.  ;)

And thanks for your script, it's very usefull.

Only a suggestion...

Can you made the option "Write tags to select tracks" accessible from the main menu instead of "shift+right click"?

Not a big problem but I think that make more sense leave the shift+right click only for configure and take the normal use options visible in the right click menu. Or a visible buttom in the upper right corner for tags like the "Show more items" in the upper left corner... that will be supercool.  8)

 

Re: Biography Discussion

Reply #292
OK

After delete biography.ini, no more errors. But now, it can´t download images.

Re: Biography Discussion

Reply #293
It may be a hangover from this issue that specifically effected image downloading and is easily correctable. 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. 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).

Hopefully that should solve it. If not, to exclude issues with biography.ini, ensure all biography.ini settings are at default. I assume they are since you just created it. But if not delete or rename biography.ini & restart foobar2000 to create a fresh one.

Re: Biography Discussion

Reply #294
Hi WilB, its possible to add something like "Founded In" tag (info from lastfm) to "Write tags to select tracks"?

Re: Biography Discussion

Reply #295
An option to skip everything in %album% name after '(' and '[' characters would be killer
Album autoclean probably does something similar, but it seems to be working for some, but not for others.

Re: Biography Discussion

Reply #296
@paregistrase + @miras. Requested features should be in the next version.

@Pollux88. That can be done by changing the %BIO_ALBUM% definition in server settings (biography.ini), e.g.
Code: [Select]
%BIO_ALBUM%=$puts(a,$strstr(%album%,'('))$puts(b,$strstr(%album%,'['))$shortest($if($get(a),$cut(%album%,$sub($get(a),1))),$if($get(b),$cut(%album%,$sub($get(b),1))),%album%)
Note that I only wrote the above quickly to show its possible and perhaps it could be written more elegantly. Trailing spaces are automatically trimmed.

Note that such truncation isn't generally recommended. It may be rather non-specific, and remove info required for the look-up, e.g. review look-up of (What's the Story) Morning Glory would fail.

A solution with album names is to use the core album name in the album name field & put other info like "Deluxe Edition" in another tag, e.g. a version tag.

Album name auto-clean uses a keyword match to maximise specificity, and works with a range of common occurrences. It may be possible to add other key words if you provide examples and they can be applied in a sufficiently specific way.

Re: Biography Discussion

Reply #297
Works perfectly, thanks a bunch! I really appreciate going the long way and writing this 'not so elegant' code yourself. Mine would probably look something like
Code: [Select]
$if($greater($strchr(%album%,'('),0),$trim($cut(%album%,$sub($strchr(%album%,'('),1))),$if($greater($strchr(%album%,'['),0),$trim($cut(%album%,$sub($strchr(%album%,'['),1))),%album%))


Re: Biography Discussion

Reply #299
Overall thanks for the awesome biography/review solution!

One question: Is there a way to have image-only mode for biography, and Auto (image + text) for the review? Right now, Image-only/Text-only/Auto-display applies to both bio and review, as far as I can see.

I've experimented with custom layout styles – a text+image one for the reviews:


... and one with mostly image for the bio; the problem is that I cannot completely remove the text box in a custom style (or at least I don't see how to do it). Also, image auto-fill (=auto zoom&crop to fill the panel space) doesn't seem to work in quite the same way in Auto Display mode (there's a space left empty on the left and right, maybe for the text scrollbars?):


I'd want the bio to look the way it does in the Image-only mode:


Do you have an idea for me how to do this combo – image-only mode for bio, custom style for review? Any help appreciated!


 
SimplePortal 1.0.0 RC1 © 2008-2018