Fix parse search year

This commit is contained in:
cxfksword 2023-03-19 12:15:58 +08:00
parent f1a1587ff3
commit 3f216c3336
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ namespace Jellyfin.Plugin.MetaShark.Test
[TestMethod]
public void TestSearch()
{
var keyword = "重返少年时";
var keyword = "V字仇杀队";
var api = new DoubanApi(loggerFactory);
Task.Run(async () =>

View File

@ -204,7 +204,7 @@ namespace Jellyfin.Plugin.MetaShark.Api
var name = movieElement.GetText("div.title a") ?? string.Empty;
var titleStr = movieElement.GetText("div.title>h3>span") ?? string.Empty;
var cat = titleStr.GetMatchGroup(this.regCat);
var subjectStr = movieElement.GetText("div.rating-info>.subject-cast") ?? string.Empty;
var subjectStr = movieElement.GetText("div.rating-info>span:last-child") ?? string.Empty;
var year = subjectStr.GetMatchGroup(this.regYear);
var originalName = subjectStr.GetMatchGroup(this.regOriginalName);
var desc = movieElement.GetText("div.content>p") ?? string.Empty;