This file contains hidden or 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
def run(self, title, year, season, episode, imdb, tvdb, url, meta, id, clearlogo): | |
try: | |
control.sleep(200) | |
self.autoResume = control.setting('bookmarks.autoresume') | |
self.nextup_timeout = control.setting('nextup.timeout') | |
self.nextup_service = control.setting('nextup.service') | |
self.next_episode = [] | |
self.seekStatus = False | |
infoMeta = False | |
self.filetype = 'episode' |
This file contains hidden or 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
#~/.kodi/addons/script.skin.helper.widgets/resources/lib/episodes.py | |
## | |
#below "import xbmc" add the following: | |
from resources.lib.utils import log_msg, ADDON_ID | |
import time, datetime | |
from datetime import date | |
from datetime import datetime | |
###### | |
###### | |
###### |
This file contains hidden or 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
########LINE 102 Add the uncommented line to replace the commented out line, which replaces " & " with " and " | |
# link = text.apply_parameters(text.to_unicode(command['link']), parameters) | |
link = text.apply_parameters(text.to_unicode(command['link']), parameters).replace(' & ',' and ') | |
# xbmc.log(link, level=4) |
This file contains hidden or 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
#TOP OF FILE | |
#added to process dict "params[lang]" and change ' & ' to ' and ' | |
import ast | |
###### | |
###### | |
######LINE 54 we add the line below to fix params[lang] which is a dict + change all instances of " & " to " and " | |
params[lang] = ast.literal_eval(repr(params[lang]).replace(' & ',' and ')) | |
# xbmc.log('LOGHERE-----'+str(params[lang]) , level=2) | |
link = play_base.on_play_video(players, params, trakt_ids) |
This file contains hidden or 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
#!/usr/bin/env python | |
import requests | |
import json | |
import base64 | |
kodi_credentials = b'user:pass' | |
kodi_encoded_credentials = base64.b64encode(kodi_credentials) | |
kodi_authorization = b'Basic ' + kodi_encoded_credentials | |
kodi_header = { 'Content-Type': 'application/json', 'Authorization': kodi_authorization } | |
kodi_ip = '127.0.0.1' |
This file contains hidden or 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 | |
This file contains hidden or 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
#~/.kodi/addons/plugin.video.realizer/resources/lib/api/remotedb.py | |
# | |
#substitute THIS: | |
meta.update({'mediatype': 'tvshows'}) | |
#For THIS: | |
meta.update({'mediatype': 'episode'}) |
NewerOlder