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: Biography Discussion (Read 350956 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Biography Discussion

Reply #1100
The forward slash is not an issue at all.

Strangely, searching for the album artist + album combination yields no results but searching for album alone actually works. Why? Not got a clue... :P

Re: Biography Discussion

Reply #1101
I've noticed that the plugin doesn't seem to handle certain special characters correctly.

For instance, i get the following error in my console when attempting to retrieve the album review for: https://www.allmusic.com/album/closure-continuation-mw0003617672

Quote
Biography Server: allmusic review: Closure/Continuation / Porcupine Tree: not found

Is there a workaround or is this a bug? I'd create a github issue, but there doesn't appear to be a way to do it.

I wasn't going to bring it up until the Allmusic bug was solved but now that you've brought it up, YES this is another Biography bug. I discovered it a couple weeks ago with the artist AC/DC and I actually got ChatGPT to fix it.

EDIT... I just checked my notes and it was the lyrics not loading that was the problem. So this is not your issue, BUT this is a separate issue that needs to be addressed.

You have to replace the function findFile in text.js to this...

Code: [Select]
	findFile(v, n) {
const type = /_\.(lrc|txt)$/.test(v.pth) ? 0 : /\.(lrc|txt)$/.test(v.pth) ? 1 : 2;
        let pth = '';
let item = n == 'bio' ? v.pth.replace(/%BIO_ARTIST%|%BIO_ALBUMARTIST%/gi, '%BIO_ARTIST%') : v.pth.replace(/%BIO_ALBUMARTIST%|%BIO_ARTIST%/gi, '%BIO_ALBUMARTIST%');

const a = $.tfEscape(name.artist(!v.lyrics ? panel.id.focus : false, !v.lyrics ? false : true).replace(/\//g, '_'));
const aa = $.tfEscape(name.albumArtist(!v.lyrics ? panel.id.focus : false, !v.lyrics ? false : true).replace(/\//g, '_'));
const l = $.tfEscape(name.album(!v.lyrics ? panel.id.focus : false, !v.lyrics ? false : true).replace(/\//g, '_'));
const tr = $.tfEscape(name.title(!v.lyrics ? panel.id.focus : false, !v.lyrics ? false : true).replace(/\//g, '_'));
item = item // substitue bio var + check advanced radio stream parser (tfBio & tfRev do lookUps not parser)
.replace(/((\$if|\$and|\$or|\$not|\$xor)(|\d)\(|\[)[^$%]*%bio_artist%/gi, a ? '$&#@!%path%#@!' : '$&').replace(/%bio_artist%/gi, a)
.replace(/((\$if|\$and|\$or|\$not|\$xor)(|\d)\(|\[)[^$%]*%bio_albumartist%/gi, aa ? '$&#@!%path%#@!' : '$&').replace(/%bio_albumartist%/gi, aa)
.replace(/((\$if|\$and|\$or|\$not|\$xor)(|\d)\(|\[)[^$%]*%bio_album%/gi, l ? '$&#@!%path%#@!' : '$&').replace(/%bio_album%/gi, l)
.replace(/((\$if|\$and|\$or|\$not|\$xor)(|\d)\(|\[)[^$%]*%bio_title%/gi, tr ? '$&#@!%path%#@!' : '$&').replace(/%bio_title%/gi, tr);

switch (type) {
case 0:
pth = item.replace(/_\.(lrc|txt)$/, '.$1');
break;
case 1:
pth = item.replace(/\.(lrc|txt)$/, '_.$1');
break;
}
let pths = !v.lyrics ? [item] : [item, pth];
return pths.some(w => {
const wildCard = /[*?]/.test(w);
if (!wildCard) {
this[n].readerItem = panel.cleanPth(w, !v.lyrics ? panel.id.focus : false, !v.lyrics ? '' : 'lyr').slice(0, -1).replace(/#@!.*?#@!/g, '');
return $.file(this[n].readerItem);
} else {
let p = panel.cleanPth(w.replace(/\*/g, '@!@').replace(/\?/g, '!@!'), !v.lyrics ? ppt.focus : false, !v.lyrics ? '' : 'lyr').slice(0, -1);
p = p.replace(/@!@/g, '*').replace(/!@!/g, '?').replace(/#@!.*?#@!/g, '');
const arr = utils.Glob(p);
if (!arr.length) return false;
this[n].readerItem = arr[0];
return $.file(this[n].readerItem);
}
});
}

I don't know if this is a proper fix or not but it works.


Re: Biography Discussion

Reply #1103
Just to clarify, when I say "Another Biography bug" I'm not saying that in a snide or pissy way. It's a complex program and there are bound to be bugs.

Re: Biography Discussion

Reply #1104

...

Thanks! I've had to edit js files to "fix" things with this plugin before as well.

There is a much better fix here...

https://github.com/TT-ReBORN/Georgia-ReBORN/discussions/74#discussioncomment-9552470

This will only work for Georgia Reborn. If you're using it in another theme, you'll want to remove all traces of .bio, .Bio and bioSet.focus needs to be changed to ppt.focus.

Re: Biography Discussion

Reply #1105
Hey there quick question (although Idk if there's really a quick answer): is it possible to replace some of the fields shown in text view with my own tags of the now playing song? For example I have my own Style tags derived from Rateyourmusic and Description tags from there as well. Example of what I'm talking about:


Re: Biography Discussion

Reply #1106
Is this plugin discontinued? Last version I saw was released back in 2021 - 3 years ago.


Re: Biography Discussion

Reply #1108
Does Covers: custom paths work? If I type, as in the "Thumbs" script:

$directory_path(%path%)\..\

This does not load graphics for albums in subfolders (CD1, CD2 etc.)


Re: Biography Discussion

Reply #1110
The crash [probably] is due to connections not being closed on foobar shutdown (or panel reload). There are known fixes for it, already implemented on other scripts. Is just that this package is not getting new updates with the fix.

Re: Biography Discussion

Reply #1111
The crash [probably] is due to connections not being closed on foobar shutdown (or panel reload). There are known fixes for it, already implemented on other scripts. Is just that this package is not getting new updates with the fix.

My crash is mem overflow related. I tried the Bio version you posted as well and it made no difference. Probably as much a SMP issue as Bio panel.

Re: Biography Discussion

Reply #1112
? I have not posted any bio package.

Also, I really doubt the bio panel produces mem overflow problems, unless there is a new problem unknown to the rest. I mean, no one was experienced such problem in years and I don't see how that particular package can create mem problems. Provide more info about your setup.

SMP has mem overflow problems for specific scripts (this is not one of them) if you have a huge library. But that's just how 32 bits works, obviously. Foobar will crash too if you reach the limit.

Re: Biography Discussion

Reply #1113
In theory, there should be no memory usage issues with this script because last.fm images are generally pretty crappy low quality. But some people dump their own very high quality over sized images in to folders to be read by this and that can be problematic. The same thing has happened with my own Thumbs script bundled with SMP/JSP.

edit: it's quite possible this script has mitigations for over sized images by resizing but I have no idea about that.

Re: Biography Discussion

Reply #1114
? I have not posted any bio package.


Sorry, I meant your SMP 1.6.1+ mod. I tested with that also, with similar OOM crashing.

I'm sure there are improvements that Wilb could make, but certainly understand his reluctance to continue developing on a buggy work in progress.
I'm openly blaming SMP. It crashes eventually with *every* script. As you know I DM'd you in the past trying to get your scripts to work with no luck due to my library size.
I'm not holding my breath to ever see 64bit compatible SMP.

some people dump their own very high quality over sized images in to folders

I have a script that automatically deletes artist images over 1MB and maintains album artwork files at max 3MB.

However, I scrape Discogs master releases for all related artwork, which are usually small files, but many albums may have 100s of related images  e.g. I just randomly checked "YesSongs" which has 196 images (16.5MB).
I suspect it's the # of images more than the size.

Re: Biography Discussion

Reply #1115
The problem lies in the AllMusic related functions, which will cause FB to crash when closing. Turn off the AllMusic related functions in the options. Maybe you need to change the script code to make it completely invalid, so that it will not crash.

Re: Biography Discussion

Reply #1116
Quote
Sorry, I meant your SMP 1.6.1+ mod. I tested with that also, with similar OOM crashing.
That's just a fork by marc, not mine, and anyway I doubt that's the culprit of any BIO related crash.

Quote
I'm openly blaming SMP. It crashes eventually with *every* script. As you know I DM'd you in the past trying to get your scripts to work with no luck due to my library size.
SMP does not eventually crash with every script. ANYTHING foobar related and foobar itself will eventually crash if you have a huge library, use the 32 bits version and perform memory intensive tasks. Obviously.

I use like +10 SMP panels, I use all my scripts extensively every day and I don't experience crashes (unless I somehow add a bug in my scripts obviously xd). But I'm always below the ram limit.

I mean, you can blame SMP internals all you want, but the only problem is not having a SMP x64 version.

Quote
I'm not holding my breath to ever see 64bit compatible SMP.
I agree with that, I still see no point on a v2 version when a x64 version would have been easier. I tried to build the component myself but the github files are not buildable in any way at the current state (and I blame here the "clever" approach of building everything on external linked libraries without including them directly).

Quote
The problem lies in the AllMusic related functions, which will cause FB to crash when closing. Turn off the AllMusic related functions in the options. Maybe you need to change the script code to make it completely invalid, so that it will not crash..
There are other known fixes for that, it has been already implemented on Georgia theme for ex. But anyway the user keeps reporting is not only when closing foobar...

Quote
However, I scrape Discogs master releases for all related artwork, which are usually small files, but many albums may have 100s of related images  e.g. I just randomly checked "YesSongs" which has 196 images (16.5MB).
I suspect it's the # of images more than the size.
As already told you. Report your current setup (don't suppose anyone here reminds past interactions please), library size, number of panels, etc. Also check your actual ram usage while using foobar2000.

16.5Mb is nothing, but if your foobar instance is already over 2gb of ram usage, obviously any SMP panel will crash at some point. Have zero idea how bio panel uses images, but there are [hack-like] ways on JS to force ram releasing.

Re: Biography Discussion

Reply #1117
Hello!
Is something broken with WilB Biography 1.4.2?
New artist photos won't show up, if I download and add artist pictures manually all is OK.
Wikipedia, allmusic, last.fm text works.

Thanks and best regards
redorb
What is the opposite of music? ~ Everyone is entitled to his own opinion, but not his own facts.

Re: Biography Discussion

Reply #1118
Hello!
Is something broken with WilB Biography 1.4.2?
New artist photos won't show up, if I download and add artist pictures manually all is OK.
Wikipedia, allmusic, last.fm text works.

Thanks and best regards
redorb

I deleted my cached images and checked it out. The images are showing up for me, no problem.

Re: Biography Discussion

Reply #1119
Hello!
Is something broken with WilB Biography 1.4.2?
New artist photos won't show up, if I download and add artist pictures manually all is OK.
Wikipedia, allmusic, last.fm text works.

Thanks and best regards
redorb

I deleted my cached images and checked it out. The images are showing up for me, no problem.
Hello!
Thanks for your reply, much appreciated!

I did what you did and... no cigar!
Even changed to new paths for Biography to another HDD but no luck.
This is really mysterious, somehow foobar2000 and WilB Biography recreated (!) the old folder paths to HDD (D:)?!
Anyway, new artists images won't download but new folders, with reviews and tags are created, regardless of HDD path, even lyrics are created! :/

Does any kind soul have any suggestions and ideas?

Thanks and best regards,
redorb

Code: [Select]
Example of New artist paths

D:\--=\Biography\yttm\art_img\n\Nala Sinephro (update.txt in there) no images!!
D:\--=\Biography\yttm\biography\allmusic\n (Nala Sinephro.txt in there)
D:\--=\Biography\yttm\biography\lastfm\n (Nala Sinephro.txt in there)
D:\--=\Biography\yttm\biography\wikipedia\n (Nala Sinephro.txt in there)
D:\--=\Biography\yttm\review\allmusic\n (Nala Sinephro 2 txt tags in there)
D:\--=\Biography\yttm\review\lastfm\n (Nala Sinephro 2 txt tags in there)
D:\--=\Biography\yttm\review\wikipedia\n (Nala Sinephro 1 txt tag in there)
What is the opposite of music? ~ Everyone is entitled to his own opinion, but not his own facts.


Re: Biography Discussion

Reply #1121
Check this post for debugging the script used to download images. It should report what happens in a command prompt/powershell window.

https://hydrogenaud.io/index.php/topic,112914.msg1042969.html#msg1042969
Thanks for the useful info, much appreciated!

Did run the command and got this:
Code: [Select]
C:\Users\***\AppData\Roaming\foobar2000\foo_spider_monkey_panel\package_data\{BA9557CE-7B4B-4E0E-9373-99F511E81252}\foo_lastfm_img.vbs(16, 1) msxml3.dll: Det gick inte att hitta den angivna resursen. 
(Google translate swedish to english: The specified resource could not be found.)

No test.jpg file.

The msxml3.dll missing on my updated Win10 Pro x64.

Lots of msxml3.dll out there but which one is for me?
Found this thread:
https://github.com/TheQwertiest/foo_spider_monkey_panel/issues/136#issuecomment-848668509

Best regards,
redorb
What is the opposite of music? ~ Everyone is entitled to his own opinion, but not his own facts.

Re: Biography Discussion

Reply #1122
Check this post for debugging the script used to download images. It should report what happens in a command prompt/powershell window.

https://hydrogenaud.io/index.php/topic,112914.msg1042969.html#msg1042969
Thanks for the useful info, much appreciated!

Did run the command and got this:
Code: [Select]
C:\Users\***\AppData\Roaming\foobar2000\foo_spider_monkey_panel\package_data\{BA9557CE-7B4B-4E0E-9373-99F511E81252}\foo_lastfm_img.vbs(16, 1) msxml3.dll: Det gick inte att hitta den angivna resursen. 
(Google translate swedish to english: The specified resource could not be found.)

No test.jpg file.

The msxml3.dll missing on my updated Win10 Pro (x64) foobar2000 (x32) DarkOne4 Theme

Lots of msxml3.dll out there but which one is for me?
Found this thread:
https://github.com/TheQwertiest/foo_spider_monkey_panel/issues/136#issuecomment-848668509

Best regards,
redorb
What is the opposite of music? ~ Everyone is entitled to his own opinion, but not his own facts.

Re: Biography Discussion

Reply #1123
@marc2k3
I got this wrong...
<The msxml3.dll missing on my updated Win10 Pro x64.>
Got lots of this .dll (10) in different Windows folders, sorry...
Also sorry for the double post, was trying to edit previous post.
What is the opposite of music? ~ Everyone is entitled to his own opinion, but not his own facts.

Re: Biography Discussion

Reply #1124
Try the same command from that post but replace the https with http. If that works, windows probably just needs updating.