SpiffyTitles: strip arguments from dai.ly URLs

This commit is contained in:
Gordon Shumway 2020-02-23 19:18:41 -05:00 committed by GitHub
parent f17b34453b
commit 2bb0e7a0f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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"