aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/Youtube.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/Youtube.cpp b/src/plugins/Youtube.cpp
index 5799a98..e5e721c 100644
--- a/src/plugins/Youtube.cpp
+++ b/src/plugins/Youtube.cpp
@@ -1799,8 +1799,11 @@ R"END(
static void youtube_url_remove_timestamp(std::string &url, std::string &timestamp) {
size_t timestamp_start = url.find("&t=");
- if(timestamp_start == std::string::npos)
- return;
+ if(timestamp_start == std::string::npos) {
+ timestamp_start = url.find("?t=");
+ if(timestamp_start == std::string::npos)
+ return;
+ }
size_t timestamp_end = url.find("&", timestamp_start + 3);
if(timestamp_end == std::string::npos)