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