aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/players/Raw.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-05-22 19:23:07 +0300
committerRblSb <msrblsb@gmail.com>2020-05-22 20:03:53 +0300
commita5f39c0deafc61bab42a895fe6febf0409d8f9ce (patch)
tree915a8788036173ba3a81334f4ba0f3f57d8c09bb /src/client/players/Raw.hx
parent752c2dad8e908344aa1c735802d234ed7f3e3e51 (diff)
text-overflow for title item
Diffstat (limited to 'src/client/players/Raw.hx')
-rw-r--r--src/client/players/Raw.hx3
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");
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage