def quality(filepath):
if plugin.get_setting('show_stream_type', bool):
stream_type = ['M3U8_AUTO_720', 'NONE']
choice = dialog.select(u'?????', [u'??',u'??'])
if choice < 0:
return
elif choice == 0:
stream = stream_type[choice]
elif choice == 1:
stream = False
elif plugin.get_setting('stream_type', str) == 'NONE':
stream = False
else:
stream = plugin.get_setting('stream_type', str)
if isinstance(filepath, str):
filepath = filepath.decode('utf-8')
video_path = playlist_path(filepath, stream)
name = os.path.basename(filepath)
listitem = xbmcgui.ListItem(name)
listitem.setInfo(type='Video', infoLabels={'Title': name})
if video_path:
xbmc.Player().play(video_path, listitem, windowed=False)
评论列表
文章目录