mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-15 08:15:37 +00:00
Fix #71
This commit is contained in:
@@ -159,7 +159,7 @@ public class LibraryService {
|
||||
.map(Optional::get)
|
||||
.peek(e -> log.info("Mapped file '{}' to game '{}' (slug: {})", e.getKey(), e.getValue().getName(), e.getValue().getSlug()))
|
||||
.map(e -> gameMapper.toDetectedGame(e.getValue(), e.getKey(), library))
|
||||
.toList();
|
||||
.collect(toList());
|
||||
|
||||
List<DetectedGame> duplicateGames = getDuplicates(newDetectedGames);
|
||||
newUnmappedFilesCounter.getAndAdd(duplicateGames.size());
|
||||
@@ -242,7 +242,8 @@ public class LibraryService {
|
||||
.map(slug -> platformRepository.findBySlug(slug).
|
||||
orElseGet(() -> igdbWrapper.getPlatformBySlug(slug)))
|
||||
.filter(Objects::nonNull)
|
||||
.toList();
|
||||
.collect(toList());
|
||||
|
||||
library.setPlatforms(platforms);
|
||||
libraryRepository.save(library);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user