🐛修复图集BGM报错 #30
This commit is contained in:
parent
f1af8a5577
commit
af0bfad54f
1 changed files with 3 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
# -*- encoding: utf-8 -*-
|
# -*- encoding: utf-8 -*-
|
||||||
# @Author: https://github.com/Evil0ctal/
|
# @Author: https://github.com/Evil0ctal/
|
||||||
# @Time: 2021/11/06
|
# @Time: 2021/11/06
|
||||||
# @Update: 2022/05/16
|
# @Update: 2022/05/22
|
||||||
# @Function:
|
# @Function:
|
||||||
# 核心代码,估值1块(๑•̀ㅂ•́)و✧
|
# 核心代码,估值1块(๑•̀ㅂ•́)و✧
|
||||||
# 用于爬取Douyin/TikTok数据并以字典形式返回。
|
# 用于爬取Douyin/TikTok数据并以字典形式返回。
|
||||||
|
|
@ -113,6 +113,8 @@ class Scraper:
|
||||||
# 图集BGM MID
|
# 图集BGM MID
|
||||||
album_music_mid = str(js['item_list'][0]['music']['mid'])
|
album_music_mid = str(js['item_list'][0]['music']['mid'])
|
||||||
else:
|
else:
|
||||||
|
# 图集BGM为空
|
||||||
|
album_music = 'No BGM found'
|
||||||
# 图集BGM标题
|
# 图集BGM标题
|
||||||
album_music_title = 'No BGM found'
|
album_music_title = 'No BGM found'
|
||||||
# 图集BGM作者
|
# 图集BGM作者
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue