ソースを参照

粗暴点解决读取 nfo imdb 的问题

Signed-off-by: 716 <[email protected]>
716 4 年 前
コミット
017d2c6189
1 ファイル変更3 行追加0 行削除
  1. 3 0
      model/decode.go

+ 3 - 0
model/decode.go

@@ -36,6 +36,9 @@ func getImdbNfo(nfoFilePath string) (string, error) {
 	for _, t := range doc.FindElements("//uniqueid[@type='imdb']") {
 	for _, t := range doc.FindElements("//uniqueid[@type='imdb']") {
 		return t.Text(), nil
 		return t.Text(), nil
 	}
 	}
+	for _, t := range doc.FindElements("//uniqueid[@type='IMDB']") {
+		return t.Text(), nil
+	}
 
 
 	return "", common.CanNotFindIMDBID
 	return "", common.CanNotFindIMDBID
 }
 }