更新 mediaserver.py

This commit is contained in:
jxxghp
2024-11-03 14:41:42 +08:00
committed by GitHub
parent 28759f6c81
commit cfc51c305b

View File

@@ -105,7 +105,8 @@ class MediaServerChain(ChainBase):
"""
获取最新最新入库条目海报作为壁纸缓存1小时
"""
return self.get_latest_wallpapers(server=server, count=20)[0]
wallpapers = self.get_latest_wallpapers(server=server, count=20)
return wallpapers[0] if wallpapers else None
def get_play_url(self, server: str, item_id: Union[str, int]) -> Optional[str]:
"""