def addToWatchlist(asset_id, asset_type):
skygo.login()
url = base_url + 'add?assetId=' + asset_id + '&type=' + asset_type + '&version=12354&platform=web&product=SG&catalog=sg'
r = skygo.session.get(url)
res = json.loads(r.text[3:len(r.text)-1])
if res['resultMessage'] == 'OK':
xbmcgui.Dialog().notification('SkyGo ', asset_type + ' zur Merkliste hinzugefügt', xbmcgui.NOTIFICATION_INFO, 2000, True)
else:
xbmcgui.Dialog().notification('SkyGo ', asset_type + ' konnte nicht zur Merkliste hinzugefügt werden', xbmcgui.NOTIFICATION_ERROR, 2000, True)
评论列表
文章目录