From a719289ef36093d8b956eeb508a68acef5500c8e Mon Sep 17 00:00:00 2001 From: milarin Date: Fri, 13 Jan 2023 11:27:09 +0100 Subject: [PATCH] trim dot from file extension --- anime_episode_filepath.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/anime_episode_filepath.go b/anime_episode_filepath.go index 4b03aee..fe3d5e3 100644 --- a/anime_episode_filepath.go +++ b/anime_episode_filepath.go @@ -8,6 +8,8 @@ import ( ) func GetAnimeEpFilepath(animeEp model.AnimeEpisode, ext string) string { + ext = strings.TrimPrefix(ext, ".") + tmplData := AnimePathPatternData{ Title: animeEp.Anime.Title, Episode: animeEp.Episode,