Posts: 952
Joined: Feb 2005
Reputation:
0
I wish to create a command line util using some of the xbmc code which basilcly gets imdb id and a folder where to put the nfo.
From the id it should scrape imdb and save the data into a nfo which will be picked up by xbmc.
Goal is to offload scraping on a pc server.
Any inspiration from a dev knowing the source?
Posts: 1,677
Joined: Apr 2007
Reputation:
7
It's not command line, but have you looked into XBMC Media Companion?
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
IF you would still like to make that tool (preferably cross platform) i'm ready to guide you all the way. our scraper devs are really missing such a thing
Posts: 952
Joined: Feb 2005
Reputation:
0
spiff, yes I still wanna code it but using Visual Studio 2008 Express Edition.
My idea was to use as much of the existing code and just clue it together. No need to reinvent the wheel here.
I have made a few patches for xbmc, but most of the source is uncharted territory, so a few pointers from a dev could save some time.
I have no idea how do code command line tools for neither Linux nor Mac though - not my platforms, but when pc version is done, porting should be easy.
Maybe the code could be put in svn.
Maybe I can catch you on irc some evening?
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
just try to talk to me on irc, worst case scenario i'm not there/available
Posts: 952
Joined: Feb 2005
Reputation:
0
gamester, yes it would be c++ inorder to reuse existing code base properly.
I just wanted to do it simple...
input imdb id + a folder
output: nfo xml file with the scrapped data from imdb
I think in theory without knowing the codebase too well, this is more or less a matter of calling a few functions. I know one of them nfofile.save hehe
supporting multiple scrapers would probably need different input params
spiff, last two times I tried to msg you on irc you weren't there hehe. will try again
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Feel free to msg me if I'm around as well. I shall endeavour to idle in #xbmc from time to time.
Posts: 952
Joined: Feb 2005
Reputation:
0
After too many hours trying to escape dependency hell, I need some help getting the gui out of settings. I have yet to write a single line of code on this.
Dependency hell starts easily by making a new console application, setting unicode to multibyte, adding videoinfotag to project and compiling. I managed to get rid of a lot of unneeded includes but settings is a show stopper because much code needs it.
I know the focus has never been on code reuse outside xbmc and therefore the source is more entangled and harder to reuse outside.
Perhaps a dev with more knowledge about the source could look into not needed dependencies when the time permits. Then I will give this another shot.