Use `session_token` for search page requests

This commit is contained in:
Hexah 2020-06-16 22:23:59 +02:00
parent fc516fb702
commit ad2db4c3bb
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ class SearchPage {
if (xsrfToken != null) {
body = {'session_token': xsrfToken};
}
var raw = await httpClient.postString(url);
var raw = await httpClient.postString(url, body: body);
if (ctoken != null) {
return SearchPage(
null, queryString, _InitialData(json.decode(raw)[1]), xsrfToken);

View File

@ -1,6 +1,6 @@
name: youtube_explode_dart
description: A port in dart of the youtube explode library. Supports several API functions without the need of Youtube API Key.
version: 1.2.0
version: 1.2.0+2
homepage: https://github.com/Hexer10/youtube_explode_dart
environment: