fix write/read scenes to file

This commit is contained in:
Zen 2021-05-30 23:30:56 +03:00
parent a8f5315c63
commit cbd3305fdf

View file

@ -49,7 +49,9 @@ def split_routine(project: Project, resuming: bool) -> List[int]:
# determines split frames with pyscenedetect or aom keyframes
scenes = calc_split_locations(project)
if project.scenes and Path(project.scenes).exists():
write_scenes_to_file(scenes, project.get_frames(), Path(project.scenes))
write_scenes_to_file(
scenes, project.get_frames(), str(Path(project.scenes).resolve())
)
# Write internal scenes
write_scenes_to_file(scenes, project.get_frames(), str(scene_file.resolve()))
@ -125,6 +127,8 @@ def calc_split_locations(project: Project) -> List[int]:
# Write scenes to file
if project.scenes:
write_scenes_to_file(sc, project.get_frames(), project.scenes)
write_scenes_to_file(
sc, project.get_frames(), str(Path(project.scenes).resolve())
)
return sc