Strip the video filename extension from the default title

This commit is contained in:
James Mills 2020-03-27 20:16:16 +10:00
parent 89d7d71cc5
commit 9af98b0382
No known key found for this signature in database
GPG key ID: AC4C014F1440EBD6
2 changed files with 93 additions and 93 deletions

File diff suppressed because one or more lines are too long

View file

@ -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,