Fixed Issue #289 (#290)

* Update extract_video_info.py

Edit Line 79

* Update query_search_suggestion.py

Edit Line 29 and 32
This commit is contained in:
zzvw
2025-04-17 10:50:41 +08:00
committed by GitHub
parent 01aad50b54
commit 44c87d65cb
2 changed files with 3 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ def generate_tag(video_path):
tags = get_bilibili_suggestions(artist_text)
if not tags:
tags = ["直播回放", "切片"]
tags = "直播回放"
return tags

View File

@@ -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__":