Update channels_timestamps.csv after the video have been upload to peertube #11

Open
opened 2026-10-05 06:12:27 +02:00 by adam · 3 comments
Owner

If some problem occurs and videos are not uploaded, next time it will not retry because channels_timestamps.csv have been updated.

If some problem occurs and videos are not uploaded, next time it will not retry because channels_timestamps.csv have been updated. <!-- github-sync-id:537749964 -->
Author
Owner

This is due to the fact that channels_timestamps is updated prior to actual video handling, this is an architectural issue. I will get it fixed but it will be handled after all my existing open issues.

This is due to the fact that channels_timestamps is updated prior to actual video handling, this is an architectural issue. I will get it fixed but it will be handled after all my existing open issues. <!-- github-comment-id:565695710 -->
Author
Owner

Related: #4 error handling.

The problem with this proposed change is that, suppose there are 3 videos from a channel in the queue, and the 2nd one is not uploaded. If channels_timestamps is not updated until upload is complete, then the bot will upload a duplicate of the 3rd video.

The proper approach to this problem is not to change the procedural point at which the channels_timestamps is modified (currently it is modified when the queue is created), but to handle the error properly when the video cannot be mirrored and attempt again, attempt the alternate YT URL, then if PeerTube returns some error such as upload cap reached, log the failure and either attempt it again later or leave it as is.

Related: #4 error handling. The problem with this proposed change is that, suppose there are 3 videos from a channel in the queue, and the 2nd one is not uploaded. If channels_timestamps is not updated until upload is complete, then the bot will upload a duplicate of the 3rd video. The proper approach to this problem is not to change the procedural point at which the channels_timestamps is modified (currently it is modified when the queue is created), but to handle the error properly when the video cannot be mirrored and attempt again, attempt the alternate YT URL, then if PeerTube returns some error such as upload cap reached, log the failure and either attempt it again later or leave it as is. <!-- github-comment-id:565696598 -->
Author
Owner

Issue #4 mirror failure still needs to be retried with alternate YT URL upon failure.

Issue #4 mirror failure still needs to be retried with alternate YT URL upon failure. <!-- github-comment-id:570867587 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/YouTube2PeerTube#11