izuemon commited on
Commit
a84ff36
·
verified ·
1 Parent(s): 002a66c

Update watcher.py

Browse files
Files changed (1) hide show
  1. 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
- print("nonceの取得に失敗しました")
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
- send_to_channel("\n音声の結合を開始しました。\n".join(message_lines))
 
 
 
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: