Updated license error note to reflect next steps
This commit is contained in:
@@ -7,7 +7,7 @@ from config import annex,circulation,archive
|
|||||||
|
|
||||||
AudioSegment.converter = "/opt/homebrew/Cellar/ffmpeg/5.1.2_3/bin/ffmpeg"
|
AudioSegment.converter = "/opt/homebrew/Cellar/ffmpeg/5.1.2_3/bin/ffmpeg"
|
||||||
AudioSegment.ffmpeg = "/opt/homebrew/Cellar/ffmpeg/5.1.2_3/bin/ffmpeg"
|
AudioSegment.ffmpeg = "/opt/homebrew/Cellar/ffmpeg/5.1.2_3/bin/ffmpeg"
|
||||||
AudioSegment.ffprobe ="/opt/homebrew/Cellar/ffmpeg/5.1.2_3/bin/ffmpeg"
|
AudioSegment.ffprobe ="/opt/homebrew/Cellar/ffmpeg/5.1.2_3/bin/ffmpeg"
|
||||||
|
|
||||||
def export_audio_file(start, end, name):
|
def export_audio_file(start, end, name):
|
||||||
start_ms = int(start)
|
start_ms = int(start)
|
||||||
@@ -18,6 +18,7 @@ def export_audio_file(start, end, name):
|
|||||||
author_name = folder.split(" - ")[0].strip()
|
author_name = folder.split(" - ")[0].strip()
|
||||||
export_folder = os.path.join(destination_path, author_name, folder_name)
|
export_folder = os.path.join(destination_path, author_name, folder_name)
|
||||||
author_folder = os.path.join(destination_path, author_name)
|
author_folder = os.path.join(destination_path, author_name)
|
||||||
|
|
||||||
'''If an author folder doesn't already exist it makes one'''
|
'''If an author folder doesn't already exist it makes one'''
|
||||||
if not os.path.exists(author_folder):
|
if not os.path.exists(author_folder):
|
||||||
os.makedirs(author_folder)
|
os.makedirs(author_folder)
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@ do
|
|||||||
|
|
||||||
# Check if the output contains the specific LicenseError message
|
# Check if the output contains the specific LicenseError message
|
||||||
if echo "$output" | grep -q "<ErrorCode>1003</ErrorCode>"; then
|
if echo "$output" | grep -q "<ErrorCode>1003</ErrorCode>"; then
|
||||||
echo "License error detected for file: $file"
|
echo "License error detected for file: $file. Redownload the ODM."
|
||||||
echo "$output" # Optionally log this output to a file
|
echo "$output" # Optionally log this output to a file
|
||||||
break # Break out of the while loop and skip this file
|
break # Break out of the while loop and skip this file
|
||||||
elif [ $exit_status -eq 0 ]; then
|
elif [ $exit_status -eq 0 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user