-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.py
41 lines (37 loc) · 1.17 KB
/
default.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# -*- coding: utf-8 -*-
#------------------------------------------------------------
# http://www.youtube.com/user/UCG29FnXZm4F5U8xpqs1cs1Q
#------------------------------------------------------------
# Based on code from youtube addon
#------------------------------------------------------------
import os
import sys
import plugintools
import xbmc,xbmcaddon
from addon.common.addon import Addon
addonID = 'plugin.video.empirefiles'
addon = Addon(addonID, sys.argv)
local = xbmcaddon.Addon(id=addonID)
icon = local.getAddonInfo('icon')
YOUTUBE_CHANNEL_ID = "UCG29FnXZm4F5U8xpqs1cs1Q"
# Entry point
def run():
plugintools.log("empirefiles.run")
# Get params
params = plugintools.get_params()
if params.get("action") is None:
main_list(params)
else:
pass
plugintools.close_item_list()
# Main menu
def main_list(params):
plugintools.log("empirefiles.main_list "+repr(params))
#note below - some YTs are /user/xxx and some /channel/xxx
plugintools.add_item(
#action="",
title="The Empire Files",
url="plugin://plugin.video.youtube/channel/"+YOUTUBE_CHANNEL_ID+"/",
thumbnail=icon,
folder=True )
run()