PK +Nk} } script.realdebrid.mod/addon.py# -*- coding: utf-8 -*-
#
# Copyright (C) 2016 BigNoid
#
# 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 .
import xbmc
def main():
parts=str(xbmc.getInfoLabel('ListItem.FileNameAndPath')).replace(xbmc.getInfoLabel('ListItem.Path')+"?", "").split("&")
parts=parts[0].replace("url=", "")
play = ("plugin://script.realdebrid.mod/" +
"?url=" + parts +
"&mode=" + str(5) +
"&poster="+""+
"&fanart="+""+
"&name=" + ""
)
xbmc.executebuiltin('RunPlugin("'+play+'")')
if __name__ == '__main__':
main()PK +NKN script.realdebrid.mod/addon.xml
executable
Unofficial RealDebrid client. Manage your torrents, unrestricted links and view host statuses all within Kodi.
Unofficial RealDebrid client. Manage your torrents, unrestricted links and view host statuses all within Kodi.
v0.5 - added "Play using RealDebrid" to context menu
http://www.ptom.co.uk
all
en
ptom98@gmail.com
PK +NQK K # script.realdebrid.mod/changelog.txtv0.4.1 24/03/2018
- added "Play using RealDebrid" into context menu for videos
v0.4 16/01/2018
- force reauthorise if real-debrid.com disallows credentials
- fixed ssl issues which could cause the addon to crash
- general tidy up and better handling of error messages
v0.31 12/11/2017
- fixed issue that could cause Kodi to lockup
v0.3 11/11/2017
- rewrote code to so that other addons can access it
RealDebrid Client v0.2
- fixed summary in addon.xml
- fixed playback issue in unrestricted links
- added ability to download and delete unrestricted and torrent filesPK +Na script.realdebrid.mod/default.pyfrom lib import util
from lib import realdebrid as rd
import menu
import json, os
import xbmc, xbmcaddon
ADDON_ID='script.realdebrid.mod'
addon=xbmcaddon.Addon(id=ADDON_ID)
home=xbmc.translatePath(addon.getAddonInfo('path').decode('utf-8'))
parameters=util.parseParameters()
try:
mode=int(parameters["mode"])
except:
mode=None
# check to see if realdebrid account is being setup
try:
if parameters['realdebrid']=="true":
rd.auth()
exit()
except:
pass
# check to see if realdebrid has been setup, if not we dont want to go any further
if rd.checkDetails():
if mode==1:
rd.torrents(parameters)
elif mode==2:
rd.downloads(parameters)
elif mode==3:
rd.addTorrent(parameters)
elif mode==4:
rd.addMagent(parameters)
elif mode==5:
link=rd.unrestrict(parameters)
if link==False:
pass
else:
if link['streamable']==1:
util.playMedia(link['filename'], link['host_icon'], link['download'], force=True)
else:
util.logError(str(link))
elif mode==6:
rd.torrentDisplay(parameters)
elif mode==7:
hosts=rd.hostStatus()
up=[]
down=[]
for host in hosts.iteritems():
if host[1]['supported']==1:
if host[1]['status']=="down":
down.append({
"title": "[COLOR red]"+host[0]+"[/COLOR]",
"url": "",
"mode": "",
"poster":host[1]['image_big'],
"icon":host[1]['image_big'],
"fanart":os.path.join(home, '', 'fanart.jpg'),
"type":"video",
"plot":"",
"isFolder":False
})
else:
up.append({
"title": "[COLOR green]"+host[0]+"[/COLOR]",
"url": "",
"mode": "",
"poster":host[1]['image_big'],
"icon":host[1]['image_big'],
"fanart":os.path.join(home, '', 'fanart.jpg'),
"type":"video",
"plot":"",
"isFolder":False
})
util.addMenuItems(down+up)
elif mode==10:
util.playMedia(parameters['name'], parameters['icon'], parameters['url'], force=True)
elif mode==12:
rd.download(parameters)
elif mode==13:
rd.delID(parameters)
elif mode==14:
rd.addMagent1(parameters)
elif mode==15:
rd.addMagent2(parameters)
elif mode==16:
rd.addMagent3(parameters)
elif mode==17:
rd.addMagent4(parameters)
elif mode==18:
rd.addMagent5(parameters)
elif mode==19:
rd.addMagent6(parameters)
elif mode==20:
rd.addMagent7(parameters)
elif mode==21:
rd.addMagent8(parameters)
elif mode==22:
rd.addMagent9(parameters)
else:
util.addMenuItems(menu.mainMenu)PK +N script.realdebrid.mod/fanart.jpg JFIF H H C
"""""""""" C
! !!! !!!!!!!!""""""""""""""" 8 Q
!1AQq"#2Rar3BS$%4CTbs&5Dc6 4 !1"2AQaqBR#3b4C ? @ U\v3US6]lW\tuGŏ<0VsiOƤ}ZΫ.q<*,w(Ŷp 2 Z>#M]69/ Ym>TWgk
WUʾt?rm MqM9Oժ
Y~b9 <3j9nckvUOnX |F"Z۪䢈ee=60Ҫф?oVcZ',4[UHuYgp
U㫻6/ڿ3sWa9%ڛϫuZwp{viE4Ǻ!Ley@ HU+*i3`f&sksU{ڙٺ黃8lnz?؛ogZ&帷=Um]X@ w:ڼJi oWzE;$n/Սv=9eV)pYv:bz}s;=,X(S !A R!)K58Ks8,6Mvڧ䘆uOyg{gFc
N;robZ^jXUViwa+TOM:ުf6M W}ʶho7cX
<6CVLcNdMٵ߸DEZOQiTj-oM>FB܈S(B HQ w
b;r*zYCO;^-Ms?ms=\g#$V[\22uungnmVjl]Ue~عb3L$ mccUYz.TL"˱w!1X3=⨟驦K&gSmUȅ(C AJ
W J)J3,c͌m/ڞZnSG)mp.2:DzYIX߫ζ6QUڰoOxg