Fix some collecton validation
And add restrict_level helper method.
This commit is contained in:
parent
e70a125ab9
commit
1430b40bc5
7 changed files with 11 additions and 13 deletions
|
|
@ -112,7 +112,7 @@ class RadioFranceBackend(BaseBackend, ICapRadio, ICapCollection, ICapVideo):
|
|||
for _id in sorted(self._RADIOS.iterkeys()):
|
||||
if not _id.startswith('fb'):
|
||||
yield self.get_radio(_id)
|
||||
yield Collection(['francebleu'], 'France Bleu')
|
||||
yield Collection([u'francebleu'], u'France Bleu')
|
||||
else:
|
||||
raise CollectionNotFound(split_path)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue