[unauthorizedtv] Fix flake8 warnings

This commit is contained in:
Kevin G 2019-06-09 03:19:19 -07:00
parent bf09740f89
commit 31043fca5c

View File

@ -3,10 +3,6 @@ from __future__ import unicode_literals
from .common import InfoExtractor from .common import InfoExtractor
from ..compat import (
compat_str,
)
class UnauthorizedTvIE(InfoExtractor): class UnauthorizedTvIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?unauthorized\.tv/programs/.*?cid=(?P<id>\d+)' _VALID_URL = r'https?://(?:www\.)?unauthorized\.tv/programs/.*?cid=(?P<id>\d+)'
@ -23,8 +19,6 @@ class UnauthorizedTvIE(InfoExtractor):
def _real_extract(self, url): def _real_extract(self, url):
video_id = self._match_id(url) video_id = self._match_id(url)
program = url[url.rfind("/")+1:url.find("?cid=")]
html = self._download_webpage(url, video_id) html = self._download_webpage(url, video_id)
csrf_token = self._html_search_meta('csrf-token', html, 'csrf token', default=None) csrf_token = self._html_search_meta('csrf-token', html, 'csrf token', default=None)