Skip to content

Commit

Permalink
Only search movie
Browse files Browse the repository at this point in the history
  • Loading branch information
Libitum committed Nov 6, 2019
1 parent 43bd296 commit 0611a18
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Jellyfin.Plugin.Douban/MetadataProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ public async Task<IEnumerable<RemoteSearchResult>> GetSearchResults(MovieInfo in
foreach (String sid in sidList)
{
var subject = await GetSubject(sid, cancellationToken).ConfigureAwait(false);
if (subject.Subtype != "movie")
{
continue;
}

var searchResult = new RemoteSearchResult()
{
Name = subject.Title,
Expand Down

0 comments on commit 0611a18

Please sign in to comment.