The past participle of split is "split", not "splitted"
This commit is contained in:
parent
32b5037e19
commit
a19b1be338
7 changed files with 13 additions and 13 deletions
|
|
@ -71,6 +71,6 @@ class CanalplusBackend(BaseBackend, ICapVideo, ICapCollection):
|
|||
|
||||
OBJECTS = {CanalplusVideo: fill_video}
|
||||
|
||||
def iter_resources(self, splited_path):
|
||||
def iter_resources(self, split_path):
|
||||
with self.browser:
|
||||
return self.browser.iter_resources(splited_path)
|
||||
return self.browser.iter_resources(split_path)
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ class CanalplusBrowser(BaseBrowser):
|
|||
self.location(url)
|
||||
return self.page.get_video(video, self.quality)
|
||||
|
||||
def iter_resources(self, splited_path):
|
||||
def iter_resources(self, split_path):
|
||||
self.home()
|
||||
collections = self.page.collections
|
||||
|
||||
|
|
@ -90,4 +90,4 @@ class CanalplusBrowser(BaseBrowser):
|
|||
|
||||
return walk_res(path[1:], [collection.children for collection in collections if collection.title == i][0])
|
||||
|
||||
return walk_res(splited_path, collections)
|
||||
return walk_res(split_path, collections)
|
||||
|
|
|
|||
|
|
@ -62,8 +62,8 @@ class NovaBackend(BaseBackend, ICapRadio, ICapCollection):
|
|||
_RADIOS = {'nova': (u'Radio Nova', u'Radio nova', u'http://broadcast.infomaniak.net:80/radionova-high.mp3'),
|
||||
}
|
||||
|
||||
def iter_resources(self, splited_path):
|
||||
if len(splited_path) > 0:
|
||||
def iter_resources(self, split_path):
|
||||
if len(split_path) > 0:
|
||||
raise CollectionNotFound()
|
||||
|
||||
for id in self._RADIOS.iterkeys():
|
||||
|
|
|
|||
|
|
@ -46,8 +46,8 @@ class OuiFMBackend(BaseBackend, ICapRadio, ICapCollection):
|
|||
def create_default_browser(self):
|
||||
return self.create_browser(parser='json')
|
||||
|
||||
def iter_resources(self, splited_path):
|
||||
if len(splited_path) > 0:
|
||||
def iter_resources(self, split_path):
|
||||
if len(split_path) > 0:
|
||||
raise CollectionNotFound()
|
||||
|
||||
for id in self._RADIOS.iterkeys():
|
||||
|
|
|
|||
|
|
@ -155,8 +155,8 @@ class RadioFranceBackend(BaseBackend, ICapRadio, ICapCollection):
|
|||
_DIRECTJSON_RADIOS = ('lemouv', 'franceinter', )
|
||||
_RSS_RADIOS = ('francemusique', )
|
||||
|
||||
def iter_resources(self, splited_path):
|
||||
if len(splited_path) > 0:
|
||||
def iter_resources(self, split_path):
|
||||
if len(split_path) > 0:
|
||||
raise CollectionNotFound()
|
||||
|
||||
for id in sorted(self._RADIOS.iterkeys()):
|
||||
|
|
|
|||
|
|
@ -74,8 +74,8 @@ class Transfer(CapBaseObject):
|
|||
self.add_field('recipient', (int, long, basestring))
|
||||
|
||||
class ICapBank(ICapCollection):
|
||||
def iter_resources(self, splited_path):
|
||||
if len(splited_path) > 0:
|
||||
def iter_resources(self, split_path):
|
||||
if len(split_path) > 0:
|
||||
raise CollectionNotFound()
|
||||
|
||||
return self.iter_accounts()
|
||||
|
|
|
|||
|
|
@ -60,5 +60,5 @@ class Ressource(object):
|
|||
pass
|
||||
|
||||
class ICapCollection(IBaseCap):
|
||||
def iter_resources(self, splited_path):
|
||||
def iter_resources(self, split_path):
|
||||
raise NotImplementedError()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue