minor update

pull/3344/head
adechant 5 months ago
parent 37c9dfc3c5
commit d9c0541919

@ -166,7 +166,7 @@ namespace Readarr.Api.V1.BookFiles
_diskProvider.CreateFolder(directory);
}
//don't use the uploaded files name in case it is intentionally malformed
//don't use the uploaded file's name in case it is intentionally malformed
var fileName = string.Format("{0}{1}", title, extension);
var combined = Path.Combine(directory, fileName);

@ -36,6 +36,7 @@ namespace Readarr.Api.V1.OPDS
public List<string> Genres { get; set; }
public double Rating { get; set; }
public int Votes { get; set; }
public string ForeignBookId { get; set; }
}
public class OPDSImageResource : IEmbeddedDocument
@ -156,6 +157,7 @@ namespace Readarr.Api.V1.OPDS
Genres = book.Genres,
Votes = book.Ratings.Votes,
Rating = (double)book.Ratings.Value,
ForeignBookId = book.ForeignBookId,
};
}

Loading…
Cancel
Save