mirror of
https://github.com/timerring/bilive.git
synced 2026-09-02 19:03:47 +08:00
* Update extract_video_info.py Edit Line 79 * Update query_search_suggestion.py Edit Line 29 and 32
This commit is contained in:
@@ -76,7 +76,7 @@ def generate_tag(video_path):
|
||||
tags = get_bilibili_suggestions(artist_text)
|
||||
|
||||
if not tags:
|
||||
tags = ["直播回放", "切片"]
|
||||
tags = "直播回放"
|
||||
|
||||
return tags
|
||||
|
||||
|
||||
@@ -26,10 +26,10 @@ def get_bilibili_suggestions(term):
|
||||
f"Request get_bilibili_suggestions failed with status code: {response.status_code}"
|
||||
)
|
||||
# fallback to default tags
|
||||
return ["直播回放", "切片"]
|
||||
return "直播回放"
|
||||
except requests.RequestException as e:
|
||||
upload_log.error(f"Request get_bilibili_suggestions failed with exception: {e}")
|
||||
return ["直播回放", "切片"]
|
||||
return "直播回放"
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user