Last.fm scraper in development - help wanted
#3
spiff Wrote:okay, i'm in a bit of a hurry so i'll just go fast.

createalbumsearchurl - creates the url
getalbumsearchresults - returns a list of possible matches. here you only fill title, artist, year, genre (actually only title & artist is required). xbmc chooses which of these the user want (either letting the user choose from a list or scoring the matches and taking the one with the highest score), fetches this url then runs the scraper function GetAlbumDetails on the contents of that url. THIS is where you will fill ALL details.


Thank you very much for your explanation.. finally i got it to work Smile. My blocking step was that i didn't know why was the need of two regexp at the GetAlbumSearchResults section. I still don't know, but wrote then two regexp one for the "search title" and another one for the actual results. And then finally got into the next step Smile.

Anyway, what fields are mandatory for the album detail?, there isn't so much information on last.fm. I don't know what i should do with the "tags" because a tag here can be, a genre, a mood, and sometimes any other crazy thing the last.fm user decides xD.

Anyway thank you very much, i'm already making progress with it Smile. I even can get the cover !! Smile)

Oh!, one more thing i'm thinking about... if mp3s are already tagged with its genre , year of publish, and then with the scrapper get some of that information again from the web, which one is taken into account for the xbmc db and the library mode?. Ones from the id3 tags, or the ones from the scrapping result.

Thanks,

Pyro-X
Reply


Messages In This Thread
[No subject] - by spiff - 2008-10-13, 16:12
[No subject] - by pyro-x - 2008-10-14, 11:19
[No subject] - by v0lrath - 2008-10-14, 23:29
Tips! - by Gamester17 - 2008-10-15, 18:28
[No subject] - by DuMbGuM - 2008-11-18, 01:13
[No subject] - by spyrojyros_tail - 2008-11-21, 03:30
[No subject] - by rwparris2 - 2008-11-21, 05:30
[No subject] - by TechLife - 2008-11-22, 01:42
[No subject] - by spiff - 2008-11-22, 02:51
[No subject] - by TechLife - 2008-11-22, 02:55
[No subject] - by kriziz - 2008-12-07, 11:26
[No subject] - by Aron Parsons - 2008-12-24, 04:39
[No subject] - by kastrolis - 2008-12-29, 16:35
[No subject] - by Aron Parsons - 2008-12-29, 20:40
[No subject] - by spiff - 2008-12-30, 00:57
[No subject] - by kriziz - 2008-12-30, 12:33
[No subject] - by Aron Parsons - 2008-12-30, 17:24
[No subject] - by spiff - 2008-12-30, 18:32
[No subject] - by spiff - 2008-12-30, 22:38
[No subject] - by spiff - 2009-01-06, 19:42
[No subject] - by spiff - 2009-01-10, 15:41
[No subject] - by succo - 2009-01-10, 16:08
[No subject] - by spiff - 2009-01-10, 16:16
[No subject] - by succo - 2009-01-10, 16:19
[No subject] - by bashflyng - 2009-01-13, 01:02
[No subject] - by Loto_Bak - 2009-01-23, 04:08
[No subject] - by spiff - 2009-01-23, 16:38
[No subject] - by TheNME123 - 2009-02-17, 19:55
[No subject] - by Stranger - 2011-01-20, 20:31
[No subject] - by olympia - 2011-01-23, 18:10
[No subject] - by Stranger - 2011-01-25, 14:49
[No subject] - by olympia - 2011-01-25, 14:54
[No subject] - by Stranger - 2011-01-26, 01:25
[No subject] - by Zippolighter - 2011-02-28, 20:59
Logout Mark Read Team Forum Stats Members Help
Last.fm scraper in development - help wanted0