KodiTips Forums

!!

Sign Up For A FREE Account Today... Click the "REGISTER" button above this box!

Sign up for a free KodiTips forum account and discuss Kodi tips and tricks. Get help for your Kodi problems and join in the conversation today.

Covenant showing wrong imdb ratings (for streaming content)

something112

  • 1
  • +0/-0
    • View Profile
Covenant showing wrong imdb ratings (for streaming content)
« on: November 10, 2017, 11:43:56 am »
Hi guys, I've been really trying to do this on my own and figure it out for days but I'm still having this problem and can't find google results ANYWHERE pertaining to my problem

this is for streaming movies/shows on covenant addon. (not local/stored content which you can easily update or modify with scrapers).

Example: load up covenant and load up popular movies, select a movie and go to "information" most of the movies have wrong imdb ratings and votes. I then load up bubbles and do something similar and it has the correct imdb rating and votes. I've tried to find a way to copy over the code from bubbles plugin folders to the covenant folder but i'm still lost. Any help would be really great.

This is not only on my android but also on my laptop, both have the same problems of covenant showing incorrect ratings and bubbles or other addons showing the correct imdb ratings. How can I fix this?

the worst example is Emoji movie, it shows Very wrong rating of 7.0 (4,549 votes) but in bubbles it shows correct imdb rating of 2.7.

What gives? Ive tried all the addon settings and changing themoviedatabase scraper to get imdb ratings but it doesnt matter if I choose TMDB or IMDB ratings it still shows the same in covenant. Everything i've googled or researched about ratings only talk about library/local content and not streaming information. 

Someone please help would really make my day, been stuck on this forever.

Would also love to get rotten tomatoes ratings on the stream information window but alas I can't even get the correct imdb ratings for covenant.

I really like covenant and it's my only major problem that I'm having so I'd like to continue using it.
« Last Edit: November 10, 2017, 11:56:40 am by something112 »

TonyH

  • 608
  • +41/-3
  • You have a 50-50 chance if you follow my advice 😂
    • View Profile
Re: Covenant showing wrong imdb ratings (for streaming content)
« Reply #1 on: November 10, 2017, 12:10:15 pm »
Sounds like a coding issue in Covenant. I would suggest opening an issue on github but you will need to upload a log or they wonít even look at it. Seems to me Covenant has been having a lot of issues lately and a lot of updates. It may get fixed in the next update. There are plenty of other quality addons you could use temporarily or permanently. Bob unleashed, Elysium, Bennu, and a few hundred more.

broknsymetry

  • 144
  • +6/-0
    • View Profile
Re: Covenant showing wrong imdb ratings (for streaming content)
« Reply #2 on: November 10, 2017, 03:27:25 pm »
Seems to me Covenant has been having a lot of issues lately and a lot of updates.

Off topic but, ever since "The Alpha" retired from coding Bennu (something about others ripping off his work) the devs have been trying to disguise their code inside of Covenant so every time there is an update to Bennu there must be an update to script.module.covenant.  This is IMO a bad programming practice.  But you are right, Covenant itself has been having a lot of updates recently.  I wish they would create a stable release version and an opt-in alpha nightly, but such is the world of Kodi addons. :)
« Last Edit: November 10, 2017, 05:47:51 pm by broknsymetry »

TonyH

  • 608
  • +41/-3
  • You have a 50-50 chance if you follow my advice 😂
    • View Profile
Re: Covenant showing wrong imdb ratings (for streaming content)
« Reply #3 on: November 10, 2017, 08:40:15 pm »
Yea, I think Covenant and Bennu are both using the new Covenant blah blah module. Forgot the name, and I think thatís adding to the problems

Mak P

  • 3
  • +0/-0
    • View Profile
Re: Covenant showing wrong imdb ratings (for streaming content)
« Reply #4 on: January 06, 2018, 12:21:54 am »
I've been trying to figure this out too. I notice when I hit information on the movie, let's say Blade Runner 2047

It says
Plugin.video.covenant/?action=play&title-Blade+Runner+2049&year=2017&imdb=tt1856101&meta=7B%22%3A+7.7954400000000001%2C+%22tmdb

I see where its sort of coming from. the covenant.py file under plugin.video.covenant

Code: [Select]
params = dict(urlparse.parse_qsl(sys.argv[2].replace('?','')))

action = params.get('action')

name = params.get('name')

title = params.get('title')

year = params.get('year')

imdb = params.get('imdb')

