[rmll] do not crash if there is no result in search
This commit is contained in:
parent
b4c326cb5a
commit
f0a3575926
1 changed files with 4 additions and 3 deletions
|
|
@ -135,6 +135,7 @@ class RmllLatestPage(JsonPage):
|
|||
|
||||
class RmllSearchPage(JsonPage):
|
||||
def iter_resources(self):
|
||||
if 'videos' in self.doc:
|
||||
for metadata in self.doc['videos']:
|
||||
video = create_video(metadata)
|
||||
yield video
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue