INTERACT FORUM

Windows => Plug-in Development => Topic started by: fredele on February 24, 2014, 03:18:03 am

Title: themoviedbAPI integration
Post by: fredele on February 24, 2014, 03:18:03 am
Hi folks !
I've written a very little program  who can be run with the external execute command, and "Filename" as parameter.
My program connects to the free Themoviedb (.org) API  to retrieve the data online and writes them to the xml file located in the same directory as the movie file.
This new information can be retrieved in the database by updating it with the appropriate command in JRiver.

BONUS : Have the information in french, my native language ...  ;D

Question :

- Do i have the rights to modifie this file by my own this way ? ? I do not access JRiver by COM this way, just complete standalone app ..
- Any interest ?

Thanks for your time !


 
Title: Re: themoviedbAPI integration
Post by: astromo on February 24, 2014, 03:31:34 am
For an English language user, it sounds like your API wouldn't offer an advantage over MC's current onboard Get Movie & TV Info function.

Am I missing something?

I'm sure your fellow French speakers and other foreign language users may be looking at this as useful. Great work for being so industrious.
Title: Re: themoviedbAPI integration
Post by: fredele on February 24, 2014, 03:54:09 am
Well, the answer to your question is YES and No ...

Of course, the moviedb is for now integrated in JRIver, but it appears that all the information who is present is not correctly retrieved by the
program itself ..

Or maybe have I missed something ... ?
I have some example ...

My app also lets you chose with a user interface which field will be imported or not in the xml.

It also can write more fields (including characters, Executive Producer, Sound engineer, so forth ...) which can not be done with JRiver alone.
This new fields can be created in the database as  custom fields, an so be written from the xml file ..

NOTE : With futher developpment it coud also do some Web scraping from other site ...legal issue ?  :-X Really don't know ..
Title: Re: themoviedbAPI integration
Post by: fredele on February 24, 2014, 04:04:19 am
Well,
'A picture speaks a thousands words' as we usully say in france ...
so ..
(https://imageshack.us/download/21/42md.jpg)
Title: Re: themoviedbAPI integration
Post by: astromo on February 24, 2014, 04:11:48 am
Magnifique!

Now I'm getting the concept. Looks funky.
Title: Re: themoviedbAPI integration
Post by: fredele on March 12, 2014, 08:08:57 pm
So, i've just finished the app.
Now it has been fully  tested on W7 and W8, my myself and two guys from the French section.
Works good, does the job.
I put everything, including a setup, on git : https://github.com/fredele/JRMoviedB
Title: Re: themoviedbAPI integration
Post by: robydago on July 14, 2014, 04:30:06 pm
thanks  a lot fredele,

there are some glitches, but it's basically usable.
since the embedded MC function is able to get move info in English only, your tool is invaluable!
Title: Re: themoviedbAPI integration
Post by: fredele on July 15, 2014, 04:06:47 am
Yes, it' s not a state of art, I know .. ;D.., but  it does the job ...

Feel free to PM me if you have any suggestion or fork the project.

Cheers !
Title: Re: themoviedbAPI integration
Post by: glynor on July 16, 2014, 10:59:35 pm
fredele, you should really investigate just accessing MC's Database via COM.  The COM interface is pretty robust, and provides fast and convenient access to the entire MC Library (for reading and writing).

Of course, looking just at the file extensions of your source, it looks like you are writing in Delphi.  I'm not sure how simple it would be to access MC over COM via Delphi, but it doesn't look impossible (http://www.blong.com/Conferences/BorConUK97/WinAPI/Api.htm).

It really isn't bad in C#, once you get the reference to the main IMJAutomation interface.

Details:
http://wiki.jriver.com/index.php/Media_Center_Automation
Title: Re: themoviedbAPI integration
Post by: fredele on July 17, 2014, 08:37:14 am
The first version I wrote was writing the XML file and sending a PosteMessage  'update from file' ...simpler to program I thought.

But now the app. works  with COM, and yes it wasn't to hard to do it in Delphi ...