projects
/
plugin.video.netflix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore(readme): Add disclaimer
[plugin.video.netflix.git]
/
addon.py
diff --git
a/addon.py
b/addon.py
index 55c918cb240216a3cacf67e36edd5764ded57711..9e7a68af2dab0dd3f08fa422c16d189101a09af2 100644
(file)
--- a/
addon.py
+++ b/
addon.py
@@
-3,10
+3,7
@@
# Module: default
# Created on: 13.01.2017
# Module: default
# Created on: 13.01.2017
-# import local classes
-
import sys
import sys
-from resources.lib.NetflixSession import NetflixSession
from resources.lib.KodiHelper import KodiHelper
from resources.lib.Navigation import Navigation
from resources.lib.Library import Library
from resources.lib.KodiHelper import KodiHelper
from resources.lib.Navigation import Navigation
from resources.lib.Library import Library
@@
-20,19
+17,12
@@
kodi_helper = KodiHelper(
plugin_handle=plugin_handle,
base_url=base_url
)
plugin_handle=plugin_handle,
base_url=base_url
)
-netflix_session = NetflixSession(
- cookie_path=kodi_helper.cookie_path,
- data_path=kodi_helper.data_path,
- verify_ssl=kodi_helper.get_ssl_verification_setting(),
- log_fn=kodi_helper.log
-)
library = Library(
root_folder=kodi_helper.base_data_path,
library_settings=kodi_helper.get_custom_library_settings(),
log_fn=kodi_helper.log
)
navigation = Navigation(
library = Library(
root_folder=kodi_helper.base_data_path,
library_settings=kodi_helper.get_custom_library_settings(),
log_fn=kodi_helper.log
)
navigation = Navigation(
- netflix_session=netflix_session,
kodi_helper=kodi_helper,
library=library,
base_url=base_url,
kodi_helper=kodi_helper,
library=library,
base_url=base_url,
@@
-43,5
+33,5
@@
kodi_helper.set_library(library=library)
if __name__ == '__main__':
# Call the router function and pass the plugin call parameters to it.
# We use string slicing to trim the leading '?' from the plugin call paramstring
if __name__ == '__main__':
# Call the router function and pass the plugin call parameters to it.
# We use string slicing to trim the leading '?' from the plugin call paramstring
- kodi_helper.log('
started
')
+ kodi_helper.log('
Started (Version ' + kodi_helper.version + ')
')
navigation.router(paramstring=sys.argv[2][1:])
navigation.router(paramstring=sys.argv[2][1:])