Posts: 8
Joined: Feb 2014
Reputation:
0
I'm working on a trailer downloading program. Does XBMC keep a list of all the movies in the users library, or would I need to get each movie name myself? Also, does XBMC support any particular naming conventions for trailers? Ie. append -trailer to the filename or update the .nfo? Thanks!
Posts: 3,735
Joined: Dec 2010
Reputation:
53
negge
yo guysv7may bd latr tomorroe
Posts: 3,735
You can easily retrieve all movies through the JSON-RPC API.
Posts: 8
Joined: Feb 2014
Reputation:
0
2014-02-10, 04:26
(This post was last modified: 2014-02-10, 05:11 by nipponbob.)
The JSON-RPC API sounds like what I'm after. A the moment I am getting a list of files in the movie dir and building an url from the filenames, which is working pretty well. However to be able to make a call to the API and see whether or not the trailer exists would super handy! Now, I've got to figure out how JSON works. Thanks for pointing me in the right direction. Trailer scraping is something I feel is sorely missing from XBMC!
Edit : This is a stupid question, but does XBMC need to be running to access the JSON-RPC API?
Posts: 5,184
Joined: Jan 2009
Reputation:
131
Yes XBMC needs to be running. IIRC the TheMovieDB scraper supports trailer scraping. At least in its settings you can choose whether to download trailers and what quality you would like to get.
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.
Posts: 8
Joined: Feb 2014
Reputation:
0
I've never been able to get TMDB to download trailers! While youtube does work, every now and then I run into a trailer that buffers for ages. For the time being I will just grab the filenames myself and rename them to 'movie/trailer/movie-trailer.mov'
Eventually I'd like to turn this into an XBMC addon but that is more than likely a few weeks if not months away. I'd like to get the whole lot working as a script first, and then convert it to an addon. I'm pretty new to python, so might as well take the long route!
Thanks for your help Montellese!