Skip to main content

Topic: [Not my release] Biography view (Read 339027 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • djphatic
  • [*]
[Not my release] Biography view
Reply #375
Would it be possible to implement the following choice:  "Display biography info for selected track" or "Display biography info for playing track" in the panel preferences?

I think this would be a really nice feature and it doesn't seem to be too difficult.


Would also appreciate a way to set the bio to display for only the playing track.

  • nickdc
  • [*][*][*]
[Not my release] Biography view
Reply #376
I think there's an issue here, the biography is ended but is not completed, you can see the screen
http://img704.imageshack.us/img704/6069/catturaaa.jpg
is there any limit with the numbers of characters?

  • nickdc
  • [*][*][*]
[Not my release] Biography view
Reply #377
up

  • romor
  • [*][*][*][*][*]
[Not my release] Biography view
Reply #378
vbscript update for AMG reviews:


[Not my release] Biography view
Reply #379
vbscript update for AMG reviews:

download link: http://pastebin.com/download.php?i=YgXKSFUV

Enjoy


Awesome!

Do you think it is possible to update for AMG Biography?

@ssenna,
I guess it has already be asked and maybe it is just not possible to implement it, but to add the possibility to change on demand (w/o changing manually the order in the preferences) the server for Biography panel and/or to specify a server for a particular biography panel in the layout would be great.
Hence we could have a specific Biography panel for Last.fm, another one for wikipedia or for AMG...

Thanks anyway,
Decalicatan Decalicatan
Decalicatan Decalicatan

  • j conky
  • [*]
[Not my release] Biography view
Reply #380
vbscript update for AMG reviews:

download link: http://pastebin.com/download.php?i=YgXKSFUV

Enjoy


Thank you so much for this script.  It works perfectly.  I would also like to know if there is a way to have it pull the artist biography instead of the album review.  I know nothing about this sort of thing, so any help you could provide would be great. 

Jason

  • romor
  • [*][*][*][*][*]
[Not my release] Biography view
Reply #381
AMG biography VBScript update download link: http://pastebin.com/download.php?i=i1RfTb9M

Usage: cscript //Nologo scripts\foo_allmusic_b.vbs "%album artist%"

Problem can emerge when there are more artists with the same name. Typical example, pop artist "Air", and returned result for jazz artists from 70s. Right now, first match is returned that matches artist name (played in foobar), and although options exists for "relevance" or "significant" parsing, that doesn't solve possible issue, as I quickly checked. So keeping the script simple and fast I won't add another page request to check artist discography for match. However if more users demand it, I'll do it

My only issue when I was writing first script was that I couldn't find a way to parse HTML page as XML/XHTML instead using regular expressions. I wraped it in XHTML but MS XMLDOM couldn't see it. If someone has idea how to parse HTML as XML in VBScript please let me know.

Quote
I know nothing about this sort of thing, so any help you could provide would be great.

If you compare both scripts you can see that it isn't that hard to pull arbitrary data from allmusic. Maybe I should have commented the code, but it seem silly to do so for such small script.

Edit: Minor issue corrected. Line 31: "<div id=""bio""> to "bio"">

Link updated
  • Last Edit: 21 December, 2010, 03:10:30 AM by romor

  • joelzhao
  • [*][*]
[Not my release] Biography view
Reply #382
They work well and rapidly, thank you. One problem, if there is no result by the script, "no match for:" display. How can I to do then if I want to search by last.fm or wiki in turn?
  • Last Edit: 21 December, 2010, 07:48:27 PM by joelzhao

  • j conky
  • [*]
[Not my release] Biography view
Reply #383
Romor,

Thanks again for the script.  It works perfectly.  It would be great if you could have it check artist discography in the event of multiple matches, but I understand the desire to not want to do that unless really demanded.  I also do not know the impact of that additional check on the speed, as the script as written returns results very quickly, which is great.

Thanks again for you efforts.

Jason

  • joelzhao
  • [*][*]
[Not my release] Biography view
Reply #384
I'm always listening online streams by FB2k, some of the radio supply dynamic track sources, is it possible search the artist/album info by run exterior script?

  • wdekler
  • [*][*][*]
[Not my release] Biography view
Reply #385
Thanks for the script romor!


Do you have any idea why this query works:

cscript //nologo foo_allmusic_r.vbs "amos lee" "supply and demand"


But this one gives an error that no review was found (which obviously isn't correct)?

cscript //nologo foo_allmusic_r.vbs "amos lee" "last days at the lodge"


thanks!


  • romor
  • [*][*][*][*][*]
[Not my release] Biography view
Reply #386
Apparently because of two paragraphs, meaning CRLF wasn't covered by regex pattern. I remember I considered this, but maybe forgot something at some point.

You can change last part of line 32: ([\S ]+) to ([\s\S ]+), or re-download from here: http://pastebin.com/download.php?i=1PvmetSv

Please post such issues in future also

About allmusic biography script, I'll consider discography search for multiple artists matches when I have time for vbscript
  • Last Edit: 23 December, 2010, 12:47:08 PM by romor

  • wdekler
  • [*][*][*]
[Not my release] Biography view
Reply #387
Thanks for the quick fix!      I'll will report any further issues if I encounter them.


By the way someone earlier reported that sometimes the text in foobar was incomplete.

I just encountered an example with the bio of Ryan Adams. After  a couple of sentences the text in Foobar abruptly ends with an H

However, when I ran the script manually, the complete bio appeared in the command prompt but the problem obviously is with the ü which should have appeared after the H (of the band Hüsker Dü).

Next I tried directly retrieving the bio of Hüsker Dü and it worked fine....

So there's a problem somewhere with these kind of characters, is that a known issue with the bio plugin itself?
  • Last Edit: 23 December, 2010, 03:17:47 PM by wdekler

  • romor
  • [*][*][*][*][*]
[Not my release] Biography view
Reply #388
I uploaded Amazon review vbscript here: http://www.hydrogenaudio.org/forums/index....showtopic=86092

Artist's Biography is not available through this webservice

I plan *later* to merge allmusic scripts in one and extend it with classical music reviews feature, that's why I'm not posting extension for allmusic biography with discography match

  • joelzhao
  • [*][*]
[Not my release] Biography view
Reply #389
It feels not good to scroll with middle button of mouse if there's a long biography, it'll be nice to scroll it with "page up" and "page down".

  • imatree
  • [*]
[Not my release] Biography view
Reply #390
This plugin is pretty great, and I see alongside the biography text it also holds "similar artist" information? (At least... I assume it is this plugin.)

However this information isn't shown anyone and I can't figure out a way to use it... is there no titleformatting that would allow me to grab the information stored in Similar Artists/bio?

eg: Like so...?


[Not my release] Biography view
Reply #391
AMG biography VBScript update download link: http://pastebin.com/download.php?i=i1RfTb9M

Usage: cscript //Nologo scripts\foo_allmusic_b.vbs "%album artist%"

Problem can emerge when there are more artists with the same name. Typical example, pop artist "Air", and returned result for jazz artists from 70s. Right now, first match is returned that matches artist name (played in foobar), and although options exists for "relevance" or "significant" parsing, that doesn't solve possible issue, as I quickly checked. So keeping the script simple and fast I won't add another page request to check artist discography for match. However if more users demand it, I'll do it

My only issue when I was writing first script was that I couldn't find a way to parse HTML page as XML/XHTML instead using regular expressions. I wraped it in XHTML but MS XMLDOM couldn't see it. If someone has idea how to parse HTML as XML in VBScript please let me know.

Quote
I know nothing about this sort of thing, so any help you could provide would be great.

If you compare both scripts you can see that it isn't that hard to pull arbitrary data from allmusic. Maybe I should have commented the code, but it seem silly to do so for such small script.

Edit: Minor issue corrected. Line 31: "<div id=""bio""> to "bio"">


thank you!

you can get information discography?
I do not know anything about scripting ....




  • nickdc
  • [*][*][*]
[Not my release] Biography view
Reply #392
AMG biography VBScript update download link: http://pastebin.com/download.php?i=i1RfTb9M

Usage: cscript //Nologo scripts\foo_allmusic_b.vbs "%album artist%"

Problem can emerge when there are more artists with the same name. Typical example, pop artist "Air", and returned result for jazz artists from 70s. Right now, first match is returned that matches artist name (played in foobar), and although options exists for "relevance" or "significant" parsing, that doesn't solve possible issue, as I quickly checked. So keeping the script simple and fast I won't add another page request to check artist discography for match. However if more users demand it, I'll do it

My only issue when I was writing first script was that I couldn't find a way to parse HTML page as XML/XHTML instead using regular expressions. I wraped it in XHTML but MS XMLDOM couldn't see it. If someone has idea how to parse HTML as XML in VBScript please let me know.

Quote
I know nothing about this sort of thing, so any help you could provide would be great.

If you compare both scripts you can see that it isn't that hard to pull arbitrary data from allmusic. Maybe I should have commented the code, but it seem silly to do so for such small script.

Edit: Minor issue corrected. Line 31: "<div id=""bio""> to "bio"">

Link updated

a quick guide on how to use this script?

  • marc2003
  • [*][*][*][*][*]
  • Developer
[Not my release] Biography view
Reply #393
file>preferences>tools>biography server. add run external script to the current source list. highlight it and move it to the top of the list.
back in the left hand pane, select run external script and add this new command

Code: [Select]
cscript //Nologo scripts\foo_allmusic_b.vbs "%album artist%"


now i'm not sure if the scripts folder here is relative to the user profile folder or the main foobar folder so you'll have to work that out for yourself. save the script from the pastebin website using the same file name.

  • marc2003
  • [*][*][*][*][*]
  • Developer
[Not my release] Biography view
Reply #394
as i was bored, i tried looking at fixing the vbscript so that line breaks in the AMG bio are retained but it was beyond me. 

so i bodged in a little jscript to handle that. the script is here....

http://pastebin.com/XFNQTesT

note this uses a different file extension and must be saved/called accordingly.

Code: [Select]
cscript //Nologo scripts\foo_allmusic_b.wsf "%artist%"


(i prefer %artist% over %album artist% but that's just a personal preference)
  • Last Edit: 18 August, 2011, 03:49:00 PM by marc2003

  • nickdc
  • [*][*][*]
[Not my release] Biography view
Reply #395
thanks, but doesn't work here, don't know why...just create a folder called "Nologo scripts" and put foo_allmusic_b.wsf in that...

ps, Is it possible to keep album review from allmusic?

  • marc2003
  • [*][*][*][*][*]
  • Developer
[Not my release] Biography view
Reply #396
nologo is a command line switch - not part of the folder name. i even put the folder name scripts in bold...

  • maXelo
  • [*]
[Not my release] Biography view
Reply #397
I love this plugin....but my only problem is with the "AC/DC" name, I use the following file path to save the last.fm data on my pc:
____________________________________________________________________________________________________
______________________
Metadata: C:\Users\maXelo\AppData\Roaming\foobar2000\lastfm\artist\$swapprefix(%artist%,A,The,Los,El,La,At The,As I,At The)
Image:    C:\Users\maXelo\AppData\Roaming\foobar2000\lastfm\artist\$swapprefix(%artist%,A,The,Los,El,La,At The,As I,At The)

Artist:
Folder path: C:\Users\maXelo\AppData\Roaming\foobar2000\lastfm\artist
File Name: [(%artist%,A,The,Los,El,La,At The,As I,At The)]

Album:
Folder path: blank
File Name: [%artist% - ][%album%]
____________________________________________________________________________________________________
_______________________

But somehow I can't save the AC/DC last.fm data, any ideas?...thanks in advance

  • marc2003
  • [*][*][*][*][*]
  • Developer
[Not my release] Biography view
Reply #398
try

$replace(%artist%,'/',-)

  • maXelo
  • [*]
[Not my release] Biography view
Reply #399
I'm sorry but where exactly do I put that string?