mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 02:42:30 +00:00
[channel9] strip 'session_day'
This commit is contained in:
parent
b30c4992a9
commit
506e261d20
@ -158,7 +158,7 @@ def _extract_session_code(self, html):
|
|||||||
|
|
||||||
def _extract_session_day(self, html):
|
def _extract_session_day(self, html):
|
||||||
m = re.search(r'<li class="day">\s*<a href="/Events/[^"]+">(?P<day>[^<]+)</a>\s*</li>', html)
|
m = re.search(r'<li class="day">\s*<a href="/Events/[^"]+">(?P<day>[^<]+)</a>\s*</li>', html)
|
||||||
return m.group('day') if m is not None else None
|
return m.group('day').strip() if m is not None else None
|
||||||
|
|
||||||
def _extract_session_room(self, html):
|
def _extract_session_room(self, html):
|
||||||
m = re.search(r'<li class="room">\s*(?P<room>.+?)\s*</li>', html)
|
m = re.search(r'<li class="room">\s*(?P<room>.+?)\s*</li>', html)
|
||||||
|
Loading…
Reference in New Issue
Block a user