|
|
@@ -261,11 +261,15 @@
|
|
|
(defn fix-local-asset-filename
|
|
|
[filename]
|
|
|
(when-not (string/blank? filename)
|
|
|
- (let [local-asset? (re-find #"[0-9]{13}_\d$" filename)]
|
|
|
- (-> filename
|
|
|
- (subs 0 (- (count filename) (if local-asset? 15 0)))
|
|
|
- (string/replace #"^hls__" "")
|
|
|
- (string/replace "_" " ")))))
|
|
|
+ (let [local-asset? (re-find #"[0-9]{13}_\d$" filename)
|
|
|
+ hls? (and local-asset? (re-find #"^hls__" filename))]
|
|
|
+ (if (or local-asset? hls?)
|
|
|
+ (-> filename
|
|
|
+ (subs 0 (- (count filename) 15))
|
|
|
+ (string/replace #"^hls__" "")
|
|
|
+ (string/replace "_" " ")
|
|
|
+ (string/trimr))
|
|
|
+ filename))))
|
|
|
|
|
|
(rum/defc human-hls-filename-display
|
|
|
[title]
|