update extra '\' in pattern

http://www.douyu.com/t/lpl  source get extra '\' with "room_id\" (from js coding)
This commit is contained in:
Justsoos 2017-02-01 21:30:01 +08:00 committed by GitHub
parent 2b2d5d319b
commit a1031ac14b

View File

@ -82,7 +82,7 @@ class DouyuTVIE(InfoExtractor):
else:
page = self._download_webpage(url, video_id)
room_id = self._html_search_regex(
r'"room_id"\s*:\s*(\d+),', page, 'room id')
r'"room_id\\*"\s*:\s*(\d+),', page, 'room id')
room = self._download_json(
'http://m.douyu.com/html5/live?roomId=%s' % room_id, video_id,