Skip to content

Commit

Permalink
update ytplayer regex
Browse files Browse the repository at this point in the history
  • Loading branch information
vmirage authored and kolsys committed Sep 6, 2020
1 parent 624bc74 commit 93c231d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Contents/Services/Shared Code/video.pys
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ USER_AGENT = (
'Mobile/11B554a Safari/9537.54'
)

RE_DATA = Regex('ytplayer.config\s*=\s*({(?:.+)});\s*ytplayer.load\s*=')
RE_DATA = Regex('ytplayer.config\s*=\s*({(?:.+)});\s*(?:ytplayer.web_player_context_config|ytplayer.load)\s*=')


def GetServiceURL(vid, token='', hl=''):
Expand Down

0 comments on commit 93c231d

Please sign in to comment.