Esempio n. 1
0
from __future__ import unicode_literals

from resources import connect
from resources import delete
from resources import general
from resources import list
from resources import library
from resources import play
from resources import profiles
from resources import queue
from resources import search
from resources import utility

utility.log('\n\nStart of plugin')

while (utility.get_setting('username')
       or utility.get_setting('password')) == '':
    utility.open_setting()

if len(utility.get_setting('country')) == 0 and len(
        utility.get_setting('language').split('-')) > 1:
    utility.set_setting('country',
                        utility.get_setting('language').split('-')[1])

utility.prepare_folders()
connect.new_session()

parameters = utility.parameters_to_dictionary(sys.argv[2])
name = utility.get_parameter(parameters, 'name')
url = utility.get_parameter(parameters, 'url')
mode = utility.get_parameter(parameters, 'mode')
Esempio n. 2
0
from __future__ import unicode_literals

from resources import connect
from resources import delete
from resources import general
from resources import list
from resources import library
from resources import play
from resources import profiles
from resources import queue
from resources import search
from resources import utility

utility.log('\n\nStart of plugin')

while (utility.get_setting('username') or utility.get_setting('password')) == '':
    utility.open_setting()

if len(utility.get_setting('country')) == 0 and len(utility.get_setting('language').split('-')) > 1:
    utility.set_setting('country', utility.get_setting('language').split('-')[1])

utility.prepare_folders()
connect.new_session()

parameters = utility.parameters_to_dictionary(sys.argv[2])
name = utility.get_parameter(parameters, 'name')
url = utility.get_parameter(parameters, 'url')
mode = utility.get_parameter(parameters, 'mode')
thumb = utility.get_parameter(parameters, 'thumb')
video_type = utility.get_parameter(parameters, 'type')
season = utility.get_parameter(parameters, 'season')
Esempio n. 3
0
from __future__ import unicode_literals

from resources import connect
from resources import delete
from resources import general
from resources import library
from resources import list
from resources import play
from resources import profiles
from resources import queue
from resources import search
from resources import utility

utility.log("\n\nStart of plugin")

while (utility.get_setting("username") or utility.get_setting("password")) == "":
    utility.open_setting()

utility.prepare_folders()
connect.new_session()

parameters = utility.parameters_to_dictionary(sys.argv[2])
name = utility.get_parameter(parameters, "name")
url = utility.get_parameter(parameters, "url")
mode = utility.get_parameter(parameters, "mode")
thumb = utility.get_parameter(parameters, "thumb")
video_type = utility.get_parameter(parameters, "type")
season = utility.get_parameter(parameters, "season")
series_id = utility.get_parameter(parameters, "series_id")
run_as_widget = utility.get_parameter(parameters, "widget") == "true"
Esempio n. 4
0
from __future__ import unicode_literals

from resources import connect
from resources import delete
from resources import general
from resources import library
from resources import list
from resources import play
from resources import profiles
from resources import queue
from resources import search
from resources import utility

utility.log('\n\nStart of plugin')

while (utility.get_setting('username')
       or utility.get_setting('password')) == '':
    utility.open_setting()

utility.prepare_folders()
connect.new_session()

parameters = utility.parameters_to_dictionary(sys.argv[2])
name = utility.get_parameter(parameters, 'name')
url = utility.get_parameter(parameters, 'url')
mode = utility.get_parameter(parameters, 'mode')
thumb = utility.get_parameter(parameters, 'thumb')
video_type = utility.get_parameter(parameters, 'type')
season = utility.get_parameter(parameters, 'season')
series_id = utility.get_parameter(parameters, 'series_id')
run_as_widget = utility.get_parameter(parameters, 'widget') == 'true'