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

bbb-record --delete/--rebuild/--deleteall ignores "video" folder #77

Open
pielonet opened this issue Apr 14, 2022 · 1 comment
Open
Labels
bug Something isn't working

Comments

@pielonet
Copy link

Hi,

Although BBB API's getRecordings call lists mp4 recordings of type "video" present in subfolders of /var/bigbluebutton/published/video/, BBB script bbb-record ignores this folder and actions like bbb-record --deleteall do not delete subfolders of this folder. This leads to BBB API falsly listing recordings that the administrator thought he/she had deleted.

It looks like bbb-record expects to find a file named video.rb in folder /usr/local/bigbluebutton/core/scripts/process in order to take the "video" format into account for rebuilding or deleting files, as referenced here : https://github.com/bigbluebutton/bigbluebutton/blob/e905d08f3db596e81ce1006b58baeaef35665496/bigbluebutton-config/bin/bbb-record#L87

Could you please take action with the developers of BigBlueButton to fix this inconsistency ?
This is all the more annoying that my personal scripts rely on the results of BBB API to determine if a BBB server still has remaining recordings.

Kind regards,
Thierry

@danielpetri1
Copy link
Owner

Hi Thierry,
thanks for reporting this inconsistency on this repo as well. I'll be in touch with BBB developers to hopefully implement this script as a proper format.

I think a dirty fix for DELETEALL would be manually adding
rm -rf "${PUBLISHED_DIR:?}"/video/*
on this line:
https://github.com/bigbluebutton/bigbluebutton/blob/e905d08f3db596e81ce1006b58baeaef35665496/bigbluebutton-config/bin/bbb-record#L460

Similarly, for delete:
rm -rf "${PUBLISHED_DIR:?}"/video/"$MEETING_ID"*
On line
https://github.com/bigbluebutton/bigbluebutton/blob/e905d08f3db596e81ce1006b58baeaef35665496/bigbluebutton-config/bin/bbb-record#L427

Hope this helps for now.
Daniel

@danielpetri1 danielpetri1 added the bug Something isn't working label Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants