[XBMC] no count restiction on ls command
This commit is contained in:
parent
94b193d5fa
commit
5a932bdf30
2 changed files with 3 additions and 2 deletions
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue