diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/players/Raw.hx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/players/Raw.hx b/src/client/players/Raw.hx index 4e23ccb..dacf45c 100644 --- a/src/client/players/Raw.hx +++ b/src/client/players/Raw.hx @@ -31,7 +31,8 @@ class Raw implements IPlayer { } public function getVideoData(url:String, callback:(data:VideoData)->Void):Void { - var title = url.substr(url.lastIndexOf("/") + 1); + final decodedUrl = url.urlDecode(); + var title = decodedUrl.substr(decodedUrl.lastIndexOf("/") + 1); if (matchName.match(title)) title = matchName.matched(1); else title = Lang.get("rawVideo"); final isHls = matchName.matched(2).contains("m3u8"); |
