1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-10 06:57:17 +08:00

fixed compatibily error

This commit is contained in:
nimeir 2019-03-26 22:09:50 +00:00
parent 35dfca43ea
commit 16843103e1

View File

@ -19,7 +19,7 @@ class TvPleIE(InfoExtractor):
def _real_extract(self, url):
video_id = re.findall('\d.+', url)
webpage = self._download_webpage(url, video_id)
title = re.findall(u'<title>(.+)<\/title>', webpage)
title = re.findall(r'<title>(.+)<\/title>', webpage)
api_request_url = re.findall(r'(http:\/\/api\.tvple\.com\/v1.*?)"', webpage)
api_page = self._download_webpage(api_request_url[0], video_id)
urlh = re.findall(r'(http:\/\/media.*?)"', api_page)