Albirew/nyaa-pantsu
Albirew
/
nyaa-pantsu
Archivé
1
0
Bifurcation 0

Update torrent.go

Cette révision appartient à :
kilo 2017-11-08 08:51:40 +01:00 révisé par GitHub
Parent ef30870ce3
révision 1219e69260
Signature inconnue de Forgejo
ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 1 ajouts et 0 suppressions

Voir le fichier

@ -471,6 +471,7 @@ func (t *Torrent) CreateFileList(Files []torrent.File) ([]File, error) {
for _, uploadedFile := range Files {
file := File{TorrentID: t.ID, Filesize: uploadedFile.Length()}
err := file.SetPath([]string{uploadedFile.DisplayPath(), ""})
// Need to figure out what SetPath() is supposed to be fed because this ain't working
if err != nil {
return []File{}, err
}