def test_check_inputstream(): if os.path.exists('test/cdm/widevine_config.json'): os.remove('test/cdm/widevine_config.json') addon.run(['addon.py', 'check_inputstream', 'mpd', 'com.widevine.alpha']) addon.run(['addon.py', 'check_inputstream', 'hls', 'widevine']) addon.run(['addon.py', 'check_inputstream', 'hls']) addon.run(['addon.py', 'check_inputstream', 'rtmp']) addon.run(['addon.py', 'check_inputstream', 'mpd', 'widevine', 'butter', 'cheese', 'eggs'])
def test_widevine_remove(): addon.run(['addon.py', 'widevine_remove'])
def test_settings(): addon.run(['addon.py'])
def test_widevine_install(): addon.run(['addon.py', 'widevine_install'])
# -*- coding: utf-8 -*- # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, unicode_literals from sys import argv from addon import run if __name__ == '__main__': run(argv)
# -*- coding: utf-8 -*- # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) """This is the actual Speed Tester add-on entry point""" from __future__ import absolute_import, division, unicode_literals if __name__ == '__main__': from addon import run run()
# -*- coding: utf-8 -*- # # Copyright (C) 2016 Alexander Alemayhu # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. import addon if __name__ == '__main__': addon.run()
# -*- coding: utf-8 -*- # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ''' This is the actual Regio TV video plugin entry point ''' from __future__ import absolute_import, division, unicode_literals import sys from addon import run run(sys.argv)
# -*- coding: utf-8 -*- import addon if __name__ == '__main__': addon.run()
from __future__ import absolute_import, division, print_function, unicode_literals import sys import os # Add current working directory to import paths CWD = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(os.path.realpath(__file__))), os.pardir, 'resources/lib')) sys.path.insert(0, CWD) import addon # noqa: E402 pylint: disable=wrong-import-position # pylint: disable=invalid-name xbmc = __import__('xbmc') xbmcaddon = __import__('xbmcaddon') xbmcgui = __import__('xbmcgui') xbmcplugin = __import__('xbmcplugin') xbmcvfs = __import__('xbmcvfs') if len(sys.argv) <= 1: print("%s: URI argument missing\nTry '%s plugin://plugin.video.vrt.nu/recent/1' to test." % (sys.argv[0], sys.argv[0])) sys.exit(1) # Also support bare paths like /recent/2 if not sys.argv[1].startswith('plugin://'): sys.argv[1] = 'plugin://plugin.video.vrt.nu' + sys.argv[1] # Split path and args path, _, args = sys.argv[1].partition('?') print('** Running URI %s with args %s' % (path, args)) addon.run([sys.argv[1], 0, args])
import addon import sys if __name__ == '__main__': addon.run(*sys.argv[:3])