Skip to content

Commit 29ea0e0

Browse files
authored
refactor: pre production version (#86)
1 parent 0e307d9 commit 29ea0e0

23 files changed

+17
-38
lines changed

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ pnpm-lock.yaml
2525
package-lock.json
2626

2727
# Ignore the biliup folder
28-
upload/config/*
29-
!upload/config/1234567.yaml
30-
!upload/config/upload_config.json
31-
!upload/uploadVideoQueue.txt
28+
src/uploadProcess/config/*
29+
!src/uploadProcess/config/1234567.yaml
30+
!src/uploadProcess/config/upload_config.json
31+
!src/uploadProcess/uploadVideoQueue.txt
3232

3333
# Ignore the production
3434
startRecord-production.sh

src/bilive_upload/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/burnAndMerge.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ while read -r line; do
2222
xmlFile=${line%.mp4}.xml
2323
assFile=${line%.mp4}.ass
2424
if [ -f "$xmlFile" ]; then
25-
$BILIVE_PATH/utils/DanmakuFactory -o "$assFile" -i "$xmlFile" --msgboxfontsize 23 --ignore-warnings
25+
$BILIVE_PATH/src/utils/DanmakuFactory -o "$assFile" -i "$xmlFile" --msgboxfontsize 30 --msgboxsize 400x1000 --ignore-warnings
2626
echo "==================== generated $assFile ===================="
2727
export ASS_PATH="$assFile"
28-
python3 $BILIVE_PATH/utils/removeEmojis.py >> $BILIVE_PATH/logs/removeEmojis.log 2>&1
28+
python3 $BILIVE_PATH/src/utils/removeEmojis.py >> $BILIVE_PATH/logs/removeEmojis.log 2>&1
2929
fi
3030

3131
# Initial some basic parameters and create tmp folder
@@ -67,5 +67,5 @@ rm -r $tmpDir
6767
rm mergevideo.txt
6868

6969
echo "==================== start upload $firstOutputFile ===================="
70-
echo "$firstOutputFile" >> $BILIVE_PATH/upload/uploadVideoQueue.txt
70+
echo "$firstOutputFile" >> $BILIVE_PATH/src/uploadProcess/uploadVideoQueue.txt
7171
echo "==================== OVER ===================="

src/danmakuBurning.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ assPath="${path}/${roomid}_${year}-${month}-${day}-${hour}.ass"
4747
# use DanmakuFactory to convert the xml file
4848
xmlPath="${filenameWithoutExt}.xml"
4949
if [ -f "$xmlPath" ]; then
50-
$BILIVE_PATH/utils/DanmakuFactory -o "$assPath" -i "$xmlPath" --msgboxfontsize 23 --ignore-warnings
50+
$BILIVE_PATH/src/utils/DanmakuFactory -o "$assPath" -i "$xmlPath" --msgboxfontsize 30 --ignore-warnings
5151
rm $xmlPath
5252
echo “danmaku convert success!
5353
export ASS_PATH="$assPath"
54-
python3 $BILIVE_PATH/utils/removeEmojis.py >> $BILIVE_PATH/logs/removeEmojis.log 2>&1
54+
python3 $BILIVE_PATH/src/utils/removeEmojis.py >> $BILIVE_PATH/logs/removeEmojis.log 2>&1
5555
fi
5656

5757
# Burn danmaku into video.
@@ -74,4 +74,4 @@ echo "ffmpeg successfully complete!"
7474
rm $fullPath
7575

7676
# Upload video.
77-
echo "$formatVideoName" >> $BILIVE_PATH/upload/uploadVideoQueue.txt
77+
echo "$formatVideoName" >> $BILIVE_PATH/src/uploadProcess/uploadVideoQueue.txt
File renamed without changes.

src/bilive_upload/bilibiliuploader/bilibiliuploader.py renamed to src/uploadProcess/bilibiliuploader/bilibiliuploader.py

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)