Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #347, add script to clean up videos in invalid state #348

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

Lezek123
Copy link
Contributor

@Lezek123 Lezek123 commented Dec 6, 2024

  • adds queueCleanup command that fetches data from YouTube to establish which videos in sync queue can be removed, because they are:

    • missing (YouTube API doesn't recognize them)
    • unprocessed (uploadStatus != 'processed')
    • private videos
    • livestreams
    • age restricted
    • longer than maxVideoDuration

    And allows dropping them from Youtube Sync's videos database (while also creating a backup).
    The rationale is that most of those videos should not have ended up in the database in the first place, but they did because of an issue introduced here and fixed in Polling and logging fixes #345.

  • fixes size cap for historical videos of channel reached #347 by introducing additional video size/formats check before executing a download.

@Lezek123 Lezek123 merged commit 3d3dd6d into Joystream:main Dec 6, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

size cap for historical videos of channel reached
1 participant