diff --git a/contrib/plugin.video.videoobmc/resources/lib/base/weboobmc.py b/contrib/plugin.video.videoobmc/resources/lib/base/weboobmc.py index 32466b9f..4fe95e2f 100644 --- a/contrib/plugin.video.videoobmc/resources/lib/base/weboobmc.py +++ b/contrib/plugin.video.videoobmc/resources/lib/base/weboobmc.py @@ -22,7 +22,8 @@ class Weboobmc(): self._call_weboob('weboob-config', 'update') def _call_weboob(self, application, command, options={}, argument=""): - options['-n'] = self.count + if '-n' not in options.keys(): + options['-n'] = self.count _opt = " ".join(["%s %s " % (k, v) for k, v in options.items()]) _cmd = "%s %s %s %s" % (application, _opt, command, argument) #print _cmd.encode('utf-8') diff --git a/contrib/plugin.video.videoobmc/resources/lib/videoobmc.py b/contrib/plugin.video.videoobmc/resources/lib/videoobmc.py index da5c995b..3f79c841 100644 --- a/contrib/plugin.video.videoobmc/resources/lib/videoobmc.py +++ b/contrib/plugin.video.videoobmc/resources/lib/videoobmc.py @@ -64,7 +64,7 @@ class Videoobmc(Weboobmc): return self.create_video_from_json(_video[0]) def ls(self, backend, path=''): - options = {'-b': backend} + options = {'-b': backend, '-n': 50} result = self._json_call_weboob('videoob', 'ls', options=options, argument=path) return self.separate_collections_and_videos(result)