Getting started with scraper development? Discoogs, and Anime News Network

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
spiff Offline
Grumpy Bastard Developer
Posts: 12,172
Joined: Nov 2003
Reputation: 81
Post: #11
in createalbumsearchurl you are fed album name in $$1 and artist name in $$2
this should do it;

Code:
    <CreateAlbumSearchUrl dest="3">
        <RegExp input="$$1" output="http://www.discogs.com/search?type=releases&q=[\1][$$2]&btn=Search" dest="3">
            <expression noclean="1"></expression>
        </RegExp>
    </CreateAlbumSearchUrl>

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
ztripez Offline
Junior Member
Posts: 48
Joined: May 2008
Reputation: 0
Post: #12
Ah thanks Wink,
Perhaps some OT but i'm trying to make a build on linux (using latest svn) and i get compling errors.
make[2]: Leaving directory `/home/ztripez/XBMC/xbmc/cores/dvdplayer/Codecs/ffmpeg´
make[1]: Leaving directory `/home/ztripez/XBMC/xbmc/cores/dvdplayer/Codecs´
make *** [dvdcodecs] Error 2
make[1]: Leaving directory `/home/ztripez/XBMC/´

Errors have occured!
View compile log (y/n).
find quote
ztripez Offline
Junior Member
Posts: 48
Joined: May 2008
Reputation: 0
Post: #13
nevermind i did a fresh checkout and now it's working fine Wink
find quote
ztripez Offline
Junior Member
Posts: 48
Joined: May 2008
Reputation: 0
Post: #14
I dunno if it is only me being stupid or..
Is there anyway to get a debug output on whats actualy going on? how the xml-"file" i'm doing to the scraper looklikes and such.
I've try to set loglevel in the advancedsettings.xml but nothing happends.. do i miss anything?
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,172
Joined: Nov 2003
Reputation: 81
Post: #15
not really, but if you speak c++ go to xbmc/utils/MusicInfoScraper.cpp for music or xbmc/utils/IMDB.cpp for videos. in the relevant functions you can printf / log the received xml. just look for .Parse() and print the returned strings there. i'm a bit too intoxicated to cook up a diff rite now, but i can do it tomorrow if u can figure it out yourself

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
ztripez Offline
Junior Member
Posts: 48
Joined: May 2008
Reputation: 0
Post: #16
no worries.. i'm about rusty on the C++ but i think i will manage to do some priting Wink

thanks alot for the help
find quote
stampgevaar Offline
Junior Member
Posts: 1
Joined: Sep 2008
Reputation: 0
Post: #17
hey, great that you're working on a discogs scraper. I've been looking for that for a long time.

I don't know if your something with it but there is something similar for foobar with the sourcecode available. It uses discogs to tag the mp3 files.

http://www.hydrogenaudio.org/forums/inde...opic=50523
find quote
TechLife Offline
Donor
Posts: 348
Joined: Aug 2008
Reputation: 13
Location: Aurora, CO
Post: #18
deleted

*If I helped, please +rep below*
Main HTPC: Core i5, 8GB RAM, SSD, Win7x64SP1, Frodo 12.1
Extenders: 3-AppleTV (CrystalHD 2.0)
The XBMC team, plug-in devs, skinners, etc. do this for us for FREE in their spare time because they want to. Think about that for a second before you start bitching...
(This post was last modified: 2008-11-11 05:08 by TechLife.)
find quote
Post Reply