mirror of https://github.com/streamlink/streamlink
plugins.dailymotion: fix validation schema
This commit is contained in:
parent
37dc0b2029
commit
6aa2b56e35
|
@ -45,7 +45,9 @@ class DailyMotion(Plugin):
|
||||||
"error": {"title": str},
|
"error": {"title": str},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"owner.username": str,
|
"owner": {
|
||||||
|
"username": str,
|
||||||
|
},
|
||||||
"title": str,
|
"title": str,
|
||||||
"qualities": {
|
"qualities": {
|
||||||
str: [{
|
str: [{
|
||||||
|
@ -67,7 +69,7 @@ class DailyMotion(Plugin):
|
||||||
return
|
return
|
||||||
|
|
||||||
self.id = media_id
|
self.id = media_id
|
||||||
self.author = media["owner.username"]
|
self.author = media["owner"]["username"]
|
||||||
self.title = media["title"]
|
self.title = media["title"]
|
||||||
|
|
||||||
for quality, streams in media["qualities"].items():
|
for quality, streams in media["qualities"].items():
|
||||||
|
|
Loading…
Reference in New Issue