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 228476 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Re: Biography Discussion

Reply #600
Hey,
I cannot install the component.
I have this message:
JScript Panel v2.3.6.1 (id:986144)
Erreur de compilation Microsoft JScript:
Erreur de syntaxe
File: <main>
Line: 3, Col: 1
Line 3: const requiredVersionStr = '1.2.2'; function is_compatible(requiredVersionStr) {const requiredVersion = requiredVersionStr.split('.'), currentVersion = utils.Version.split('.'); if (currentVersion.length > 3) currentVersion.length = 3; for (let i = 0; i < currentVersion.length; ++i) if (currentVersion != requiredVersion) return currentVersion > requiredVersion; return true;} if (!is_compatible(requiredVersionStr)) fb.ShowPopupMessage(`Biography requires v${requiredVersionStr}. Current component version is v${utils.Version}.`);



Re: Biography Discussion

Reply #603
Thank's, it's ok with spider monkey panel...

Re: Biography Discussion

Reply #604
Hey, I want to know why after I installed spider monkey and imported biography, it still said there isn't biography when I import theme?

Re: Biography Discussion

Reply #605
How can I change the font? I see "_CUSTOM COLOURS/FONTS:USE" (true or false) in Panel Properties, but it just changes the font size and style.  :-*

My biography version is 1.1.3.

Re: Biography Discussion

Reply #606
There may be two possibilities.

1) The font name isn't recognized and default is used.

2) Segoe UI is set.

Check menu:
layout > heading
layout > Subheading [Source]
layout > Subheading [Track] (ignore if grayed out)

Ensure SemiBold or SemiBold Italic aren't set for any. These options require use of Segoe UI for the main font, which takes precedence over the panel properties Custom.Font setting or UI font settings. A Custom.Font Heading can still be set.

Re: Biography Discussion

Reply #607
I have a nested folder structure where the root folder I'm in is naturally an artist. In some versions of multi-disc editions of albums, the nesting depth increases by 1 step. How to set up downloading to the root folder Artist, photos to the folder Images, text in the Review or Biography?

-Artist
          |
          -Year - Album Name
          -Year - Other Album Name


-Artist
          |
          -CD1
          -CD2
                   |
                -Year - Album Name

Re: Biography Discussion

Reply #608
Save folder locations are fully configurable with support for title formatting as well as absolute paths:

right click > menu > sources > server settings > configure

Scroll down to [SAVE] and enter the save folder patterns you you want. Follow the help guidance therein for best experience.

Assuming you really mean Artist is always the root folder, and 'YOUR PATH TO ARTIST IS ALWAYS SAME' then the straightforward way below may work (untested). Adjust as required.
Code: [Select]
[SAVE]
Text reviews*
Album Review [Allmusic] Folder=PUT YOUR PATH HERE\%BIO_ALBUMARTIST%\allmusic
Album Review [Lastfm] Folder=PUT YOUR PATH HERE\%BIO_ALBUMARTIST%\lastfm

Text biographies*
Biography [Allmusic] Folder=PUT YOUR PATH HERE\%BIO_ARTIST%\allmusic
Biography [Lastfm] Folder=PUT YOUR PATH HERE\%BIO_ARTIST%\lastfm

Photos
Image [Artist] Folder=PUT YOUR PATH HERE\%BIO_ARTIST%\images

*The 2 reviews (& 2 biographies) must be saved in different folders.
If your folder paths to Artist are inconsistent, you may be able to make that part of the path conditional depending on drive letter etc or something else in the full path.

Otherwise you can look at things like $directory(path), $directory(path,n) and string comparison functions etc etc to conditionally go up levels from the music file. Note that path functions are incompatible with radio streams, so would need to be used conditionally if you use such.

Also bear in mind that if you created the artist folders then there are the usual issues of what to do about invalid characters in file names.

Biography follows the foobar2000 original standard way

/ \ |: get replaced by a -
* gets replaced by x
" gets replaced with ''
< > get replaced by an _
? get replaced with nothing

Re: Biography Discussion

Reply #609
Naturally, the artist folder is always different, because we are talking about performers, Manowar\ Metallica\ Moonspell\ etc

$directory(path) forces the script to download to the same folder as the album. At the same time, if you have a discography of 20 albums, a yttm folder with information will be created in each album folder, which is impractical - it is repeated. You need to create a single folder with information in the root folder, for example Metallica

Re: Biography Discussion

Reply #610
It can be done.  You just need to work out the correct title formatting.

The following may get you the artist folder. I suggest you test it in something that does title format evaluation, like Title Formatting Sandbox. I tested it in that and the below is working here. Adjust as required. Note that this uses %artist% for test purposes, as %BIO_ARTIST% etc aren't supported outside biography.
Code: [Select]
$puts(str,'\'$lower(%artist%)'\')$puts(len,$len($get(str)))$puts(pos,$strstr($lower(%path%),$get(str)))$cut(%path%,$sub($add($get(pos),$get(len)),2))

You would then use it, for example, as below. Not that it incudes a default save location if no match is found. I checked the photos code in Biography & it worked for me as expected.
Code: [Select]
Photos
Image [Artist] Folder=$puts(str,'\'$lower(%BIO_ARTIST%)'\')$puts(len,$len($get(str)))$puts(pos,$strstr($lower(%path%),$get(str)))$ifgreater($get(pos),0,$cut(%path%,$sub($add($get(pos),$get(len)),2))\images,%profile%\yttm\art_img\$lower($cut(%BIO_ARTIST%,1))\%BIO_ARTIST%)

Text review
Album Review [Lastfm] Folder=$puts(str,'\'$lower(%BIO_ALBUMARTIST%)'\')$puts(len,$len($get(str)))$puts(pos,$strstr($lower(%path%),$get(str)))$ifgreater($get(pos),0,$cut(%path%,$sub($add($get(pos),$get(len)),2))\lastfm,%profile%\yttm\review\lastfm\$lower($cut(%BIO_ALBUMARTIST%,1)))

Note also that this is really a general foobar2000 title format issue.

Re: Biography Discussion

Reply #611
Amazing! It works! How do I resolve the issue of having a collaborator in the album???

Pitbull - downloads correctly, in the Pitbull folder

Pitbull feat. Christina Aguilera - downloads to the player folder, I do not even know what solution to offer, but if you listen to this album, it would be logical to assume that the script downloaded images to the folder, there is a brilliant solution?

You should probably save the name of the image, but upload it according to the  %albumartist%

Pitbull feat. Shakira_c8b69d69597c40d2a42531a7a88b0e53

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Album Review [Lastfm]

Another big request is to set up a review, since it is related to the album and not to the entire artist, download to the album folder again, given that sometimes there is an album where all the tracks are at the root of the album, and there is an album with two disks, so the script again rises to the level up and creates a folder in the %album%

Re: Biography Discussion

Reply #612
rev_img\ it would be logical to assume saving to the covers folder, along with the album


please please please please please please do this - I've been reading about this for 2 years!

Re: Biography Discussion

Reply #613
Only album image is shown (downloaded). In artist view biography is OK but NO IMAGE for all artists in collection. Biography View component (0.4.2.5) shows everything fine. What's up?

Re: Biography Discussion

Reply #614
@WilB
And here's what else I thought, it's logical to put the review in the album folder without creating an additional review folder, since this is a single text file. The name can be configured as "review (artist - album).txt"

Re: Biography Discussion

Reply #615
@Mrakobes

1) Pitbull feat. Christina Aguilera scenario.

Sorry but the album artist behavior can't really be changed. It would break handling of various artists albums.

Best solution is NOT to put featured artists in the artist name. Such tags are not good for internet searches anyway. You could use a multi-value artist tag instead for example.

If you don't want to change tags, you could to truncate the artist name:

[NAMES]
....
%BIO_ARTIST%=$puts(str, feat. )$puts(len,$len($get(str)))$puts(pos,$strstr($lower(%artist%),$get(str)))$cut(%artist%,$sub($get(pos),1))

If you have multiple items you want to truncate on then you'll can work out the extra conditioning required.

2) Album folder

Essentially in the Text review example I posted you can try changing:

$puts(str,'\'$lower(%BIO_ALBUMARTIST%)'\')

to

$puts(str,'\'$lower(%BIO_ALBUM%)'\')

It should then give you the album folder. But if the artist and album names are same it will return the first match, which will be the artist folder. Since it seems your album folder name also contains the year (year - album) this shouldn't be an issue in your case. It should also work for rev_img.


@Wzor
It should all be working, indicating its a local issue. Ensure you're using v1.1.3 & no earlier version as there were site changes. Also confirm that you are able to view artist images at the site.

menu has two artist source options:
cycle from folder
artist
Ensure its set to cycle from folder.
Artist only checks the standard foobar2000 display artist pattern, which may well not be adequately configured.

Also ensure the layout hasn't any old versions of Biography that are taking over the downloading (and failing).

Simplest test would be to try a fresh portable install with just spider monkey panel & bio v1.1.3 loaded.

I wouldn't expect it to pick up images downloaded by the bio component (0.4.2.5) unless you have precisely set that folder location.

To avoid issues with settings in normal layout, reset everything to default.
1) right click > panel properties > clear. You may want to export panel properties first if you've made changes.
2) right click > sources > server settings > reset to default.

Re: Biography Discussion

Reply #616
@Mrakobes

2) Album folder
 If you really are using Year - Album Name, then the year will also need including to match. Depending on what tags you use something like:

Code: [Select]
$puts(str,'\'[%date% - ]$lower(%BIO_ALBUM%)'\')

or if date tag is in a full date format:

Code: [Select]
$puts(str,'\'[$year(%date%) - ]$lower(%BIO_ALBUM%)'\')

see also previous post

Re: Biography Discussion

Reply #617
^ One other little thing. Check your final strings don't exceed the 255 character limit. The ones I posted are very close (249 & 252), and I realized the year handler pushed it over. Here is a version with the year handler that should fit.

Code: [Select]
Album Review [Lastfm] Folder=$puts(s,'\'[$year(%date%) - ]$lower(%BIO_ALBUM%)'\')$puts(l,$len($get(s)))$puts(p,$strstr($lower(%path%),$get(s)))$ifgreater($get(p),0,$cut(%path%,$sub($add($get(p),$get(l)),2))\lastfm,%profile%\yttm\review\lastfm\$lower($cut(%BIO_ALBUMARTIST%,1)))

Re: Biography Discussion

Reply #618
@WilB thank you so much for your help! Please correct the code a little, it doesn't work with the nested folder structure

You need to create a single text file with the name "Review (artist - year - album)", that is, not nested in the "lastfm" folder. however, it must be placed in the album folder in the single-disc version and in the album folder (not CD1 or CD2) (otherwise it will be meaninglessly duplicated) in the two-disc version

Re: Biography Discussion

Reply #619
You need to create a single text file with the name "Review (artist - year - album)", that is, not nested in the "lastfm" folder.
I think the Biography script does not currently work that way. It requires a folder for each review type (a "lastfm" folder and "allmusic" folder). And you cannot change the name of the text file.

(Unless I misunderstood and you were asking a feature request?)


Re: Biography Discussion

Reply #620
names can be changed easily and folders can also be changed in biography.ini

we are waiting for him to come to us @WilB

Re: Biography Discussion

Reply #621
@Mrakobes
Seriously... please use another imagehost! Without pron ads!! :|
What is the opposite of music?

Re: Biography Discussion

Reply #622
@redorb ahaha, I didn't know there was porn, I have an ad blocker in my browser, I hope you didn't sin with your hands))))

