giffer

Create .gif images from sites like youtube.com
Log | Files | Refs | LICENSE

commit d3c75a29a27f5411c4e68145ff44b815aa826daf
parent 6bf60007262af56e2fb547a8c05d951270b315ac
Author: Jack Mordaunt <jackmordaunt@gmail.com>
Date:   Sun,  2 May 2021 12:27:42 +0800

fix: sanitize file names

Diffstat:
Mdownload.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/download.go b/download.go @@ -66,7 +66,7 @@ func (dl Downloader) download( if err != nil { return "", fmt.Errorf("getting video: %w", err) } - outf := filepath.Join(os.TempDir(), v.Title) + outf := filepath.Join(os.TempDir(), downloader.SanitizeFilename(v.Title)) return outf, d.Download(context.TODO(), v, &v.Formats[0], outf) }