Fix string interpolation to support python2

This commit is contained in:
“Mr 2022-10-25 20:14:03 +01:00
parent 5ca7aa4286
commit f0897a7581

View File

@ -22,7 +22,7 @@ class RecurbateIE(InfoExtractor):
title = self._html_search_regex(r'<title>(.+?)</title>', webpage, 'title') title = self._html_search_regex(r'<title>(.+?)</title>', webpage, 'title')
token = self._html_search_regex(r'data-token=(.+?")', webpage, 'play_button').strip("\"") token = self._html_search_regex(r'data-token=(.+?")', webpage, 'play_button').strip("\"")
get_url = f"https://recurbate.com/api/get.php?video={video_id}&token={token}" get_url = "https://recurbate.com/api/get.php?video={}&token={}".format(video_id, token)
video_webpage = self._download_webpage(get_url, video_id) video_webpage = self._download_webpage(get_url, video_id)
real_url = self._html_search_regex(r'<source src=(.+?) type=\"video\/mp4\"', video_webpage, 'mp4video').strip("\"") real_url = self._html_search_regex(r'<source src=(.+?) type=\"video\/mp4\"', video_webpage, 'mp4video').strip("\"")