elif action == 'random':
    rtype = params.get('rtype')
    if rtype == 'movie':
        from resources.lib.indexers import movies
        rlist = movies.movies().get(url, create_directory=False)
        r = sys.argv[0]+"?action=play"
    elif rtype == 'episode':
        from resources.lib.indexers import episodes
        rlist = episodes.episodes().get(tvshowtitle, year, imdb, tvdb, season, create_directory=False)
        r = sys.argv[0]+"?action=play"
    elif rtype == 'season':
        from resources.lib.indexers import episodes
        rlist = episodes.seasons().get(tvshowtitle, year, imdb, tvdb, create_directory=False)
        r = sys.argv[0]+"?action=random&rtype=episode"
    elif rtype == 'show':
        from resources.lib.indexers import tvshows
        rlist = tvshows.tvshows().get(url, create_directory=False)
        r = sys.argv[0]+"?action=random&rtype=season"
    from resources.lib.modules import control
    from random import randint
    import json
    try:
        rand = randint(1,len(rlist))-1
        for p in ['title','year','imdb','tvdb','season','episode','tvshowtitle','premiered','select']:
            if rtype == "show" and p == "tvshowtitle":
                try: r += '&'+p+'='+urllib.quote_plus(rlist[rand]['title'])
                except: pass
            else:
                try: r += '&'+p+'='+urllib.quote_plus(rlist[rand][p])
                except: pass
        try: r += '&meta='+urllib.quote_plus(json.dumps(rlist[rand]))
        except: r += '&meta='+urllib.quote_plus("{}")
      if rtype == "movie":
            try: control.infoDialog(rlist[rand]['title'], control.lang(32536).encode('utf-8'), time=30000)
            except: pass
        elif rtype == "episode":
            try: control.infoDialog(rlist[rand]['tvshowtitle']+" - Season "+rlist[rand]['season']+" - "+rlist[rand]['title'], control.lang(32536).encode('utf-8'), time=30000)
            except: pass
        control.execute('RunPlugin(%s)' % r)
    except:
        control.infoDialog(control.lang(32537).encode('utf-8'), time=8000)

but i'm wondering if its pulling from metadata.common.imdb.com

Code: [Select]
<GetIMDBRatingById dest="5"> <!-- Compatibility function for Pre-Krypton versions-->
<RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;$$1-main.html&quot; function=&quot;ParseIMDBRating&quot;&gt;http://akas.imdb.com/title/$$1/|accept-language=en-us&lt;/url&gt;&lt;/details&gt;" dest="5">
<expression noclean="1" />
</RegExp>
</GetIMDBRatingById>
<ParseIMDBRating dest="5">
<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
<RegExp input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;&lt;votes&gt;\2&lt;/votes&gt;" dest="2">
<expression>&lt;span\sitemprop=&quot;ratingValue&quot;&gt;([0-9.]+).*?ratingCount&quot;&gt;([0-9,]+)&lt;</expression>
</RegExp>
<expression noclean="1" />
</RegExp>
</ParseIMDBRating>

<GetIMDBRatingsById dest="5" clearbuffers="no">
<RegExp input="$$1" output="&lt;details&gt;&lt;url cache=&quot;\1-main.html&quot; function=&quot;ParseIMDBRatings&quot;&gt;http://akas.imdb.com/title/\1/|accept-language=en-us&lt;/url&gt;&lt;/details&gt;" dest="5">
<expression noclean="1">^(tt\d+)</expression>
</RegExp>
<RegExp input="$$1" output="default=&quot;true&quot;" dest="3">
<expression clear="yes">\|default$</expression>
</RegExp>
</GetIMDBRatingsById>
<ParseIMDBRatings dest="5">
<RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5">
<RegExp input="$$1" output="&lt;ratings&gt;&lt;rating name=&quot;imdb&quot; $$3&gt;&lt;value&gt;\1&lt;/value&gt;&lt;votes&gt;\2&lt;/votes&gt;&lt;/rating&gt;&lt;/ratings&gt;" dest="2">
<expression>&lt;span\sitemprop=&quot;ratingValue&quot;&gt;([0-9.]+).*?ratingCount&quot;&gt;([0-9,]+)&lt;</expression>
</RegExp>
<expression noclean="1" />
</RegExp>
</ParseIMDBRatings>

Now I'm not the best with coding but meta=7B%22%3A+7.7954400000000001%2C is pulling from somewhere and it's wrong

TopekaRoy

  • 40
  • +3/-0
    • View Profile
Re: Covenant showing wrong imdb ratings (for streaming content)
« Reply #5 on: January 07, 2018, 07:51:49 pm »
On a hunch I looked up Emoji Movie on trakt.tv. It shows a liked rating of 70%, which would be 7.0 out of 10 with 5.9k votes. I wonder if Covenant is pulling the ratings from there (or somewhere else) instead of the IMDB website by default. If that is the case I'm not sure how you would fix it.

Mak P

  • 3
  • +0/-0
    • View Profile
Re: Covenant showing wrong imdb ratings (for streaming content)
« Reply #6 on: January 08, 2018, 04:05:33 pm »
On a hunch I looked up Emoji Movie on trakt.tv. It shows a liked rating of 70%, which would be 7.0 out of 10 with 5.9k votes. I wonder if Covenant is pulling the ratings from there (or somewhere else) instead of the IMDB website by default. If that is the case I'm not sure how you would fix it.

I think you are correct