Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/upload/extract_video_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def generate_tag(video_path):
tags = get_bilibili_suggestions(artist_text)

if not tags:
tags = ["直播回放", "切片"]
tags = "直播回放"

return tags

Expand Down
4 changes: 2 additions & 2 deletions src/upload/query_search_suggestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down