コード例 #1
0
ファイル: addon.py プロジェクト: Om98/plugin.video.netflix
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')
コード例 #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')
コード例 #3
0
ファイル: addon.py プロジェクト: z-e-r-o/plugin.video.netflix
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"
コード例 #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'