trim dot from file extension

This commit is contained in:
milarin 2023-01-13 11:27:09 +01:00
parent e0018688e4
commit a719289ef3

View File

@ -8,6 +8,8 @@ import (
) )
func GetAnimeEpFilepath(animeEp model.AnimeEpisode, ext string) string { func GetAnimeEpFilepath(animeEp model.AnimeEpisode, ext string) string {
ext = strings.TrimPrefix(ext, ".")
tmplData := AnimePathPatternData{ tmplData := AnimePathPatternData{
Title: animeEp.Anime.Title, Title: animeEp.Anime.Title,
Episode: animeEp.Episode, Episode: animeEp.Episode,