Update Player Config Extraction expression
This commit is contained in:
parent
03ab35260c
commit
9fb4c6ac2a
|
@ -10,7 +10,7 @@ import '../youtube_http_client.dart';
|
|||
///
|
||||
class EmbedPage {
|
||||
static final _playerConfigExp =
|
||||
RegExp(r"yt\.setConfig\({.*?'PLAYER_CONFIG':(.*?)}");
|
||||
RegExp(r"'PLAYER_CONFIG':\s*(\{.*\})\}");
|
||||
final Document _root;
|
||||
_PlayerConfig _playerConfig;
|
||||
String __playerConfigJson;
|
||||
|
|
Loading…
Reference in New Issue