Skip to content

Commit

Permalink
Descriptive filename
Browse files Browse the repository at this point in the history
  • Loading branch information
rroller committed Oct 27, 2024
1 parent 1a5f808 commit 8ade526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/media/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func getMediaResults(url string) ([]Media, string, error) {
func downloadMedia(url string) (string, string, error) {
// The id will be used as the name of the parent directory of the output files
id := GetMD5Hash(url)
name := getMediaDirectory(id) + "%(id)s.%(ext)s"
name := getMediaDirectory(id) + "%(title)s.%(ext)s"

log.Info().Msgf("Downloading %s to %s", url, id)

Expand Down

0 comments on commit 8ade526

Please sign in to comment.