Use `session_token` for search page requests
This commit is contained in:
parent
fc516fb702
commit
ad2db4c3bb
|
@ -93,7 +93,7 @@ class SearchPage {
|
||||||
if (xsrfToken != null) {
|
if (xsrfToken != null) {
|
||||||
body = {'session_token': xsrfToken};
|
body = {'session_token': xsrfToken};
|
||||||
}
|
}
|
||||||
var raw = await httpClient.postString(url);
|
var raw = await httpClient.postString(url, body: body);
|
||||||
if (ctoken != null) {
|
if (ctoken != null) {
|
||||||
return SearchPage(
|
return SearchPage(
|
||||||
null, queryString, _InitialData(json.decode(raw)[1]), xsrfToken);
|
null, queryString, _InitialData(json.decode(raw)[1]), xsrfToken);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: youtube_explode_dart
|
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.
|
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
|
homepage: https://github.com/Hexer10/youtube_explode_dart
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in New Issue