1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-09 08:12:50 +08:00

[sevenplus] make season regex more flexibel and non-fatal

This commit is contained in:
Kay B 2018-03-18 21:17:39 +01:00
parent 4db05564b4
commit 815f538c6c

View File

@ -3,7 +3,6 @@ from __future__ import unicode_literals
import re
from .common import InfoExtractor
from .brightcove import BrightcoveNewIE
from ..utils import update_url_query
@ -82,6 +81,6 @@ class SevenPlusIE(BrightcoveNewIE):
info[dst_key] = value
webpage = self._download_webpage(url, episode_id)
info['series'] = self._search_regex(r'<title>([^>|]+) | 7plus</title>', webpage, 'title')
info['series'] = self._search_regex(r'<title>(.+?) +\| +7 ?[pP]lus ?</title>', webpage, 'title', fatal=False)
return info