Merge pull request #10840 from lkiesow/bbb-record-style
Style of bbb-record
This commit is contained in:
commit
6b4710e349
@ -297,17 +297,6 @@ while [ $# -gt 0 ]; do
|
||||
continue
|
||||
fi
|
||||
|
||||
# if [ "$1" = "-rearchive" -o "$1" = "--rearchive" ]; then
|
||||
# need_root
|
||||
# if [ ! -z "${2}" ]; then
|
||||
# MEETING_ID="${2}"
|
||||
# shift
|
||||
# fi
|
||||
# REARCHIVE=1
|
||||
# shift
|
||||
# continue
|
||||
# fi
|
||||
|
||||
usage
|
||||
exit 1
|
||||
done
|
||||
@ -428,43 +417,43 @@ fi
|
||||
|
||||
if [ $LIST ]; then
|
||||
|
||||
# Does the meeting contain:
|
||||
# A -- Audio
|
||||
# P -- Presentation
|
||||
# V -- Video
|
||||
# D -- Desktop
|
||||
#
|
||||
# Does the archive contain
|
||||
# A -- Audio
|
||||
# P -- Presentation
|
||||
# V -- Video
|
||||
# D -- Desktop
|
||||
# E -- Events
|
||||
#
|
||||
# Is there a done flag (trigger rap-worker.rb to process) for
|
||||
# R -- Recording
|
||||
# A -- Archiving
|
||||
#
|
||||
# Does the meeting contain:
|
||||
# A -- Audio
|
||||
# P -- Presentation
|
||||
# V -- Video
|
||||
# D -- Desktop
|
||||
#
|
||||
# Does the archive contain
|
||||
# A -- Audio
|
||||
# P -- Presentation
|
||||
# V -- Video
|
||||
# D -- Desktop
|
||||
# E -- Events
|
||||
#
|
||||
# Is there a done flag (trigger rap-worker.rb to process) for
|
||||
# R -- Recording
|
||||
# A -- Archiving
|
||||
#
|
||||
|
||||
if [ $WITHDESC ]; then
|
||||
if [ $WITHDESC ]; then
|
||||
echo "Internal MeetingID Time APVD APVDE RAS Slides Processed Published External MeetingID Description"
|
||||
echo "------------------------------------------------------ ---------------------------- ---- ----- --- ------ -------------------- ------------------ ------------------- -----------"
|
||||
else
|
||||
else
|
||||
echo "Internal MeetingID Time APVD APVDE RAS Slides Processed Published External MeetingID"
|
||||
echo "------------------------------------------------------ ---------------------------- ---- ----- --- ------ -------------------- ------------------ -------------------"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z $HEAD ]; then
|
||||
if [ -z $HEAD ]; then
|
||||
# If we're not called with --list-recent, show all recordings
|
||||
HEAD=99999
|
||||
fi
|
||||
fi
|
||||
|
||||
tmp_file=$(mktemp)
|
||||
ls -t /var/bigbluebutton | grep "^[0-9a-f]\{40\}-[[:digit:]]\{13\}$" | head -n $HEAD > $tmp_file
|
||||
ls -t /var/bigbluebutton/recording/raw | grep "^[0-9a-f]\{40\}-[[:digit:]]\{13\}$" | head -n $HEAD >> $tmp_file
|
||||
tmp_file=$(mktemp)
|
||||
ls -t /var/bigbluebutton | grep "^[0-9a-f]\{40\}-[[:digit:]]\{13\}$" | head -n $HEAD > $tmp_file
|
||||
ls -t /var/bigbluebutton/recording/raw | grep "^[0-9a-f]\{40\}-[[:digit:]]\{13\}$" | head -n $HEAD >> $tmp_file
|
||||
|
||||
#for meeting in $(ls -t /var/bigbluebutton | grep "^[0-9a-f]\{40\}-[[:digit:]]\{13\}$" | head -n $HEAD); do
|
||||
for meeting in $(cat $tmp_file | sort -t - -k 2 -r| uniq); do
|
||||
#for meeting in $(ls -t /var/bigbluebutton | grep "^[0-9a-f]\{40\}-[[:digit:]]\{13\}$" | head -n $HEAD); do
|
||||
for meeting in $(cat $tmp_file | sort -t - -k 2 -r| uniq); do
|
||||
echo -n "$meeting"
|
||||
timestamp=$(echo $meeting | sed s/.*-//g)
|
||||
epoc=$(($timestamp/1000))
|
||||
@ -509,8 +498,8 @@ for meeting in $(cat $tmp_file | sort -t - -k 2 -r| uniq); do
|
||||
echo -n " "
|
||||
fi
|
||||
|
||||
#echo "## $RAW_SCREENSHARE_SRC/$meeting-*.flv"
|
||||
#exit
|
||||
#echo "## $RAW_SCREENSHARE_SRC/$meeting-*.flv"
|
||||
#exit
|
||||
#
|
||||
# Check if there is any recorded desktop sharing
|
||||
if ls -A $RAW_SCREENSHARE_SRC/$meeting/*.flv &> /dev/null; then
|
||||
@ -619,9 +608,9 @@ for meeting in $(cat $tmp_file | sort -t - -k 2 -r| uniq); do
|
||||
fi
|
||||
fi
|
||||
|
||||
fi
|
||||
fi
|
||||
echo
|
||||
done
|
||||
done
|
||||
if [ -f $tmp_file ]; then
|
||||
rm $tmp_file
|
||||
fi
|
||||
@ -728,6 +717,7 @@ if [ $CHECK ]; then
|
||||
echo
|
||||
fi
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
if [ $DEBUG ]; then
|
||||
@ -829,6 +819,5 @@ if [ $DEBUG ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
exit 0
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user