Fix breaking downloads

pull/31/head
Akhil Gupta 4 years ago committed by GitHub
parent 9363cc1f0e
commit 92358bd844
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -197,11 +197,11 @@ func createFolder(folder string, parent string) string {
func createDataFolderIfNotExists(folder string) string {
dataPath := os.Getenv("DATA")
return createFolder(dataPath, folder)
return createFolder(folder,dataPath)
}
func createConfigFolderIfNotExists(folder string) string {
dataPath := os.Getenv("CONFIG")
return createFolder(dataPath, folder)
return createFolder(folder,dataPath)
}
func getFileName(link string, title string, defaultExtension string) string {

Loading…
Cancel
Save