Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @handler('/video/giantbomb', 'Giant Bomb')
- def MainMenu():
- oc = ObjectContainer()
- # Live stream
- # response = JSON.ObjectFromURL(API_PATH + '/chats/?api_key=' + ApiKey() + '&format=json')
- # chats = response['results']
- # for chat in chats:
- # url = 'http://www.twitch.tv/' + chat['channel_name']
- # try:
- # thumb = chat['image']['super_url']
- # except:
- # thumb = R(ICON)
- # oc.add(
- # VideoClipObject(
- # url=url,
- # title='LIVE: ' + chat['title'],
- # summary=chat['deck'],
- # source_title='Twitch.tv',
- # thumb=thumb,
- # art=R(ART),
- # rating_key=chat['channel_name']
- # )
- # )
- oc.add(
- DirectoryObject(
- key='/video/giantbomb/videos',
- title='Latest',
- summary='Watch the newest stuff.',
- thumb=R(ICON),
- art=R(ART)
- )
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement