fix(yemapt): judge tag list none

This commit is contained in:
yemapt
2024-11-24 16:22:54 +08:00
parent a2c10c86bf
commit 576d215d8c
+1 -1
View File
@@ -105,7 +105,7 @@ class YemaSpider:
category = MediaType.UNKNOWN.value category = MediaType.UNKNOWN.value
pass pass
torrentLabelIds = result.get('tagList') torrentLabelIds = result.get('tagList', []) or []
torrentLabels = [] torrentLabels = []
for labelId in torrentLabelIds: for labelId in torrentLabelIds:
if self._labels.get(labelId) is not None: if self._labels.get(labelId) is not None: