custom polish music scraper - help and bug reports wanted! - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Scrapers (https://forum.kodi.tv/forumdisplay.php?fid=60) +--- Thread: custom polish music scraper - help and bug reports wanted! (/showthread.php?tid=49391) |
custom polish music scraper - help and bug reports wanted! - smuto - 2009-04-22 hey, i did for myself hybrid english\polish scraper mostly i use code from xbmc existing scrapers allmusic - for generic info [english] - thx spiff merlin.pl - for album review [polish] lastfm - for artist biography [polish] - thx spiff http://smuto.w.interia.pl/allmusic_merlin_lastfm.xml smuto - spiff - 2009-04-22 new scraper - smuto - 2010-03-18 hey again next custom polish music scraper http://smuto.w.interia.pl/xbmcpicard.xml album search - musicbrainz.org album review - merlin.pl album generic info - allmusic.com artist search - lastfm artist discography - musicbrainz.org artist biography - lastfm artist generic info - allmusic.com diacritics replace for allmusic search by my own php tool smuto - smuto - 2010-03-30 i need to ask is xbmc supports MBID when scrobbling a song? mayby we can add MBID to the buffers passed to scrapers? CreateAlbumSearchUrl: $$1 = album title, $$2 = artist title, $$3 = album mbid CreateArtistSearchUrl: $$1 = artist title, $$2 = artist mbid take a look http://musicbrainz.org/ws/1/artist/$$2?type=xml&name=$$1 and now my problem artist = "The The" with empty mbid http://musicbrainz.org/ws/1/artist/?type=xml&name=The+The or with http://musicbrainz.org/ws/1/artist/a7409219-a681-4072-adb2-5285106ce6f2?type=xml&name=The+The and no more problems with auto scan smuto - spiff - 2010-03-30 good idea. we do extract them so they should be passable. trac it please. - smuto - 2010-04-09 more questions Is there a way to fill tracks info <track><position>\1</position><title>\2</title><duration>\3</duration></track> from this xml http://musicbrainz.org/ws/1/release/f2b81710-c2ab-4232-9165-1ed7223a131a?type=xml&inc=artist+tracks+counts+release-events position - mayby repeat index duration - milisecends for now i open a new html page allmusic scraper common requests whether we can move a tracks info from ParseAMGAlbum to GetAMGReview? smuto - spiff - 2010-04-12 tricky to get sane info from that page. you can most definitely split parseamgalbum if you find it advantageous. - bambi73 - 2010-04-12 If you are still looking for loading track infos from xml, you can try using something like: !!! WARNING !!! I wrote this without much knowledge about your scraper (only checked it briefly) and without any testing in XBMC, so i guess there are some errors, but in theory it should work (i used similar constructions in my scraper) Code: <xxxxxxx clearbuffers="no" .....> But i'm not sure if you can call it "sane" :p - smuto - 2010-04-12 "sane" is position & duration position is just tricky, but i also need change format of duration from <duration>246826</duration> to <duration>4:07</duration> thx for your help - spiff - 2010-04-12 it would need code support to allow something ala <duration format=".."></duration> - bambi73 - 2010-04-12 If you want to pull some stunts you can use this Code: <RegExp input="$$1" output="\1" dest="20"> But it's even more insane than last time And i guess you can see drawbacks. Because it depends on generated number lines, it will work correctly only up to the numbers what you have in scraper (in this case 1000999 = 16:40.999). From my point of view you should make official feature request (in Trac) for some kind of duration formating because it can be handy for others too. But feel free use this piece of code if you want, it works somehow (only briefly tested). I hope i didn't any stupid mistake. - spiff - 2010-04-13 LOL! ^ this guy's got stamina for sure - bambi73 - 2010-04-13 You can call it curiosity |