From 2bb0e7a0f2cec42759875d78f8edd751ce049de4 Mon Sep 17 00:00:00 2001 From: Gordon Shumway Date: Sun, 23 Feb 2020 19:18:41 -0500 Subject: [PATCH] SpiffyTitles: strip arguments from dai.ly URLs --- SpiffyTitles/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpiffyTitles/plugin.py b/SpiffyTitles/plugin.py index c813ab0..77a8a56 100644 --- a/SpiffyTitles/plugin.py +++ b/SpiffyTitles/plugin.py @@ -134,7 +134,7 @@ class SpiffyTitles(callbacks.Plugin): if dailymotion_handler_enabled and "/video/" in info.path: video_id = info.path.lstrip("/video/").split("_")[0] elif dailymotion_handler_enabled and "dai.ly" in url: - video_id = url.split("/")[-1] + video_id = url.split("/")[-1].split("?")[0] if video_id is not None: fields = "id,title,owner.screenname,duration,views_total"