Sane variable naming

This commit is contained in:
theGeekPirate 2016-03-26 14:47:06 -07:00
parent 982246052e
commit 7f9994ad04

View File

@ -36,9 +36,9 @@ class CamWithHerIE(InfoExtractor):
] ]
def _real_extract(self, url): def _real_extract(self, url):
url = self._download_webpage(url, '') webpage = self._download_webpage(url, '')
video_id = self._html_search_regex(r'<a href="/download/\?v=(.+?)\.', url, 'id') video_id = self._html_search_regex(r'<a href="/download/\?v=(.+?)\.', webpage, 'id')
if int(video_id) > 2010: if int(video_id) > 2010:
rtmp_url = 'rtmp://camwithher.tv/clipshare/mp4:' + video_id + '.mp4' rtmp_url = 'rtmp://camwithher.tv/clipshare/mp4:' + video_id + '.mp4'
@ -47,7 +47,7 @@ class CamWithHerIE(InfoExtractor):
rtmp_url = 'rtmp://camwithher.tv/clipshare/' + video_id rtmp_url = 'rtmp://camwithher.tv/clipshare/' + video_id
ext = 'flv' ext = 'flv'
title = self._html_search_regex(r'<div style="float:left">\s+<h2>(.+?)</h2>', url, 'title') title = self._html_search_regex(r'<div style="float:left">\s+<h2>(.+?)</h2>', webpage, 'title')
return { return {
'id': video_id, 'id': video_id,