PK NPDT T plugin.video.distrotv/addon.xml
video
DistroTv Addon
Live and Vod content from DistroTv
The author is not responsible for the use of this addon. The author is not responsible for the content found using this addon. The author does not host or own any content found within this addon.[CR]The author is in no way affiliated with Kodi, Team Kodi, or the XBMC Foundation.[CR]This is a Non-profit resource, organized solely for educational purposes which is protected under the Fair-Use doctrine of the Copyright Act, Specifically section 107, which does promote freedom of expression, by permitting the unlicensed use of copyright-protected works.
all
false
PK NPS5 # plugin.video.distrotv/changelog.txtv 1.0.0 - First RealeasePK NPJ<
<
plugin.video.distrotv/default.py# -*- coding: utf-8 -*-
"""
Copyright (C) 2020, TonyH
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
"""
### Imports ###
import xbmc,xbmcaddon,xbmcgui,xbmcplugin,xbmcvfs,os,re,requests,json,urllib,urllib2
from resources.lib import tools
skin_used = xbmc.getSkinDir()
addon_id = xbmcaddon.Addon().getAddonInfo('id')
addon_name = xbmcaddon.Addon().getAddonInfo('name')
home_folder = xbmc.translatePath('special://home/')
addon_folder = os.path.join(home_folder, 'addons')
art_path = os.path.join(addon_folder, addon_id)
resources_path = os.path.join(art_path, 'resources')
user_data_folder = os.path.join(home_folder, 'userdata')
addon_data_folder = os.path.join(user_data_folder, 'addon_data')
ownAddon = xbmcaddon.Addon(id=addon_id)
icon = os.path.join(art_path,'icon.png')
fanart = os.path.join(art_path,'fanart.jpg')
content_type = "movies"
def start():
tools.addDir("[COLOR=orange]Live[/COLOR]","distro_live",1,icon,fanart,"Live")
tools.addDir("[COLOR=orange]Video On Demand[/COLOR]","distro_vod",2,icon,fanart,"VOD Movies and Shows")
def get_params():
param=[]
paramstring=sys.argv[2]
if len(paramstring)>=2:
params=sys.argv[2]
cleanedparams=params.replace('?','')
if (params[len(params)-1]=='/'):
params=params[0:len(params)-2]
pairsofparams=cleanedparams.split('&')
param={}
for i in range(len(pairsofparams)):
splitparams={}
splitparams=pairsofparams[i].split('=')
if (len(splitparams))==2:
param[splitparams[0]]=splitparams[1]
return param
xbmcplugin.setContent(int(sys.argv[1]), 'movies')
params=get_params()
url=None
name=None
mode=None
iconimage=None
description=None
query=None
type=None
try:
url=urllib.unquote_plus(params["url"])
except:
pass
try:
name=urllib.unquote_plus(params["name"])
except:
pass
try:
iconimage=urllib.unquote_plus(params["iconimage"])
except:
pass
try:
mode=int(params["mode"])
except:
pass
try:
description=urllib.unquote_plus(params["description"])
except:
pass
try:
query=urllib.unquote_plus(params["query"])
except:
pass
try:
type=urllib.unquote_plus(params["type"])
except:
pass
### Modes ###
if mode==None or url==None or len(url)<1:
start()
elif mode==1:
tools.live(url)
elif mode==2:
tools.vod(url)
elif mode==3:
tools.live_cats(url)
elif mode==4:
tools.vod_cats(url)
elif mode==5:
tools.distro_seasons(url)
elif mode== 101:
print ('Play Selected Link - no resolveURL reqd')
liz = xbmcgui.ListItem(name, path=url)
infoLabels={"title": name}
liz.setInfo(type="video", infoLabels=infoLabels)
liz.setProperty('IsPlayable', 'true')
xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, liz)
xbmcplugin.endOfDirectory(int(sys.argv[1]))
PK NP{df# # plugin.video.distrotv/fanart.jpgPNG
IHDR h 2JQ sRGB pHYs iTXtXML:com.adobe.xmp
xmp.iid:2030A440CE7411E88B1F8060BF9DD10A
xmp.did:2030A441CE7411E88B1F8060BF9DD10A
xmp.did:8B54B812CE7411E88B1F8060BF9DD10A
xmp.iid:2030A442CE7411E88B1F8060BF9DD10A
Adobe Photoshop CS6 (Macintosh)
1
i @ IDATxܽ,ɍGK)d S};5Bp ΩM??#-T|
۟YNpīq'7YĂ"xQ^o]"m86(gpDKx;'kRϜg
C' \ TajNXI]\ꓨb˓ptq.E&$汆lN^lNWB6NG?[<^ykV.x:&
>J{߄_\\Ytx?39ϻ&o`oW(_GՔgHk;Vʇg#!c'[؇^+5e'D"!c?GRm6OxIx՛6ކw+)7zEZKVpV^g]c'QUVuc̳eݿS
;"7#{ɉ_5CU{ w"7'r'Z=gm
#Og/{^}urά?}0'&cw1|&[|V>(-eo9*bVQW՝+aտ{9_WD zm'(5$\^ٱ<%BxT|]tĕo4dƃ2`ťNi+~NסL?3g*^"VmkeMUWM.x:L)3tjݢuiA/2ЌDO*,ݦ{)~.{De x^͉K:N5܌XairEVe.nv!,ҮX|9ߜ\ċ,4%?1S5C:OîAq":23AY9??\}>G 5QiI
-iC}=R9ruWu tp钟8IҔFN:9=\iu#}k_ER??9Giǟe0