Skip to content

Commit 0d035e5

Browse files
committed
plugins.streamme: Fixed null error for 'origin'
streamlink#2307 (comment) ``` error: Unable to validate response text: Unable to validate key 'formats': Unable to validate key 'mp4-hls': Unable to validate key 'origin': Type of None should be 'dict' but is 'NoneType' ```
1 parent 34abc43 commit 0d035e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/streamlink/plugins/streamme.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ class StreamMe(Plugin):
4949
'videoHeight': int,
5050
'location': validate.url()
5151
}],
52-
validate.optional('origin'): {
52+
validate.optional('origin'): validate.any(None, {
5353
validate.optional('location'): validate.url(),
54-
}
54+
})
5555
}
5656
}
5757
},

0 commit comments

Comments
 (0)