diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-06-19 14:10:44 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-06-19 14:10:44 +0200 |
commit | ca875b39ac35ac1499c303672f7217e2a7bbcab1 (patch) | |
tree | a12e6568173aecab3ff79b9804c980f86934054b /src/VideoPlayer.cpp | |
parent | 5ec1811fa7499386f324f13a3a49dbe7d8ea6741 (diff) |
Fix youtube audio download downloading video when not needed
Diffstat (limited to 'src/VideoPlayer.cpp')
-rw-r--r-- | src/VideoPlayer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/VideoPlayer.cpp b/src/VideoPlayer.cpp index 1d854de..caeaa15 100644 --- a/src/VideoPlayer.cpp +++ b/src/VideoPlayer.cpp @@ -28,7 +28,7 @@ namespace QuickMedia { result += "[CHAPTER]\n"; result += "TIMEBASE=1/1\n"; result += "START=" + std::to_string(chapter.start_seconds) + "\n"; - result += "END=" + std::to_string(i + 1 == chapters.size() ? chapter.start_seconds : chapters[i].start_seconds) + "\n"; + result += "END=" + std::to_string(i + 1 == chapters.size() ? chapter.start_seconds : chapters[i + 1].start_seconds) + "\n"; std::string title = chapter.title; string_replace_all(title, '\n', ' '); result += "title=" + std::move(title) + "\n\n"; |