From: Sergey M․ Date: Mon, 29 Jun 2015 16:21:09 +0000 (+0600) Subject: [hentaistigma] Modernize X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=cf386750c9194839e419a0412f45f25f28236c77;p=youtube-dl [hentaistigma] Modernize --- diff --git a/youtube_dl/extractor/hentaistigma.py b/youtube_dl/extractor/hentaistigma.py index 225af8cb3..f5aa73d18 100644 --- a/youtube_dl/extractor/hentaistigma.py +++ b/youtube_dl/extractor/hentaistigma.py @@ -1,7 +1,5 @@ from __future__ import unicode_literals -import re - from .common import InfoExtractor @@ -19,20 +17,19 @@ class HentaiStigmaIE(InfoExtractor): } def _real_extract(self, url): - mobj = re.match(self._VALID_URL, url) - video_id = mobj.group('id') + video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) title = self._html_search_regex( - r'

]*>([^<]+)', + r']+class="posttitle"[^>]*>]*>([^<]+)', webpage, 'title') wrap_url = self._html_search_regex( - r'