Skip to main content

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

0 Members and 1 Guest are viewing this topic.
  • marc2003
  • [*][*][*][*][*]
[Not my release] Biography view
Reply #600
In fact, I asked you, I know you have the skills


actually i don't. scraping data from websites is much harder (at least to me) than using the documented webservices such as those provided by last.fm or the echonest.

BTW, i used the alphabetical shortcuts on the page to look up all artists beginning with the letter R. do you know how many there are? 29. sorry but nobody is going to write a bespoke script for a site like that. 

my only suggestion is to manually copy/paste the text into text files which my simple text reader script for WSH panel mod can then read and display in a panel. it supports title formatting so just dump the text file somewhere in your music folders and configure the script accordingly.

  • antonyb
  • [*]
[Not my release] Biography view
Reply #601
In fact, I asked you, I know you have the skills


actually i don't. scraping data from websites is much harder (at least to me) than using the documented webservices such as those provided by last.fm or the echonest.

BTW, i used the alphabetical shortcuts on the page to look up all artists beginning with the letter R. do you know how many there are? 29. sorry but nobody is going to write a bespoke script for a site like that. 

my only suggestion is to manually copy/paste the text into text files which my simple text reader script for WSH panel mod can then read and display in a panel. it supports title formatting so just dump the text file somewhere in your music folders and configure the script accordingly.

Good idea, but then you always update your biography, in the case of new album ..

  • marc2003
  • [*][*][*][*][*]
[Not my release] Biography view
Reply #602
my musicbrainz and discogs release scripts have clickable links taking you to the release page of new albums (assuming they've been added to those sites of course). they check for updates once a week (not automatically but when you select an artist and the cached data is over a week old). that doesn't mean to say the biographies on any given site will be updated but at least it's an easier way to check for new stuff.

  • antonyb
  • [*]
[Not my release] Biography view
Reply #603
my musicbrainz and discogs release scripts have clickable links taking you to the release page of new albums (assuming they've been added to those sites of course). they check for updates once a week (not automatically but when you select an artist and the cached data is over a week old). that doesn't mean to say the biographies on any given site will be updated but at least it's an easier way to check for new stuff.

How do I do this?

  • marc2003
  • [*][*][*][*][*]
[Not my release] Biography view
Reply #604
my WSH panel mod scripts are in here: https://dl.dropbox.com/u/22801321/samples.zip

please check the readme carefully.

recent screenshot of my musicbrainz script here. (that's 2 instances showing off its different modes)

the discogs script looks exactly the same as the panel on the left except the source is obviously different. newest releases are displayed first. clicking the text links opens your browser where you can find more release information and track listings.
  • Last Edit: 19 March, 2013, 03:17:17 PM by marc2003

  • mjm716
  • [*][*][*]
[Not my release] Biography view
Reply #605
you guys are helpless




yes most of us are!

I have to add my +1 to any method of getting the bio|review data portable into tags (as an additional option to standard output & file).
Alternately just somehow having it referenced in the Foo db would be wonderful so that it could be searched (full text or just binary: missing/present).

Any chance of this?

I understand some of the difficulties, and I know I'm helpless to do so!

However, I would be willing to donate to such an undertaking & perhaps others are also willing?! 

Spring Equinox today and Berlin is buried in snow, so thoughts tend towards the very unpractical! 

  • romor
  • [*][*][*][*][*]
[Not my release] Biography view
Reply #606
I don't like to ask this question, but really, why would you want to match text from reviews/bios? What is your scenario?

AFAIK, you can't instruct foobar to tag files from text files, nor you can tag files with text that has new lines, other way than manually.
You can tag from text files with Mp3tag and I'll show you here how to extract XML data to text files:

- download this stylesheet: https://gist.github.com/b91dee6eeac15d8bdfb3
- run it through XSLT 2.0 aware processor, i.e. Saxon:

Code: [Select]
"C:\Program Files\Saxonica\SaxonHE9.4N\bin\Transform.exe" -s:foo_allmusic.xml -xsl:foo_allmusic.xsl

Above command will create text files for each review and biography item, named accordingly.

  • mjm716
  • [*][*][*]
[Not my release] Biography view
Reply #607
why would you want to match text from reviews/bios? What is your scenario?


Thanks much for the text technique.

Why?

missing/present is pretty obvious, otherwise, it's just nicer to have a bigger data set for search and cross-referencing

  • romor
  • [*][*][*][*][*]
[Not my release] Biography view
Reply #608
But it will interfere common search...

You could also try lyricsgrabber component, as it seems it does allow writing arbitrary data to arbitrary tag automatically

  • Eric75
  • [*]
[Not my release] Biography view
Reply #609
my WSH panel mod scripts are in here: https://dl.dropbox.com/u/22801321/samples.zip

please check the readme carefully.

recent screenshot of my musicbrainz script here. (that's 2 instances showing off its different modes)

the discogs script looks exactly the same as the panel on the left except the source is obviously different. newest releases are displayed first. clicking the text links opens your browser where you can find more release information and track listings.

Hello Marc thanks a lot for all your scripts.
Some questions:
- Is it possible to chain some external scripts ? (IE LastFM + AMG +  ...) or do I need to have multiple Biography panels to do that ?
  It looks it is stopped after 1st successful one. or am I wrong in some place ?

  • marc2003
  • [*][*][*][*][*]
[Not my release] Biography view
Reply #610
if you're talking about this component's ability to run scripts in order until it finds some content then no. mine won't do that. also, i don't have an AMG script so you'd have to stick with biography view for that anyway.

  • Eric75
  • [*]
[Not my release] Biography view
Reply #611
if you're talking about this component's ability to run scripts in order until it finds some content then no. mine won't do that. also, i don't have an AMG script so you'd have to stick with biography view for that anyway.

Hello Mark

I mean if I setup multiple commande lines in biography "external script" biography component box:
- are they all run in sequence (from top one to bottom one)
- or is it stopped at some point ?

If not possible to run them in sequence I have the option to merge all the scripts I need in one but I think that it is easier to manage with multiple ones.

Thanks, Eric

  • marc2003
  • [*][*][*][*][*]
[Not my release] Biography view
Reply #612
- are they all run in sequence (from top one to bottom one)


i believe that is the case. i presume it stops when one of the options returns some content. maybe romor or someone else more familiar with it can answer that. as this is a global setting, i guess it won't work if you want multiple panels. again that would require confirmation from someone who really knows.

all my scripts are completely independent of each other, being self contained as they are in their own panel. perhaps setup a WSH panel with my last.fm script (it displays exactly the same content as this component/romor's script). then have this component check for the AMG script? put them next to each other or in tabs perhaps?
  • Last Edit: 24 March, 2013, 10:45:25 AM by marc2003

  • Eric75
  • [*]
[Not my release] Biography view
Reply #613
Yes, I am going to try this way
Thanks again Mark
Eric

[Not my release] Biography view
Reply #614
Edit: Sooner than later, here is 6 line vbscript that renders as expected full last.fm bio: https://gist.github.com/aa2ada8bdc93144abd03

Hi and thank you for this script romor!

I've been trying to get it to work but I don't seem to be able to succeed. I followed the instructions that you posted and the script seems to run but it only returns the first letter of the last.fm bio as a result. That is, in the bio window I see the images and then just one (capital) letter. Any idea of how I might be able to fix this?

  • romor
  • [*][*][*][*][*]
[Not my release] Biography view
Reply #615
Most probably you haven't set UTF-16 encoding and you used cscript with "//U" switch.
So in preferences select the the command, then set "character code" to UTF-16 and hit "update" button

[Not my release] Biography view
Reply #616
Ah, you are right and now it works. Wonderful!

Thank you again and sorry I troubled you with such a silly little mistake.

  • foomark
  • [*][*]
[Not my release] Biography view
Reply #617
i know it's a question that only a noob could do but...
where do i find this  menu? 


[Not my release] Biography view
Reply #618
Step by step walkthrough:

1. download the script from provided link and save it in foobar's folder
2. In foobar's preferences navigate to "Biography Server" page and from "Available source list" listbox, add "Run External Script" item to the "Current source list" list box. Move it to the top with the "Up" button
3. In foobar's preferences "Run External Script" page, in Artist tab, type exactly what you see in quoted image

(Preferences->Tools->Biography Server->Run External Script)

  • foomark
  • [*][*]
[Not my release] Biography view
Reply #619
Step by step walkthrough:

1. download the script from provided link and save it in foobar's folder
2. In foobar's preferences navigate to "Biography Server" page and from "Available source list" listbox, add "Run External Script" item to the "Current source list" list box. Move it to the top with the "Up" button
3. In foobar's preferences "Run External Script" page, in Artist tab, type exactly what you see in quoted image

(Preferences->Tools->Biography Server->Run External Script)


Ops, sorry, i completely missed the "Run external script" menĂ¹...
I followed every step but it doesn't seems to work for me, or probably i'm missing something else...
here's what i actually did, but (i'm using the DarkOne skin) the BIO panel is empty :S


  • Propheticus
  • [*][*][*]
[Not my release] Biography view
Reply #620
works flawlessly here... also darkone skin. Have you made sure the script is placed in foobar's root folder?

  • foomark
  • [*][*]
[Not my release] Biography view
Reply #621
works flawlessly here... also darkone skin. Have you made sure the script is placed in foobar's root folder?


Yes it is.
May it be related to the fact that i'm using a portable foobar2000 installation??

  • acmodeu
  • [*][*]
[Not my release] Biography view
Reply #622
Is there any way to make it stream more than 6 artist pictures?

  • romor
  • [*][*][*][*][*]
[Not my release] Biography view
Reply #623
Is there any way to make it stream more than 6 artist pictures?

Value seem hashed in configuration file. So even if you try brute force you probably can't go far and test if you can trick it.

@foomark: maybe try with absolute path to script file: `cscript //nologo "c:\...\lastfm_bio.vbs" ...`
  • Last Edit: 09 April, 2013, 11:18:14 AM by romor

  • foomark
  • [*][*]
[Not my release] Biography view
Reply #624
@foomark: maybe try with absolute path to script file: `cscript //nologo "c:\...\lastfm_bio.vbs" ...`



i tried this method and the result is ....
look 
[a href="http://postimg.org/image/4kltiynsj/" target="_blank"]
PPS: if i double click on it, the whole panel gets empty.