Last active
May 27, 2019 11:30
-
-
Save henryjfry/7ef9ae02c0fae5ac969cba3fc6e985d5 to your computer and use it in GitHub Desktop.
Fix for KODI plugin.video.realizer not displaying episodes as "mediatype" episode (displays more information when paused) PART 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/home/osmc/.kodi/addons/plugin.video.realizer/resources/lib/modules/player.py | |
# | |
# | |
#Change the following from THIS: | |
#item = control.item(path=url) | |
#self.infolabels = {"Title": title, "Plot": plot, "year": self.year} | |
#if self.content == 'episode' and infoMeta == True: self.infolabels.update({"season": meta['season'], "episode": meta['episode'], "tvshowtitle": meta['tvshowtitle'], "showtitle": meta['tvshowtitle'], "tvdb": self.tvdb}) | |
#self.original_meta = meta | |
##TO THIS - adding (, "mediatype": "episode"): | |
item = control.item(path=url) | |
self.infolabels = {"Title": title, "Plot": plot, "year": self.year} | |
# if self.content == 'episode' and infoMeta == True: self.infolabels.update({"season": meta['season'], "episode": meta['episode'], "tvshowtitle": meta['tvshowtitle'], "showtitle": meta['tvshowtitle'], "tvdb": self.tvdb}) | |
if self.content == 'episode' and infoMeta == True: self.infolabels.update({"season": meta['season'], "episode": meta['episode'], "tvshowtitle": meta['tvshowtitle'], "showtitle": meta['tvshowtitle'], "tvdb": self.tvdb, "mediatype": "episode"}) | |
if self.content == 'episode' and infoMeta == True: self.infolabels.update({"Title": meta['title'], "genre": meta['genre'], "rating": meta['rating'], "status": meta['status'], "studio": meta['studio'], "mpaa": meta['mpaa']}) | |
xbmc.log('LOGHERE-----'+str(meta) , level=4) | |
self.original_meta = meta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"name" : "[COLOR FFB8D995]Real[/COLOR][COLOR FF9FD1EC]izer-list[/COLOR]", | |
"plugin" : "plugin.video.realizer", | |
"id" : "search.realizer", | |
"priority": 1, | |
"movies" : [[{"link": "plugin://plugin.video.realizer/?action=play&title={title_+}&year={year}&imdb={imdb}&meta=%7B%22rating%22%3A+%22%22%2C+%22code%22%3A+%22{imdb}%22%2C+%22tmdb%22%3A+%22{id}%22%2C+%22imdb%22%3A+%22{imdb}%22%2C+%22year%22%3A+%22{year}%22%2C+%22duration%22%3A+%22%22%2C+%22plot%22%3A+%22{plot}%22%2C+%22votes%22%3A+%22%22%2C+%22title%22%3A+%22{title_+}%22%2C+%22fanart%22%3A+%22{fanart}%22%2C+%22tagline%22%3A+%22%22%2C+%22writer%22%3A+%22%22%2C+%22next%22%3A+%22%22%2C+%22poster%22%3A+%22{poster}%22%2C+%22mediatype%22%3A+%22movie%22%2C+%22director%22%3A+%22%22%2C+%22studio%22%3A+%22%22%2C+%22genre%22%3A+%22%22%2C+%22metacache%22%3A+true%2C+%22premiered%22%3A+%22{premiered}%22%2C+%22originaltitle%22%3A+%22{title_+}%22%2C+%22cast%22%3A+%5B%5B%22%22%5D%5D%2C+%22mpaa%22%3A+%22%22%2C+%22trailer%22%3A+%22plugin%3A%2F%2Fplugin.video.realizer%2F%3Faction%3Dtrailer%26name%3D{title_+}%2B%2528{year}%2529%22%7D&t={now}"}]], | |
"tvshows" : [[{"link": "plugin://plugin.video.realizer/?action=play&title={title_+}&year={year}&imdb={imdb}&tvdb={id}&season={season}&episode={episode}&tvshowtitle={clearname_+|replace(&,and)}&premiered={firstaired}&meta=%7B%22rating%22%3A%20{rating}%2C%20%22code%22%3A+%22{imdb}%22%2C+%22tmdb%22%3A+{tmdb}%2C+%22imdb%22%3A+%22{imdb}%22%2C+%22year%22%3A+%22{year}%22%2C+%22duration%22%3A+%22{duration}%22%2C+%22plot%22%3A+%22{plot}%22%2C+%22votes%22%3A+%22%22%2C+%22thumb%22%3A+%22{thumbnail}%22%2C+%22title%22%3A+%22{title_+}%22%2C+%22tvdb%22%3A+%22{id}%22%2C+%22label%22%3A+%22{title_+}%22%2C+%22season%22%3A+%22{season}%22%2C+%22status%22%3A%20%22{status}%22%2C%20%22poster%22%3A+%22{poster}%22%2C+%22tvshowtitle%22%3A+%22{clearname_+|replace(&,and)}%22%2C+%22mediatype%22%3A+%22episode%22%2C+%22studio%22%3A%20%22{network_clean}%22%2C%20%22mpaa%22%3A%20%22{mpaa}%22%2C%20%22genre%22%3A%20%5B%22{genres}%22%5D%2C%20%22banner%22%3A+%22{thumbnail}%22%2C+%22episode%22%3A+%22{episode}%22%2C+%22premiered%22%3A+%22{firstaired}%22%2C+%22fanart%22%3A+%22{fanart}%22%2C+%22trailer%22%3A+%22plugin%3A%2F%2Fplugin.video.realizer%2F%3Faction%3Dtrailer%26name%3D{clearname_+|replace(&,and)}%22%7D&t={now}"}]]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment