From a5f39c0deafc61bab42a895fe6febf0409d8f9ce Mon Sep 17 00:00:00 2001 From: RblSb Date: Fri, 22 May 2020 19:23:07 +0300 Subject: text-overflow for title item --- src/client/players/Raw.hx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/client') 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"); -- cgit v1.2.3