Update Player Config Extraction expression

This commit is contained in:
Mattia 2020-10-17 14:56:23 +02:00
parent 03ab35260c
commit 9fb4c6ac2a
1 changed files with 1 additions and 1 deletions

View File

@ -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;