DEFCON Code Clear UP
Some comments removed
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<addon id="plugin.video.defconconf" name="DEF CON Talks" version="0.1.5" provider-name="Oli Passey">
|
<addon id="plugin.video.defconconf" name="DEF CON Talks" version="0.1.6" provider-name="Oli Passey">
|
||||||
<requires>
|
<requires>
|
||||||
<import addon="xbmc.python" version="2.19.0" />
|
<import addon="xbmc.python" version="2.19.0" />
|
||||||
<import addon="script.module.python.koding.aio" version="0.0.1"/>
|
<import addon="script.module.python.koding.aio" version="0.0.1"/>
|
||||||
|
|||||||
@@ -1,10 +1,8 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# License: GPL (http://www.gnu.org/licenses/gpl-3.0.html)
|
# License: GPL (http://www.gnu.org/licenses/gpl-3.0.html)
|
||||||
# Addon: DEF CON Talks
|
# Addon: DEF CON Talks
|
||||||
# Author: Oli Passey (DoubleT)
|
# Author: Oli Passey (DoubleT)
|
||||||
|
|
||||||
#----------------------------------------------------------------
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import xbmc
|
import xbmc
|
||||||
@@ -14,14 +12,12 @@ import xbmcplugin
|
|||||||
from koding import route, Addon_Setting, Add_Dir, Find_In_Text, Open_URL, OK_Dialog
|
from koding import route, Addon_Setting, Add_Dir, Find_In_Text, Open_URL, OK_Dialog
|
||||||
from koding import Open_Settings, Play_Video, Run, Text_File
|
from koding import Open_Settings, Play_Video, Run, Text_File
|
||||||
|
|
||||||
debug = Addon_Setting(setting='debug') # Grab the setting of our debug mode in add-on settings
|
debug = Addon_Setting(setting='debug')
|
||||||
addon_id = xbmcaddon.Addon().getAddonInfo('id') # Grab our add-on id
|
addon_id = xbmcaddon.Addon().getAddonInfo('id')
|
||||||
|
|
||||||
# Set the base plugin url you want to hook into
|
|
||||||
BASE = "plugin://plugin.video.youtube/playlist/"
|
BASE = "plugin://plugin.video.youtube/playlist/"
|
||||||
BASE2 = "plugin://plugin.video.youtube/channel/"
|
BASE2 = "plugin://plugin.video.youtube/channel/"
|
||||||
|
|
||||||
# Set each of your YouTube playlist id's
|
|
||||||
YOUTUBE_CHANNEL_ID_1 = "PL9fPq3eQfaaDOo8mTBHhEHMfuG2LNUSTC"
|
YOUTUBE_CHANNEL_ID_1 = "PL9fPq3eQfaaDOo8mTBHhEHMfuG2LNUSTC"
|
||||||
YOUTUBE_CHANNEL_ID_2 = "PL9fPq3eQfaaBCdjbKFYjosh1s1EkaYdsQ"
|
YOUTUBE_CHANNEL_ID_2 = "PL9fPq3eQfaaBCdjbKFYjosh1s1EkaYdsQ"
|
||||||
YOUTUBE_CHANNEL_ID_3 = "PL9fPq3eQfaaBuHqVvDzPoWxznYYmyx5UX"
|
YOUTUBE_CHANNEL_ID_3 = "PL9fPq3eQfaaBuHqVvDzPoWxznYYmyx5UX"
|
||||||
@@ -61,17 +57,13 @@ def Main_Menu():
|
|||||||
name="DEF CON 20 Documentary", url=BASE+YOUTUBE_CHANNEL_ID_7+"/", folder=True,
|
name="DEF CON 20 Documentary", url=BASE+YOUTUBE_CHANNEL_ID_7+"/", folder=True,
|
||||||
icon="https://www.defcon.org/images/defcon-20/dc20-logo_smsq.png")
|
icon="https://www.defcon.org/images/defcon-20/dc20-logo_smsq.png")
|
||||||
|
|
||||||
#----------------------------------------------------------------
|
|
||||||
# A basic OK Dialog
|
|
||||||
@route(mode='koding_settings')
|
@route(mode='koding_settings')
|
||||||
def Koding_Settings():
|
def Koding_Settings():
|
||||||
Open_Settings()
|
Open_Settings()
|
||||||
#----------------------------------------------------------------
|
|
||||||
# A basic OK Dialog
|
|
||||||
@route(mode='simple_dialog', args=['title','msg'])
|
@route(mode='simple_dialog', args=['title','msg'])
|
||||||
def Simple_Dialog(title,msg):
|
def Simple_Dialog(title,msg):
|
||||||
OK_Dialog(title, msg)
|
OK_Dialog(title, msg)
|
||||||
#----------------------------------------------------------------
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
Run(default='main_menu')
|
Run(default='main_menu')
|
||||||
|
|||||||
Reference in New Issue
Block a user