Skip to content

Commit

Permalink
fix: fix upload break (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
timerring authored Dec 27, 2024
1 parent 55561d9 commit a1d9be8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/burn/generate_danmakus.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ def process_danmakus(in_xml_path, resolution):
in_ass_path = in_xml_path[:-4] + '.ass'
if resolution == '1280x720':
boxsize = '500x720'
boxfont = '18'
boxfont = '23'
danmakufont = '38'
subtitle_font_size = '15'
subtitle_margin_v = '40'
subtitle_margin_v = '20'
elif resolution == '1920x1080':
boxsize = '500x1080'
boxfont = '50'
Expand Down
10 changes: 5 additions & 5 deletions src/upload/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ def upload_video(upload_path, yaml_file_path):
os.remove(upload_path)
else:
print("Fail to upload, the files will be reserved.")
sys.exit(1)
return False

except subprocess.CalledProcessError:
print("Fail to upload, the files will be reserved.")
sys.exit(1)
return False

def find_bv_number(target_str, my_list):
for element in my_list:
Expand Down Expand Up @@ -107,7 +107,7 @@ def read_append_and_delete_lines(file_path):

except subprocess.CalledProcessError:
print("Fail to upload, the files will be reserved.")
sys.exit(1)
return False

def append_upload(upload_path, bv_result):
try:
Expand All @@ -130,11 +130,11 @@ def append_upload(upload_path, bv_result):
os.remove(upload_path)
else:
print("Fail to upload, the files will be reserved.")
sys.exit(1)
return False

except subprocess.CalledProcessError:
print("Fail to upload, the files will be reserved.")
sys.exit(1)
return False

if __name__ == "__main__":
# read the queue and upload the video
Expand Down

0 comments on commit a1d9be8

Please sign in to comment.