Kodi Community Forum
[Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Jarvis* - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Jarvis* (/showthread.php?tid=167754)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Jarvis* - wgstarks - 2017-05-29

(2017-05-26, 22:14)bsoriano Wrote: Here is what I did to get it to work using my apikey:

1. go to the folder script.imdbupdate/resources/lib
2. Edit the file imdbMovie.py
3. Around line 24 (at least that is the line number for me, using Notepad++), you will find a line like this: url="http://omdbapi.com/?i=%s" % self.__imdbID
4. Change it to look like this: url="http://omdbapi.com/?i=%s&apikey=xxxxxxxx" % self.__imdbID
5. Save the file.

I finally got my api key last night. Went to edit imdbMovie.py, but there is no line as described in your instructions. As a matter of fact there isn't any reference to omdb at all.
Code:
################
# IMDB Update  #
# by Jandalf   #
################

import httplib, socket, json

class imdbMovie(object):
    
    def __init__(self, imdbID, httphandler):
        self.__rating = ""
        self.__votes = ""
        self.__error = False
        self.__imdbID = imdbID
        
        self.getData(httphandler)

    def getData(self, httphandler):
        try:
            httphandler.request("GET", "/?i=%s" % self.__imdbID)
            response = httphandler.getresponse()
        except (httplib.HTTPException, socket.timeout, socket.gaierror, socket.error):
            self.__error = True
        else:
            if response.status == 200:
                try:
                    data = json.loads(response.read().decode('utf8'))
                    if "error" in data or data["Response"] == "False":
                        self.__error = True
                    else:
                        self.__rating = data["imdbRating"]
                        self.__votes = str(data["imdbVotes"])
                except:
                    self.__error = True
            else:
                self.__error = True
    
    def rating(self):   return self.__rating
    def votes(self):    return self.__votes
    def error(self):    return self.__error
    def imdbID(self):   return self.__imdbID

Did I miss an update or something?

Edit: DID miss an update. Went back through the last couple of pages and found the dropbox link posted by bsoriano (thanks Bart).


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Jarvis* - inv3ntor - 2017-05-29

imdb is free guys, you dont need to pay to get their ratings.

I would rather refresh my content & wait the extra time for my ratings to update than pay $1 to someone trying to make money off the free imdb site.

Ask brain to post an actual statement on his patron page and not an example so we can see what cloudfare are actually charging him, and maybe then i will believe its worth paying even $1 to access the free imdb ratings that kodi still scrapes every time you add a movie to your library for free.


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Jarvis* - Squazz - 2017-06-05

I would love to see a move away from omdbapi. And if that's not the case, OP should update the thread to tell people that they now need to become patreons.


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Jarvis* - Botafuco - 2017-06-05

(2017-05-29, 23:35)inv3ntor Wrote: imdb is free guys, you dont need to pay to get their ratings.

I would rather refresh my content & wait the extra time for my ratings to update than pay $1 to someone trying to make money off the free imdb site.

Ask brain to post an actual statement on his patron page and not an example so we can see what cloudfare are actually charging him, and maybe then i will believe its worth paying even $1 to access the free imdb ratings that kodi still scrapes every time you add a movie to your library for free.

Scrapping content from imdb web pages is not allowed by their policy. Yes, it's free as long as you manually visit their site yourself and search/browse for stuff there.


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Jarvis* - dvbtjunkie - 2017-06-05

maybe or a way to update the imdb rating from the ftp server, yes its not the best way but free.

http://www.imdb.com/interfaces
ftp://ftp.fu-berlin.de/pub/misc/movies/database/


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Jarvis* - inv3ntor - 2017-06-07

(2017-06-05, 15:53)Botafuco Wrote: Scrapping content from imdb web pages is not allowed by their policy. Yes, it's free as long as you manually visit their site yourself and search/browse for stuff there.

So the scrapers that kodi uses to add content to the library are not getting the imdb rating from the imdb? Or they are violating their policy? All i know is the universal movie scraper i use that comes with kodi, gets all the imdb ratings for free. Also if i refresh any movie in my library, or update the source, it again gets the ratings/votes from the imdb for free. Im sure the other scrapers do the same, for free.

So why cant a mod use the same source these scrapers that come with kodi use? Or better yet, the scrapers could be updated with an option to just update the ratings on demand and not the entire item, that would work too. Or are you saying kodi is shipping with scrapers that violate the imdb's policy? Im confused.


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Jarvis* - Finchy - 2017-06-07

I wondered why I kept getting errors for IMDB update.

Are they going to drop the "Open" bit from Open Movie Database, now that they're wanting people to pay for it? Undecided


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Jarvis* - bfritz - 2017-06-13

Hey it's Brian from the OMDb API.

Lots of salt in this thread!

@inv3ntor you caught me man! This was my plan from the start! I spent hundreds of hours creating/maintaining this free API just to bait and switch people 7 years later... And all for the insane price of $1 a month! Muhahaha *evil laugh*... Devil

Actually, I'm working diligently on the rate limiting code and registration process to provide free keys which will be finished very soon (hopefully this week or next) most likely before any of the Patreon pledges are even charged (1st of next month) so they can all switch to free keys before even being charged.

I also work full-time as a developer so that eats up 50+ hours a week of which I can't work on the API.

It's no secret what my server costs are, I posted them on the Patreon page: https://www.patreon.com/posts/server-costs-8104321

I only pay CloudFlare $200 a month, and that was the issue, I've had numerous meetings with their sales/enterprise team and my traffic was costing them over $2,500+ a month, they wanted to cut me a deal for $4,000 a month instead of their usual $5,000 enterprise plan, but the donations and even Patreon today is nowhere near covering those costs.

Anyone that tells you they can host a site pushing 50TB's a month and 1 BILLION+ requests a day for under 2-4k is lying! Go play with Azures/AWS server cost calculators and punch in the numbers yourself.

I was given an ultimatum, shut it down or be shut down! Going private was the only option I could implement in the time frame given to instantly reduce traffic by 90%.

I put numerous warnings on the homepage to give people adequate time to implement the keys into their codebase, I was not aware Kodi was using my API at all. I will gladly give them an unlimited free key they can include in their compiled software, they just have to ask Smile

And once again, I would like to apologize for my lack of foresight on how big this API would get and my ignorance of bandwidth costs. And Kudos to all the folks who did become patrons to help out! Thanks for sticking around during this hardship!

-b


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Jarvis* - wgstarks - 2017-06-13

(2017-06-13, 09:34)bfritz Wrote: Hey it's Brian from the OMDb API.

Lots of salt in this thread!

@inv3ntor you caught me man! This was my plan from the start! I spent hundreds of hours creating/maintaining this free API just to bait and switch people 7 years later... And all for the insane price of $1 a month! Muhahaha *evil laugh*... Devil

-b

Well, I'm glad we were able to put a halt to your nefarious plot to throw the world into utter chaos.
If you switch to a free API before the end of the month will we be able to get a refund on our unused balance?CoolBig Grin


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Jarvis* - cgi2011 - 2017-06-13

This sounds great, i'm looking forward for the updated addon!

@bfritz: Thank you very much for your response, i really appriciate your work and your intentions for a free key for us kodi users Smile !

Greetz
cgi2011


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Jarvis* - axlt2002 - 2017-06-14

Hi guys,

For who may be interested, I have released an add-on called Light IMDb Ratings Update. Feel free to give it a look...

Alex


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Jarvis* - xbozzo - 2017-06-21

(2017-06-14, 12:08)axlt2002 Wrote: I have released an add-on called Light IMDb Ratings Update.
which runs only on windows...


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Jarvis* - axlt2002 - 2017-06-21

(2017-06-21, 03:16)xbozzo Wrote:
(2017-06-14, 12:08)axlt2002 Wrote: I have released an add-on called Light IMDb Ratings Update.
which runs only on windows...

So what? Confused

Which platform are you interested in?


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Jarvis* - glubbish - 2017-06-22

I am interested in ubuntu.


RE: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Jarvis* - RealJustMe - 2017-06-22

android for me