From 1fbf5ae2bb2e5dabdaf1bb1bea8d130b35f382c6 Mon Sep 17 00:00:00 2001 From: tkashkin Date: Mon, 6 Aug 2018 14:21:16 +0300 Subject: [PATCH] Trying to fix Humble Bundle access token extraction Former-commit-id: 3a8a79c4e1293a321ec3dc6c702ac3d40da5af8b --- data/com.github.tkashkin.gamehub.appdata.xml.in | 5 +++++ debian/changelog | 6 ++++++ meson.build | 2 +- src/data/sources/humble/Humble.vala | 4 ++-- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/data/com.github.tkashkin.gamehub.appdata.xml.in b/data/com.github.tkashkin.gamehub.appdata.xml.in index 59049a2e..fcd6a438 100644 --- a/data/com.github.tkashkin.gamehub.appdata.xml.in +++ b/data/com.github.tkashkin.gamehub.appdata.xml.in @@ -41,6 +41,11 @@ + + +

Trying to fix Humble Bundle access token extraction

+
+

Search crash fix and UI improvements

diff --git a/debian/changelog b/debian/changelog index 3506b7f9..9ff685a0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +com.github.tkashkin.gamehub (0.6.3) xenial; urgency=low + + * Trying to fix Humble Bundle access token extraction + + -- tkashkin Mon, 06 Aug 2018 12:20:11 +0300 + com.github.tkashkin.gamehub (0.6.2) xenial; urgency=low * Search crash fix and UI improvements diff --git a/meson.build b/meson.build index 99690716..3b1f7f60 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ -project('com.github.tkashkin.gamehub', 'vala', 'c', version: '0.6.2') +project('com.github.tkashkin.gamehub', 'vala', 'c', version: '0.6.3') i18n = import('i18n') gnome = import('gnome') diff --git a/src/data/sources/humble/Humble.vala b/src/data/sources/humble/Humble.vala index f3604a0f..24a6670f 100644 --- a/src/data/sources/humble/Humble.vala +++ b/src/data/sources/humble/Humble.vala @@ -69,9 +69,9 @@ namespace GameHub.Data.Sources.Humble wnd.finished.connect(token => { - user_token = token; + user_token = token.replace("\"", ""); settings.access_token = user_token ?? ""; - debug("[Auth] Humble access token: %s", token); + debug("[Auth] Humble access token: %s", user_token); Idle.add(get_token.callback); });