diff --git a/README.md b/README.md index 5098c97..aabd4e8 100644 --- a/README.md +++ b/README.md @@ -31,3 +31,13 @@ url = "https://www.youtube.com" ``` + +## Result + +``` +vids +└── 2 Much ColinFurze + ├── 2025 + │   └── 20250327-Secret_Garage_Update_15_Questions_answered_and_Roofs_Covered-XN4HiUMuQdo.webm + └── archive.txt +``` diff --git a/internal/dl/dl.go b/internal/dl/dl.go index 12e57d4..09ef0e6 100644 --- a/internal/dl/dl.go +++ b/internal/dl/dl.go @@ -17,7 +17,7 @@ type Download struct { } func Get(d Download) { - output := filepath.Join(d.Name, "%(upload_date>%Y)s/%(upload_date)s-%(title)s-%(id)s.%(ext)s") + output := filepath.Join("%(upload_date>%Y)s/%(upload_date)s-%(title)s-%(id)s.%(ext)s") archive := filepath.Join(d.OutDir, d.Name, "archive.txt") outdir := filepath.Join(d.OutDir, d.Name)