DonationCoder.com Forum
DonationCoder.com Software => Coding Snacks => Post New Requests Here => Topic started by: nickodemos on April 09, 2017, 12:41 AM
-
I deal with a lot of classic movies on a website I help moderate. I currently use a GreaseMonkey script to generate a basic BBCode NFO. [https://gist.github.com/cletusc/8d26902f46fe6b3ed850] This no longer works as intended since IMDB changed the layout of the pages. It still works well enough but I have been for a long time looking for something stand alone.
So the idea is to use OMDB.com API to gather the information and the parse the information into a given template. Be nice if each had a spot to make a template as you wanted. Here is an example of the OMDB api data return.
{"Title":"Soul Eater","Year":"2008–2009","Rated":"TV-14","Released":"07 Apr 2008","Runtime":"24 min","Genre":"Animation, Action, Adventure","Director":"N/A","Writer":"N/A","Actors":"Laura Bailey, Chiaki Omigawa, Micah Solusod, Brittney Karbowski","Plot":"Set in the Shinigami technical school for weapon meisters, the series revolves around 3 duo's. These pairs are a partnership between a weapon meister and a human weapon. Trying to reach a ranking of \"Death Scythe\" (and thus fit for use by the Shinigami) they must collect the souls of 99 evil humans and 1 witch. However, forces outside of the Academy make it more challenging of a feat.","Language":"Japanese","Country":"Japan","Awards":"N/A","Poster":"https://images-na.ssl-images-amazon.com/images/M/MV5BMWMzYmJiY2UtYzNhZS00ZTAzLTg3ODEtYWRiNmFjNjg0MWEwL2ltYWdlXkEyXkFqcGdeQXVyNTAyODkwOQ@@._V1_SX300.jpg","Metascore":"N/A","imdbRating":"8.0","imdbVotes":"8,175","imdbID":"tt1214085","Type":"series","totalSeasons":"1","Response":"True"}
Example of a possible template.
(http://%poster%)
http://www.imdb.com/title/%imdbID%/
Runtime: %Runtime%
Genre(s): %Genre%
Language(s): %Language%
Country: %Country%
Plot:
%plot%
Cast:
%cast%
I admit I would rather have IMDB for all the cast/director links but figure OMDB might be easier to work with.
-
So the idea is to use OMDB.com API to gather the information and the parse the information into a given template. Be nice if each had a spot to make a template as you wanted. Here is an example of the OMDB api data return.-nickodemos
Here's a quick proof of concept I threw together. Was this something like what you had in mind?
[ You are not allowed to view attachments ]
I admit I would rather have IMDB for all the cast/director links but figure OMDB might be easier to work with.-nickodemos
Unfortunately, IMDB do not have any sort of official API. Hence the need for sites like this OMDB API.
-
Added a bit more functionality.
[ You are not allowed to view attachments ]
-
This is exactly what I was thinking.
Is it possible to have access to all the information that the OMDB API uses? Each person could mock up their own way for presenting the information. I know I tend to add the poster along with maybe the rating so access it all would be nice.
How hard is it to add right click function? The idea all the call terms could be on a context menu.
Since you threw in the series is it possible to add the episode function?
-
This is exactly what I was thinking.-nickodemos
Good to know I was on the right track.
Is it possible to have access to all the information that the OMDB API uses?-nickodemos
I added all the tags/tokens I could find. Let me know if I missed any.
How hard is it to add right click function? The idea all the call terms could be on a context menu.-nickodemos
I've included an "Insert tokens" button with menu.
Since you threw in the series is it possible to add the episode function?-nickodemos
The episode stuff will take a bit of thought as the data it returns is different than movie or tv series data.
Here's the download: http://skwire.dcmembers.com/apps/omdb_tool/OMDbTool.zip
[ You are not allowed to view attachments ]
-
Love it. Just maybe a way to increase font size for large monitors and people (me) who's eyesight is no longer the greatest.
-
Love it. Just maybe a way to increase font size for large monitors and people (me) who's eyesight is no longer the greatest.-nickodemos
Please re-download and check the Options menu. I think this is ready for a website release. Thanks for the idea.
http://skwire.dcmembers.com/apps/omdb_tool/OMDbTool.zip (http://skwire.dcmembers.com/apps/omdb_tool/OMDbTool.zip)
-
Looks great. Thanks for the font size change.
Great as is and more than happy to live with this. Only thing that I can see to improve is the series option.
By the way if you do a series option then most of the time I would do a search by entering something like this "Supernatural S10e21".
-
Only thing that I can see to improve is the series option.-nickodemos
Did you actually mean the episode option?
-
Yes. Episode.
-
Error: No API key provided.
-edit
Looks like it might be a bust at this point unless you wanted to add an option for people to be able to put in an API key for the site. As I will never be a donor this is a dead project for me now.
Thanks for making it.
Only other suggestion would be Trakt.com and their use of an API.
http://docs.trakt.apiary.io/#introduction/create-an-app
-
Error: No API key provided.
-edit
Looks like it might be a bust at this point unless you wanted to add an option for people to be able to put in an API key for the site. As I will never be a donor this is a dead project for me now.
-nickodemos
The API fees were reasonable so we've covered it for the next two years at 100,000 API hits per month. I'm going to guess this tool isn't too widespread so that should be enough for now. Download v1.0.1 here:
http://skwire.dcmembers.com/apps/omdb_tool/OMDbTool.zip (http://skwire.dcmembers.com/apps/omdb_tool/OMDbTool.zip)
Cheers. =]
-
@nickodemos: Any luck with the latest version I released?
-
Yeah. Running perfectly. Thought I commented when you posted it but I guess I was happy that it worked again I forgot to.
;D
-
Great. Thanks for the update. :Thmbsup:
-
Website (http://skwire.dcmembers.com/fp/?page=omdb-tool) | Download (http://skwire.dcmembers.com/apps/omdb_tool/OMDbTool.zip)
v1.0.2 - 2018-01-04
+ Added "Save as..." and "Auto-save" buttons to make it easier to save data to text files.
+ Moved options from a menu to their own panel. Choose File > Preferences or press F4.
* Cleaned up the main interface a bit.