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 | |
| parent | 752c2dad8e908344aa1c735802d234ed7f3e3e51 (diff) | |
text-overflow for title item
| -rw-r--r-- | res/client.js | 3 | ||||
| -rw-r--r-- | res/css/des.css | 11 | ||||
| -rw-r--r-- | src/client/players/Raw.hx | 3 |
3 files changed, 15 insertions, 2 deletions
diff --git a/res/client.js b/res/client.js index e469a33..20d7eeb 100644 --- a/res/client.js +++ b/res/client.js @@ -2202,7 +2202,8 @@ client_players_Raw.prototype = { } ,getVideoData: function(url,callback) { var _gthis = this; - var title = HxOverrides.substr(url,url.lastIndexOf("/") + 1,null); + var decodedUrl = decodeURIComponent(url.split("+").join(" ")); + var title = HxOverrides.substr(decodedUrl,decodedUrl.lastIndexOf("/") + 1,null); if(this.matchName.match(title)) { title = this.matchName.matched(1); } else { diff --git a/res/css/des.css b/res/css/des.css index 6319312..d179f15 100644 --- a/res/css/des.css +++ b/res/css/des.css @@ -227,6 +227,12 @@ button.danger-bg:focus { flex-wrap: wrap; } +.info header { + flex-wrap: nowrap; + overflow-x: hidden; + white-space: nowrap; +} + .info header:first-child { display: flex; align-items: center; @@ -242,6 +248,11 @@ button.danger-bg:focus { background-color: var(--background-video); } +header h4 { + overflow: hidden; + text-overflow: ellipsis; +} + .controls { position: relative; display: flex; 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"); |
