From 0a3b7bd7d84fd0622fdca01413d8a82f57d44fe3 Mon Sep 17 00:00:00 2001 From: Ritiek Malhotra Date: Sat, 26 May 2018 13:37:14 +0530 Subject: [PATCH] Pass correct arguments when retrying to fetch videotime (#277) --- core/youtube_tools.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/youtube_tools.py b/core/youtube_tools.py index 3ed03b0..a65c1da 100644 --- a/core/youtube_tools.py +++ b/core/youtube_tools.py @@ -187,9 +187,7 @@ class GenerateYouTubeURL: videotime = x.find('span', class_="video-time").get_text() except AttributeError: log.debug('Could not find video duration on YouTube, retrying..') - return self.scrape(self.raw_song, - self.meta_tags, - tries_remaining=tries_remaining-1) + return self.scrape(bestmatch=bestmatch, tries_remaining=tries_remaining-1) youtubedetails = {'link': link, 'title': title, 'videotime': videotime, 'seconds': internals.get_sec(videotime)}