Skip to content

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

Closed
ndunand wants to merge 1 commit intoUbiCastTeam:mainfrom
ndunand:main
Closed

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

Conversation

@ndunand
Copy link
Contributor

@ndunand ndunand commented Nov 28, 2025

@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
Copy link
Member

sdiemer commented Nov 28, 2025

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

@sdiemer
Copy link
Member

sdiemer commented Dec 1, 2025

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 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.

2 participants