[Breaking] Change audios/ to audio/
This commit is contained in:
parent
c54b12e2b1
commit
6a33095635
8
nova.py
8
nova.py
|
@ -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"
|
||||
)
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue