Skip to content

Commit 44c87d6

Browse files
authored
Fixed Issue #289 (#290)
* Update extract_video_info.py Edit Line 79 * Update query_search_suggestion.py Edit Line 29 and 32
1 parent 01aad50 commit 44c87d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/upload/extract_video_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def generate_tag(video_path):
7676
tags = get_bilibili_suggestions(artist_text)
7777

7878
if not tags:
79-
tags = ["直播回放", "切片"]
79+
tags = "直播回放"
8080

8181
return tags
8282

src/upload/query_search_suggestion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ def get_bilibili_suggestions(term):
2626
f"Request get_bilibili_suggestions failed with status code: {response.status_code}"
2727
)
2828
# fallback to default tags
29-
return ["直播回放", "切片"]
29+
return "直播回放"
3030
except requests.RequestException as e:
3131
upload_log.error(f"Request get_bilibili_suggestions failed with exception: {e}")
32-
return ["直播回放", "切片"]
32+
return "直播回放"
3333

3434

3535
if __name__ == "__main__":

0 commit comments

Comments
 (0)