Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Commit

Permalink
Fix file name for downloading (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheks authored and ahmdrz committed Oct 26, 2018
1 parent da56922 commit 9f60c34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions media.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ func (item *Item) Download(folder, name string) (imgs, vds string, err error) {

nname = path.Join(vidFolder, path.Base(u.Path))
} else {
nname = path.Join(vidFolder, nname)
nname = path.Join(vidFolder, name)
}
nname = getname(nname)

Expand All @@ -381,7 +381,7 @@ func (item *Item) Download(folder, name string) (imgs, vds string, err error) {

nname = path.Join(imgFolder, path.Base(u.Path))
} else {
nname = path.Join(imgFolder, nname)
nname = path.Join(imgFolder, name)
}
nname = getname(nname)

Expand Down

0 comments on commit 9f60c34

Please sign in to comment.