Crash for shedulled livestream #14

Closed
opened 2026-10-05 06:12:44 +02:00 by adam · 2 comments
Owner

When there is a sheduled live-stream, the video obviously cannot be downloaded which leads to following crash:

Traceback (most recent call last):
  File "youtube2peertube.py", line 324, in <module>
    run(run_once=False)
  File "youtube2peertube.py", line 320, in run
    run_steps(conf)
  File "youtube2peertube.py", line 296, in run_steps
    pt_result = upload_to_pt(dl_dir, channel_conf, queue_item, access_token, thumb_extension)
  File "youtube2peertube.py", line 180, in upload_to_pt
    ("videofile", get_file(video_file)),
  File "youtube2peertube.py", line 146, in get_file
    return (path.basename(file_path), open(path.abspath(file_path), 'rb'),
FileNotFoundError: [Errno 2] No such file or directory: '*********'
When there is a sheduled live-stream, the video obviously cannot be downloaded which leads to following crash: ``` Traceback (most recent call last): File "youtube2peertube.py", line 324, in <module> run(run_once=False) File "youtube2peertube.py", line 320, in run run_steps(conf) File "youtube2peertube.py", line 296, in run_steps pt_result = upload_to_pt(dl_dir, channel_conf, queue_item, access_token, thumb_extension) File "youtube2peertube.py", line 180, in upload_to_pt ("videofile", get_file(video_file)), File "youtube2peertube.py", line 146, in get_file return (path.basename(file_path), open(path.abspath(file_path), 'rb'), FileNotFoundError: [Errno 2] No such file or directory: '*********' ``` <!-- github-sync-id:548953371 -->
adam closed this issue 2026-10-05 06:12:44 +02:00
Author
Owner

Thanks for reporting this. I have to find a way to tell if it is a live stream and ignore it until the video is complete.

Thanks for reporting this. I have to find a way to tell if it is a live stream and ignore it until the video is complete. <!-- github-comment-id:574823828 -->
Author
Owner

Closed, commit number fbc2856 fixed this issue

Closed, commit number fbc2856 fixed this issue <!-- github-comment-id:623729623 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/YouTube2PeerTube#14