mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
Merge pull request #4292 from Seed680/v2
This commit is contained in:
@@ -92,7 +92,7 @@ class WallpaperHelper(metaclass=Singleton):
|
|||||||
# 如果返回的是图片格式
|
# 如果返回的是图片格式
|
||||||
content_type = resp.headers.get('Content-Type')
|
content_type = resp.headers.get('Content-Type')
|
||||||
if content_type and content_type.lower() == 'image/jpeg':
|
if content_type and content_type.lower() == 'image/jpeg':
|
||||||
wallpaper_list.append(resp.url)
|
wallpaper_list.append(settings.CUSTOMIZE_WALLPAPER_API_URL)
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
result = resp.json()
|
result = resp.json()
|
||||||
|
|||||||
Reference in New Issue
Block a user