Browse Source

better filename handling for download

dockercon2021
Efertone 5 months ago
parent
commit
3362b86f0b
No known key found for this signature in database GPG Key ID: 7AB750DDFD9EE50
  1. 2
      src/Video.elm

2
src/Video.elm

@ -49,7 +49,7 @@ downloadLink path format =
filename : String -> FileFormat -> String
filename path format =
(Maybe.withDefault "unknown" <| List.head <| List.drop 1 <| String.split "/" path) ++ "." ++ format.extention
(Maybe.withDefault "unknown" <| List.head <| List.take 1 <| List.reverse <| String.split "/" path) ++ "." ++ format.extention
type alias ListConfig msg =

Loading…
Cancel
Save