Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

Skip media from Recycle Bin from throwing an error and halting the script#54

Closed
ndunand wants to merge 1 commit into
UbiCastTeam:mainfrom
ndunand:main
Closed

Skip media from Recycle Bin from throwing an error and halting the script#54
ndunand wants to merge 1 commit into
UbiCastTeam:mainfrom
ndunand:main

Conversation

@ndunand

@ndunand ndunand commented Nov 28, 2025

Copy link
Copy Markdown
Contributor

@sdiemer

Media located in the recycle bin (for instance when running on all channels from root channel) throw a HTTP 403 error on POST /api/v2/medias/resources-check/, therefore halting script execution.

I was unable to find out how to exclude the Recycle Bin channel so this is my solution.

@sdiemer

sdiemer commented Nov 28, 2025

Copy link
Copy Markdown
Member

Hello, I will update the script to ignore media from the recycle bin.

@sdiemer

sdiemer commented Dec 1, 2025

Copy link
Copy Markdown
Member

Hello,

I reworked the script to:

  • Avoid carrying all arguments in the functions to list videos.
  • Skip media from the recycle bin.

Commit: 322c636

The change is available in the main branch.

Regards

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants