Proper log rotation, filename compatibility with windows
This commit is contained in:
@@ -190,7 +190,7 @@ func (t *TorrentManager) getMoreInfo(rdTorrent realdebrid.Torrent) *realdebrid.T
|
||||
}
|
||||
|
||||
func (t *TorrentManager) convertToTorrent(info *realdebrid.TorrentInfo) *Torrent {
|
||||
torrent := t.readTorrentFromFile("data/" + info.Hash + ".zurgtorrent")
|
||||
torrent := t.readTorrentFromFile("data/" + t.getTorrentInfoFilename(info) + ".zurgtorrent")
|
||||
if torrent != nil && torrent.DownloadedIDs.ContainsOne(info.ID) {
|
||||
return torrent
|
||||
}
|
||||
@@ -391,7 +391,7 @@ func (t *TorrentManager) assignDirectory(tor *Torrent, triggerHook bool, outputL
|
||||
listing, _ := t.DirectoryMap.Get(directory)
|
||||
listing.Set(accessKey, tor)
|
||||
|
||||
if directory != INT_ALL {
|
||||
if directory != config.ALL_TORRENTS {
|
||||
dirs = append(dirs, directory)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user