|
@@ -163,6 +163,7 @@ func (s Supplier) GetSubListFromFile(filePath string) ([]common.SupplierSubInfo,
|
|
|
subInfoList, err = s.GetSubListFromKeyword(imdbInfo.ImdbId)
|
|
subInfoList, err = s.GetSubListFromKeyword(imdbInfo.ImdbId)
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
// 允许的错误,跳过,继续进行文件名的搜索
|
|
// 允许的错误,跳过,继续进行文件名的搜索
|
|
|
|
|
+ s.log.Errorln(s.GetSupplierName(), "keyword:", imdbInfo.ImdbId)
|
|
|
s.log.Errorln("GetSubListFromKeyword", "IMDBID can not found sub", filePath, err)
|
|
s.log.Errorln("GetSubListFromKeyword", "IMDBID can not found sub", filePath, err)
|
|
|
}
|
|
}
|
|
|
// 如果有就优先返回
|
|
// 如果有就优先返回
|
|
@@ -175,6 +176,7 @@ func (s Supplier) GetSubListFromFile(filePath string) ([]common.SupplierSubInfo,
|
|
|
searchKeyword := model.VideoNameSearchKeywordMaker(info.Title, imdbInfo.Year)
|
|
searchKeyword := model.VideoNameSearchKeywordMaker(info.Title, imdbInfo.Year)
|
|
|
subInfoList, err = s.GetSubListFromKeyword(searchKeyword)
|
|
subInfoList, err = s.GetSubListFromKeyword(searchKeyword)
|
|
|
if err != nil {
|
|
if err != nil {
|
|
|
|
|
+ s.log.Errorln(s.GetSupplierName(), "keyword:", searchKeyword)
|
|
|
return nil, err
|
|
return nil, err
|
|
|
}
|
|
}
|
|
|
|
|
|