diff options
| author | RblSb <msrblsb@gmail.com> | 2020-05-22 19:23:07 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2020-05-22 20:03:53 +0300 |
| commit | a5f39c0deafc61bab42a895fe6febf0409d8f9ce (patch) | |
| tree | 915a8788036173ba3a81334f4ba0f3f57d8c09bb /src | |
| parent | 752c2dad8e908344aa1c735802d234ed7f3e3e51 (diff) | |
text-overflow for title item
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"); |
