Spaces:
Running
Running
Update watcher.py
Browse files- watcher.py +5 -2
watcher.py
CHANGED
|
@@ -308,7 +308,7 @@ def main():
|
|
| 308 |
items, nonce = fetch_download_links(youtube_url)
|
| 309 |
|
| 310 |
if not nonce:
|
| 311 |
-
|
| 312 |
time.sleep(10)
|
| 313 |
continue
|
| 314 |
|
|
@@ -343,7 +343,10 @@ def main():
|
|
| 343 |
quality_display = f"{quality} (映像のみ)"
|
| 344 |
|
| 345 |
message_lines.append(f"<link type=\"url\" value=\"{item['url']}\"> {quality_display} </link>")
|
| 346 |
-
|
|
|
|
|
|
|
|
|
|
| 347 |
message_lines = []
|
| 348 |
# 最高画質の結合動画を作成
|
| 349 |
if best_video and best_audio and nonce:
|
|
|
|
| 308 |
items, nonce = fetch_download_links(youtube_url)
|
| 309 |
|
| 310 |
if not nonce:
|
| 311 |
+
send_to_channel("nonceの取得に失敗しました。Izuemon(MOCA)を呼んでください。")
|
| 312 |
time.sleep(10)
|
| 313 |
continue
|
| 314 |
|
|
|
|
| 343 |
quality_display = f"{quality} (映像のみ)"
|
| 344 |
|
| 345 |
message_lines.append(f"<link type=\"url\" value=\"{item['url']}\"> {quality_display} </link>")
|
| 346 |
+
|
| 347 |
+
message_lines.insert(0, "音声と動画の結合を開始しました。これには少し時間がかかります。")
|
| 348 |
+
send_to_channel("\n".join(message_lines))
|
| 349 |
+
|
| 350 |
message_lines = []
|
| 351 |
# 最高画質の結合動画を作成
|
| 352 |
if best_video and best_audio and nonce:
|