|
@@ -20,7 +20,7 @@ icong_url = xbmcaddon.Addon().getAddonInfo("path") + "/resources/picons/"
|
20
|
20
|
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),"resources","lib", "content", "sources"))
|
21
|
21
|
|
22
|
22
|
plugin = Plugin()
|
23
|
|
-plugin.load_addon_settings()
|
|
23
|
+#plugin.load_addon_settings()
|
24
|
24
|
use_storage = plugin.get_setting("general_use_storage",bool) # TODO vajag nočekot vai nav labāk lietot pickle
|
25
|
25
|
storage_ttl = plugin.get_setting("general_ttl",int)
|
26
|
26
|
use_proxy = plugin.get_setting("general_proxy_use",bool)
|
|
@@ -117,7 +117,7 @@ def main():
|
117
|
117
|
print "[playstream] Save sources to storage"
|
118
|
118
|
storage["sources"] = sources
|
119
|
119
|
storage.sync()
|
120
|
|
- return plugin.finish(items, view_mode=get_view_mode(), update_listing=False, cache_to_disc=False)
|
|
120
|
+ return plugin.finish(items, view_mode=get_view_mode(view_mode), update_listing=False, cache_to_disc=False)
|
121
|
121
|
|
122
|
122
|
def get_list(data):
|
123
|
123
|
if isinstance(data,unicode):
|
|
@@ -214,7 +214,7 @@ def thumb_data(img, video=False):
|
214
|
214
|
img = icong_url + img
|
215
|
215
|
return img
|
216
|
216
|
|
217
|
|
-def get_view_mode():
|
|
217
|
+def get_view_mode(vm):
|
218
|
218
|
modes = {
|
219
|
219
|
"skin.estuary": {
|
220
|
220
|
"None": None,
|
|
@@ -230,7 +230,6 @@ def get_view_mode():
|
230
|
230
|
}
|
231
|
231
|
}
|
232
|
232
|
skin = xbmc.getSkinDir()
|
233
|
|
- vm = plugin.get_setting("general_view_mode", str)
|
234
|
233
|
if skin in modes and vm in modes[skin]:
|
235
|
234
|
view_mode = modes[skin][vm]
|
236
|
235
|
else:
|