mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
Add null check for schema access in IndexerModule
Co-authored-by: jxxghp <51039935+jxxghp@users.noreply.github.com>
This commit is contained in:
co-authored by
jxxghp
parent
5a071bf3d1
commit
548c1d2cab
@@ -434,7 +434,7 @@ class IndexerModule(_ModuleBase):
|
|||||||
获取站点解析器
|
获取站点解析器
|
||||||
"""
|
"""
|
||||||
for site_schema in self._site_schemas:
|
for site_schema in self._site_schemas:
|
||||||
if site_schema.schema.value == site.get("schema"):
|
if site_schema.schema and site_schema.schema.value == site.get("schema"):
|
||||||
return site_schema(
|
return site_schema(
|
||||||
site_name=site.get("name"),
|
site_name=site.get("name"),
|
||||||
url=site.get("url"),
|
url=site.get("url"),
|
||||||
|
|||||||
Reference in New Issue
Block a user