Skip to content
This repository has been archived by the owner on Apr 3, 2021. It is now read-only.

Commit

Permalink
Update dependencies and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
omarroth committed Mar 10, 2020
1 parent f7277bf commit ddf8737
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: audible
version: 0.2.3
version: 0.2.4

authors:
- Omar Roth <omarroth@protonmail.com>
Expand All @@ -8,7 +8,9 @@ dependencies:
openssl_ext:
github: randomstate/openssl_ext
branch: master
readline:
github: crystal-lang/crystal-readline

crystal: 0.31.1
crystal: 0.33.0

license: AGPLv3
4 changes: 2 additions & 2 deletions src/audible.cr
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

require "http/client"
require "http"
require "json"
require "readline"
require "uri"
require "xml"
require "./audible/*"

Expand Down Expand Up @@ -247,6 +246,7 @@ module Audible
if response.status_code == 302
map_landing = HTTP::Params.parse(URI.parse(response.headers["Location"]).query.not_nil!)

raise "Unable to login. Invalid URI: #{response.headers["Location"]}" if !map_landing["openid.oa2.access_token"]?
@access_token = map_landing["openid.oa2.access_token"]
@login_cookies = {} of String => String

Expand Down

0 comments on commit ddf8737

Please sign in to comment.