Skip to content

Commit

Permalink
Merge pull request #146 from herowinb/master
Browse files Browse the repository at this point in the history
Fix cannot get ytInitialPlayerResponse data in Youtube membership stream
  • Loading branch information
xenova committed Apr 30, 2022
2 parents ef68e28 + a46de54 commit 25e3627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chat_downloader/sites/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def __init__(self, **kwargs):
}
]

_YT_INITIAL_BOUNDARY_RE = r'\s*(?:var\s+meta|</script|\n)'
_YT_INITIAL_BOUNDARY_RE = r'\s*(?:var\s+(?:meta|head)|</script|\n)'
_YT_INITIAL_DATA_RE = r'(?:window\s*\[\s*["\']ytInitialData["\']\s*\]|ytInitialData)\s*=\s*({.+?})\s*;' + \
_YT_INITIAL_BOUNDARY_RE
_YT_INITIAL_PLAYER_RESPONSE_RE = r'ytInitialPlayerResponse\s*=\s*({.+?})\s*;' + \
Expand Down

0 comments on commit 25e3627

Please sign in to comment.