[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):
|
class RmllSearchPage(JsonPage):
|
||||||
def iter_resources(self):
|
def iter_resources(self):
|
||||||
for metadata in self.doc['videos']:
|
if 'videos' in self.doc:
|
||||||
video = create_video(metadata)
|
for metadata in self.doc['videos']:
|
||||||
yield video
|
video = create_video(metadata)
|
||||||
|
yield video
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue