diff options
| author | James Mills <prologic@shortcircuit.net.au> | 2020-03-27 20:16:16 +1000 |
|---|---|---|
| committer | James Mills <prologic@shortcircuit.net.au> | 2020-03-27 20:16:16 +1000 |
| commit | 9af98b0382bb8d58b12d45860afd861ec8b04cb4 (patch) | |
| tree | 3a5a16d050781461a0835909c724b06296c72ee3 /media/video.go | |
| parent | 89d7d71cc5b443dc392ca9aa4368362467a7d70a (diff) | |
Strip the video filename extension from the default title
Diffstat (limited to 'media/video.go')
| -rw-r--r-- | media/video.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/video.go b/media/video.go index 2cad297..f0578cb 100644 --- a/media/video.go +++ b/media/video.go @@ -61,7 +61,7 @@ func ParseVideo(p *Path, name string) (*Video, error) { title := m.Title() // Default title is filename if title == "" { - title = name + title = strings.TrimSuffix(name, filepath.Ext(name)) } v := &Video{ ID: id, |
