From b30c83751d96b5e132493244ff6c0e896a4f125b Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sun, 28 Apr 2024 01:57:05 +0200 Subject: [PATCH] Use the first title if multiples titles are present --- scanner/matcher/matcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scanner/matcher/matcher.py b/scanner/matcher/matcher.py index e23a4df7..73f5f41a 100644 --- a/scanner/matcher/matcher.py +++ b/scanner/matcher/matcher.py @@ -59,7 +59,7 @@ class Matcher: title = raw.get("title") if isinstance(title, list): - pass + title = title[0] if not isinstance(title, str): raise ProviderError(f"Could not guess title, found: {title}")