[Breaking] Change audios/ to audio/

This commit is contained in:
Ceda EI 2020-01-26 07:30:02 +05:30
parent c54b12e2b1
commit 6a33095635
1 changed files with 4 additions and 4 deletions

View File

@ -66,7 +66,7 @@ class EpisodeList(UserList):
# Create the required directories
paths = [
"assets",
"assets/audios",
"assets/audio",
"assets/videos",
]
for directory in paths:
@ -80,7 +80,7 @@ class EpisodeList(UserList):
gen_name(episode.date, episode.slug) + ".jpg")
video = (self.output + "assets/videos/" +
gen_name(episode.date, episode.slug) + ".mp4")
audio = (self.output + "assets/audios/" +
audio = (self.output + "assets/audio/" +
gen_name(episode.date, episode.slug) + ".mp3")
shutil.copy2(episode.video, video)
shutil.copy2(episode.audio, audio)
@ -133,7 +133,7 @@ def main():
input_dir,
input_dir + "md",
input_dir + "videos",
input_dir + "audios",
input_dir + "audio",
]
if not all(path.isdir(i) for i in paths):
print("Invalid Input", file=sys.stderr)
@ -172,7 +172,7 @@ def main():
title,
show_notes,
input_dir + "videos/" + gen_name(date, slug) + ".mp4",
input_dir + "audios/" + gen_name(date, slug) + ".mp3"
input_dir + "audio/" + gen_name(date, slug) + ".mp3"
)
)