Re: Biography Discussion

Reply #623
1) Neatest: save all in artists folder

Code: [Select]
[SAVE]
Album Review [Allmusic] Folder=$puts(s,'\'$lower(%BIO_ALBUMARTIST%)'\')$puts(l,$len($get(s)))$puts(pos,$strstr($lower(%path%),$get(s)))$ifgreater($get(pos),0,$cut(%path%,$sub($add($get(pos),$get(l)),2))\Allmusic,%profile%\yttm\review\allmusic\$lower($cut(%BIO_ALBUMARTIST%,1)))
Album Review [Lastfm] Folder=$puts(s,'\'$lower(%BIO_ALBUMARTIST%)'\')$puts(l,$len($get(s)))$puts(pos,$strstr($lower(%path%),$get(s)))$ifgreater($get(pos),0,$cut(%path%,$sub($add($get(pos),$get(l)),2))\Lastfm,%profile%\yttm\review\lastfm\$lower($cut(%BIO_ALBUMARTIST%,1)))
Biography [Allmusic] Folder=$puts(s,'\'$lower(%BIO_ARTIST%)'\')$puts(l,$len($get(s)))$puts(pos,$strstr($lower(%path%),$get(s)))$ifgreater($get(pos),0,$cut(%path%,$sub($add($get(pos),$get(l)),2))\Allmusic,%profile%\yttm\art_img\$lower($cut(%BIO_ARTIST%,1))\%BIO_ARTIST%)
Biography [Lastfm] Folder=$puts(s,'\'$lower(%BIO_ARTIST%)'\')$puts(l,$len($get(s)))$puts(pos,$strstr($lower(%path%),$get(s)))$ifgreater($get(pos),0,$cut(%path%,$sub($add($get(pos),$get(l)),2))\Lastfm,%profile%\yttm\art_img\$lower($cut(%BIO_ARTIST%,1))\%BIO_ARTIST%)
Image [Artist] Folder=$puts(s,'\'$lower(%BIO_ARTIST%)'\')$puts(l,$len($get(s)))$puts(pos,$strstr($lower(%path%),$get(s)))$ifgreater($get(pos),0,$cut(%path%,$sub($add($get(pos),$get(l)),2))\Images,%profile%\yttm\art_img\$lower($cut(%BIO_ARTIST%,1))\%BIO_ARTIST%)
Image [Review] Folder=$puts(s,'\'$lower(%BIO_ALBUMARTIST%)'\')$puts(l,$len($get(s)))$puts(pos,$strstr($lower(%path%),$get(s)))$ifgreater($get(pos),0,$cut(%path%,$sub($add($get(pos),$get(l)),2))\Images,%profile%\yttm\review\allmusic\$lower($cut(%BIO_ALBUMARTIST%,1)))

Gives:

Artist
   - Images (artist and rev_imgs)
   - Allmusic (bio & album reviews)
   - Lastfm (bio & album reviews)

2)
   Save reviews & rev_img in album folder.
   Save artist data as above.
Code: [Select]
[SAVE]
Album Review [Allmusic] Folder=$puts(s,'\'[$year(%date%) - ]$lower(%BIO_ALBUM%)'\')$puts(l,$len($get(s)))$puts(p,$strstr($lower(%path%),$get(s)))$ifgreater($get(p),0,$cut(%path%,$sub($add($get(p),$get(l)),2))\Allmusic Review,%profile%\yttm\review\lastfm\$lower($cut(%BIO_ALBUMARTIST%,1)))
Album Review [Lastfm] Folder=$puts(s,'\'[$year(%date%) - ]$lower(%BIO_ALBUM%)'\')$puts(l,$len($get(s)))$puts(p,$strstr($lower(%path%),$get(s)))$ifgreater($get(p),0,$cut(%path%,$sub($add($get(p),$get(l)),2))\Lastfm Review,%profile%\yttm\review\lastfm\$lower($cut(%BIO_ALBUMARTIST%,1)))
Biography [Allmusic] Folder=$puts(s,'\'$lower(%BIO_ARTIST%)'\')$puts(l,$len($get(s)))$puts(p,$strstr($lower(%path%),$get(s)))$ifgreater($get(p),0,$cut(%path%,$sub($add($get(p),$get(l)),2))\Allmusic Biography,%profile%\yttm\art_img\$lower($cut(%BIO_ARTIST%,1))\%BIO_ARTIST%)
Biography [Lastfm] Folder=$puts(s,'\'$lower(%BIO_ARTIST%)'\')$puts(l,$len($get(s)))$puts(p,$strstr($lower(%path%),$get(s)))$ifgreater($get(p),0,$cut(%path%,$sub($add($get(p),$get(l)),2))\Lastfm Biography,%profile%\yttm\art_img\$lower($cut(%BIO_ARTIST%,1))\%BIO_ARTIST%)
Image [Artist] Folder=$puts(s,'\'$lower(%BIO_ARTIST%)'\')$puts(l,$len($get(s)))$puts(p,$strstr($lower(%path%),$get(s)))$ifgreater($get(p),0,$cut(%path%,$sub($add($get(p),$get(l)),2))\Artist Images,%profile%\yttm\art_img\$lower($cut(%BIO_ARTIST%,1))\%BIO_ARTIST%)
Image [Review] Folder=$puts(s,'\'[$year(%date%) - ]$lower(%BIO_ALBUM%)'\')$puts(l,$len($get(s)))$puts(p,$strstr($lower(%path%),$get(s)))$ifgreater($get(p),0,$cut(%path%,$sub($add($get(p),$get(l)),2)),%profile%\yttm\review\lastfm\$lower($cut(%BIO_ALBUMARTIST%,1)))

Gives

Artist
   - Artist Images
   - Allmusic Biography
   - Lastfm Biography

   year - album
      - Allmusic Review
      - Lastfm Review
      rev_img
or
   year - album
      - Allmusic Review
      - Lastfm Review
      - CD1
      - CD2
      rev_img

Your suggestion of using 'Review (artist - year - album)' instead of simply 'album artist - album' doesn't alter the subfolder pattern required. Besides if the save name contains the album name, it should be pretty obvious it's an album.

Re: Biography Discussion

Reply #624
^ Fixed some copy paste errors in default paths in the above

1)

Code: [Select]
[SAVE]
Album Review [Allmusic] Folder=$puts(s,'\'$lower(%BIO_ALBUMARTIST%)'\')$puts(l,$len($get(s)))$puts(pos,$strstr($lower(%path%),$get(s)))$ifgreater($get(pos),0,$cut(%path%,$sub($add($get(pos),$get(l)),2))\Allmusic,%profile%\yttm\review\allmusic\$lower($cut(%BIO_ALBUMARTIST%,1)))
Album Review [Lastfm] Folder=$puts(s,'\'$lower(%BIO_ALBUMARTIST%)'\')$puts(l,$len($get(s)))$puts(pos,$strstr($lower(%path%),$get(s)))$ifgreater($get(pos),0,$cut(%path%,$sub($add($get(pos),$get(l)),2))\Lastfm,%profile%\yttm\review\lastfm\$lower($cut(%BIO_ALBUMARTIST%,1)))
Biography [Allmusic] Folder=$puts(s,'\'$lower(%BIO_ARTIST%)'\')$puts(l,$len($get(s)))$puts(pos,$strstr($lower(%path%),$get(s)))$ifgreater($get(pos),0,$cut(%path%,$sub($add($get(pos),$get(l)),2))\Allmusic,%profile%\yttm\biography\allmusic\$lower($cut(%BIO_ARTIST%,1)))
Biography [Lastfm] Folder=$puts(s,'\'$lower(%BIO_ARTIST%)'\')$puts(l,$len($get(s)))$puts(pos,$strstr($lower(%path%),$get(s)))$ifgreater($get(pos),0,$cut(%path%,$sub($add($get(pos),$get(l)),2))\Lastfm,%profile%\yttm\biography\lastfm\$lower($cut(%BIO_ARTIST%,1)))
Image [Artist] Folder=$puts(s,'\'$lower(%BIO_ARTIST%)'\')$puts(l,$len($get(s)))$puts(pos,$strstr($lower(%path%),$get(s)))$ifgreater($get(pos),0,$cut(%path%,$sub($add($get(pos),$get(l)),2))\Images,%profile%\yttm\art_img\$lower($cut(%BIO_ARTIST%,1))\%BIO_ARTIST%)
Image [Review] Folder=$puts(s,'\'$lower(%BIO_ALBUMARTIST%)'\')$puts(l,$len($get(s)))$puts(pos,$strstr($lower(%path%),$get(s)))$ifgreater($get(pos),0,$cut(%path%,$sub($add($get(pos),$get(l)),2))\Images,%profile%\yttm\rev_img\$lower($cut(%BIO_ALBUMARTIST%,1))\%BIO_ALBUMARTIST%)

2)

Code: [Select]
[SAVE]
Album Review [Allmusic] Folder=$puts(s,'\'[$year(%date%) - ]$lower(%BIO_ALBUM%)'\')$puts(l,$len($get(s)))$puts(p,$strstr($lower(%path%),$get(s)))$ifgreater($get(p),0,$cut(%path%,$sub($add($get(p),$get(l)),2))\Allmusic Review,%profile%\yttm\review\allmusic\$lower($cut(%BIO_ALBUMARTIST%,1)))
Album Review [Lastfm] Folder=$puts(s,'\'[$year(%date%) - ]$lower(%BIO_ALBUM%)'\')$puts(l,$len($get(s)))$puts(p,$strstr($lower(%path%),$get(s)))$ifgreater($get(p),0,$cut(%path%,$sub($add($get(p),$get(l)),2))\Lastfm Review,%profile%\yttm\review\lastfm\$lower($cut(%BIO_ALBUMARTIST%,1)))
Biography [Allmusic] Folder=$puts(s,'\'$lower(%BIO_ARTIST%)'\')$puts(l,$len($get(s)))$puts(p,$strstr($lower(%path%),$get(s)))$ifgreater($get(p),0,$cut(%path%,$sub($add($get(p),$get(l)),2))\Allmusic Biography,%profile%\yttm\biography\allmusic\$lower($cut(%BIO_ARTIST%,1)))
Biography [Lastfm] Folder=$puts(s,'\'$lower(%BIO_ARTIST%)'\')$puts(l,$len($get(s)))$puts(p,$strstr($lower(%path%),$get(s)))$ifgreater($get(p),0,$cut(%path%,$sub($add($get(p),$get(l)),2))\Lastfm Biography,%profile%\yttm\biography\lastfm\$lower($cut(%BIO_ARTIST%,1)))
Image [Artist] Folder=$puts(s,'\'$lower(%BIO_ARTIST%)'\')$puts(l,$len($get(s)))$puts(p,$strstr($lower(%path%),$get(s)))$ifgreater($get(p),0,$cut(%path%,$sub($add($get(p),$get(l)),2))\Artist Images,%profile%\yttm\art_img\$lower($cut(%BIO_ARTIST%,1))\%BIO_ARTIST%)
Image [Review] Folder=$puts(s,'\'[$year(%date%) - ]$lower(%BIO_ALBUM%)'\')$puts(l,$len($get(s)))$puts(p,$strstr($lower(%path%),$get(s)))$ifgreater($get(p),0,$cut(%path%,$sub($add($get(p),$get(l)),2)),%profile%\yttm\rev_img\$lower($cut(%BIO_ALBUMARTIST%,1))\%BIO_ALBUMARTIST%)