diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-03-26 17:43:46 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-03-26 17:43:46 +0100 |
commit | 54607d704bcfc757fa2cdbe3f0154bc39e95194c (patch) | |
tree | 0d33f6c812c58cdf625a1ee042681aeca05e5e4e /src/plugins | |
parent | 8fc6edc4033c04de3cdc6a400976a019a35694b7 (diff) |
Fix soundcloud music duration if longer than 1 hour
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/Soundcloud.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/Soundcloud.cpp b/src/plugins/Soundcloud.cpp index 37538ed..3fcb3b8 100644 --- a/src/plugins/Soundcloud.cpp +++ b/src/plugins/Soundcloud.cpp @@ -30,6 +30,7 @@ namespace QuickMedia { std::string str; if(hours >= 1) { str = std::to_string(hours) + " hour" + (hours == 1 ? "" : "s"); + minutes -= (hours * 60); seconds -= (hours * 60 * 60); } |