Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Fix issue with torrent magnet

Cette révision appartient à :
akuma06 2017-07-22 01:55:23 +02:00
Parent 2ddb3d454e
révision a69b0b4ead

Voir le fichier

@ -135,7 +135,7 @@ func ExtractInfo(c *gin.Context, r *torrentValidator.TorrentRequest) error {
} }
// after data has been checked & extracted, write it to disk // after data has been checked & extracted, write it to disk
if len(config.Get().Torrents.FileStorage) > 0 { if len(config.Get().Torrents.FileStorage) > 0 && r.Filesize > 0 {
err := writeTorrentToDisk(tfile, r.Infohash+".torrent", &r.Filepath) err := writeTorrentToDisk(tfile, r.Infohash+".torrent", &r.Filepath)
if err != nil { if err != nil {
return err return err