def init(self): sys.stderr.isatty = proxyisatty datetime.datetime = proxydt uname, branch, commit = getconfig("ydl") ghub.load(uname, "youtube-dl", branch, commit) import youtube_dl as ydl self.ydl = ydl self.ies = ydl.extractor.gen_extractors()
def init(self): uname, branch, commit = getconfig("smu") ghub.load("bstrdsmkr", "script.module.cryptopy", "master", None, ["lib"]) ghub.load("romanvm", "kodi.six", "master", None, ["script.module.kodi-six", "libs"]) patchsmu( ghub.load(uname, "script.module.resolveurl", branch, commit, ["lib"])) from resolveurl import hmf self.hmf = hmf.HostedMediaFile
''' Created on Feb 16, 2021 @author: boogie ''' import hashlib import ghub ghub.load("ricmoo", "pyaes", None) import pyaes def evpKDF(passwd, salt, key_size=8, iv_size=4, iterations=1, hash_algorithm="md5"): target_key_size = key_size + iv_size derived_bytes = b"" number_of_derived_words = 0 block = None hasher = hashlib.new(hash_algorithm) while number_of_derived_words < target_key_size: if block is not None: hasher.update(block) hasher.update(passwd.encode()) hasher.update(salt) block = hasher.digest() hasher = hashlib.new(hash_algorithm) for _ in range(1, iterations):
Created on Jul 16, 2021 @author: boogie ''' # -*- encoding: utf-8 -*- import ghub import re import os from tinyxbmc import addon, tools, net from liblivechannels import programme from datetime import datetime from io import open UTC = tools.tz_utc() ardundzdf = ghub.load("rols1", "Kodi-Addon-ARDundZDF", "master") ghub.load("romanvm", "kodi.six", "master", path=["script.module.kodi-six", "libs"]) for target in ["util.py", "EPG.py"]: tfile = os.path.join(ardundzdf, "resources", "lib", target) with open(tfile, encoding="utf-8") as f: tcont = re.sub("plugin\.video\.ardundzdf", "plugin.video.livestreams", f.read()) tcont = re.sub("xbmcaddon.Addon\(id=ADDON_ID\)", "xbmcaddon.Addon(ADDON_ID)", tcont) tcont = re.sub("ADDON_PATH[\s\t]*?=[\s\t]*?SETTINGS.getAddonInfo.+?\n", "ADDON_PATH = '%s'\n" % ardundzdf, tcont) tcont = re.sub(
import ghub import json import binascii from six.moves.urllib import parse from six.moves import queue from liblivechannels import common from thirdparty.m3u8 import model from tinyxbmc import addon from tinyxbmc import net ghub.load("ricmoo", "pyaes", None, period=24 * 7) import pyaes import subprocess class PlaylistGenerator(object): def __init__(self, base): self.base = base self.playlists = queue.Queue() self.index = 10 @staticmethod def sorter(playlist): return playlist.stream_info.bandwidth def add(self, m3file, headers, useproxy): if len(m3file.playlists):