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 {
|
class EmbedPage {
|
||||||
static final _playerConfigExp =
|
static final _playerConfigExp =
|
||||||
RegExp(r"yt\.setConfig\({.*?'PLAYER_CONFIG':(.*?)}");
|
RegExp(r"'PLAYER_CONFIG':\s*(\{.*\})\}");
|
||||||
final Document _root;
|
final Document _root;
|
||||||
_PlayerConfig _playerConfig;
|
_PlayerConfig _playerConfig;
|
||||||
String __playerConfigJson;
|
String __playerConfigJson;
|
||||||
|
|
Loading…
Reference in New Issue