[BETA] Changelog 0.3.4 (#14)
- Add repair worker - Fix AllDebrid bugs with single movies/series - Fix Torbox bugs
This commit is contained in:
@@ -127,6 +127,7 @@ func (r *AllDebrid) GetTorrent(id string) (*Torrent, error) {
|
||||
files = append(files, file)
|
||||
}
|
||||
parentFolder := data.Filename
|
||||
|
||||
if data.NbLinks == 1 {
|
||||
// All debrid doesn't return the parent folder for single file torrents
|
||||
parentFolder = ""
|
||||
|
||||
@@ -58,7 +58,7 @@ func (t *Torrent) GetSymlinkFolder(parent string) string {
|
||||
return filepath.Join(parent, t.Arr.Name, t.Folder)
|
||||
}
|
||||
|
||||
func (t *Torrent) GetMountFolder(rClonePath string) string {
|
||||
func (t *Torrent) GetMountFolder(rClonePath string) (string, error) {
|
||||
possiblePaths := []string{
|
||||
t.OriginalFilename,
|
||||
t.Filename,
|
||||
@@ -67,10 +67,10 @@ func (t *Torrent) GetMountFolder(rClonePath string) string {
|
||||
|
||||
for _, path := range possiblePaths {
|
||||
if common.FileReady(filepath.Join(rClonePath, path)) {
|
||||
return path
|
||||
return path, nil
|
||||
}
|
||||
}
|
||||
return ""
|
||||
return "", nil
|
||||
}
|
||||
|
||||
func (t *Torrent) Delete() {
|
||||
|
||||
Reference in New Issue
Block a user