Skip to content

Commit 59f8ad5

Browse files
committed
fix: 修复emby组件错误
1 parent 7741de8 commit 59f8ad5

File tree

1 file changed

+1
-1
lines changed
  • plugins/common-plugin/src/main/kotlin/io/github/shoaky/sourcedownloader/common

1 file changed

+1
-1
lines changed

plugins/common-plugin/src/main/kotlin/io/github/shoaky/sourcedownloader/common/EmbyImageTagger.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ object EmbyImageTagger : FileTagger {
2727
return null
2828
}
2929

30-
val image = ImageIO.read(sourceFile.path.toFile())
30+
val image = ImageIO.read(sourceFile.path.toFile()) ?: return null
3131
if (image.width >= image.height) {
3232
return "thumb"
3333
}

0 commit comments

Comments
 (0)