Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chybi moznost nastaveni slozky pro stahovani videi #4

Open
lzoubek opened this issue Mar 29, 2015 · 1 comment
Open

Chybi moznost nastaveni slozky pro stahovani videi #4

lzoubek opened this issue Mar 29, 2015 · 1 comment

Comments

@lzoubek
Copy link
Member

lzoubek commented Mar 29, 2015

No description provided.

@mx3L
Copy link
Contributor

mx3L commented Mar 30, 2015

V joj plugine nie je mozne zatial stahovat(rtmp streamy), !download je nastavena v capabilities.

Myslim ze lepsie by bolo spravit nieco taketo:

diff --git a/lib/contentprovider/xbmcprovider.py b/lib/contentprovider/xbmcprovider.py
index c7c8eec..7bbbdc8 100644
--- a/lib/contentprovider/xbmcprovider.py
+++ b/lib/contentprovider/xbmcprovider.py
@@ -40,7 +40,8 @@ class XBMContentProvider(object):
         util.info('Initializing provider %s with settings %s'%(provider.name,settings))
         self.addon = addon
         self.addon_id = addon.getAddonInfo('id')
-        self.check_setting_keys(['downloads'])
+        if '!download' not in self.provider.capabilities():
+            self.check_setting_keys(['downloads'])
         self.cache = provider.cache

     def check_setting_keys(self,keys):
@@ -248,7 +249,9 @@ class XBMContentProvider(object):
         else:
             item['size'] = ' (%s)' % item['size']
         title = '%s%s' % (item['title'],item['size'])
-        menuItems = {xbmc.getLocalizedString(33003):downparams}
+        menuItems = {}
+        if "!download" not in self.provider.capabilities():
+            menuItems[xbmc.getLocalizedString(33003)] = downparams
         if 'menu' in item.keys():
             for ctxtitle, value in item['menu'].iteritems():
                 if ctxtitle.find('$') == 0:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants