Skip to content

Commit

Permalink
Try actually getting chapter times before checking whether there are …
Browse files Browse the repository at this point in the history
…any lmao
  • Loading branch information
faissaloo committed Oct 11, 2020
1 parent c06c12f commit b383d3b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sponskrub/sponskrub.d
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,12 @@ Options:
ChapterTime[] chapter_times;
ClipChapterTime[] new_chapter_times;

chapter_times = get_chapter_times(input_filename);

if (chapter_times.length == 0) {
chapter_times = [ChapterTime("0", video_length, "sponskrub-content")];
} else {
chapter_times = get_chapter_times(input_filename);
}

new_chapter_times = merge_sponsor_times_with_chapters(sponsor_times, chapter_times);

ffmpeg_status = add_ffmpeg_metadata(
Expand Down

0 comments on commit b383d3b

Please sign in to comment.