Spaces:
Running
Running
Update watcher.py
Browse files- watcher.py +4 -4
watcher.py
CHANGED
|
@@ -321,8 +321,8 @@ def main():
|
|
| 321 |
|
| 322 |
# メッセージを構築
|
| 323 |
message_lines = []
|
| 324 |
-
message_lines.append(f"
|
| 325 |
-
message_lines.append("
|
| 326 |
|
| 327 |
# すべての動画リンクを追加
|
| 328 |
for item in all_items:
|
|
@@ -338,7 +338,7 @@ def main():
|
|
| 338 |
|
| 339 |
# 最高画質の結合動画を作成
|
| 340 |
if best_video and best_audio and nonce:
|
| 341 |
-
message_lines.append("\n
|
| 342 |
|
| 343 |
# 画質情報を取得
|
| 344 |
quality_match = re.match(r"(\d+)p", best_video["quality"])
|
|
@@ -356,7 +356,7 @@ def main():
|
|
| 356 |
video_title,
|
| 357 |
nonce
|
| 358 |
)
|
| 359 |
-
message_lines.append(f"<link type=\"url\" value=\"{
|
| 360 |
except Exception as e:
|
| 361 |
print(f"結合処理エラー: {e}")
|
| 362 |
message_lines.append(f"結合処理に失敗: {str(e)}")
|
|
|
|
| 321 |
|
| 322 |
# メッセージを構築
|
| 323 |
message_lines = []
|
| 324 |
+
message_lines.append(f"<b>{video_title}</b>\n")
|
| 325 |
+
message_lines.append("<b>ダウンロードリンク</b>")
|
| 326 |
|
| 327 |
# すべての動画リンクを追加
|
| 328 |
for item in all_items:
|
|
|
|
| 338 |
|
| 339 |
# 最高画質の結合動画を作成
|
| 340 |
if best_video and best_audio and nonce:
|
| 341 |
+
message_lines.append("\n <b>最高画質結合動画</b>")
|
| 342 |
|
| 343 |
# 画質情報を取得
|
| 344 |
quality_match = re.match(r"(\d+)p", best_video["quality"])
|
|
|
|
| 356 |
video_title,
|
| 357 |
nonce
|
| 358 |
)
|
| 359 |
+
message_lines.append(f"<link type=\"url\" value=\"{merged_url}\">{quality}p 結合済み動画</link>")
|
| 360 |
except Exception as e:
|
| 361 |
print(f"結合処理エラー: {e}")
|
| 362 |
message_lines.append(f"結合処理に失敗: {str(e)}")
|