Revert "Subscription manager"

This reverts commit a612500b0f.
This commit is contained in:
Alex Ling
2021-06-07 07:32:32 +00:00
parent cd8944ed2d
commit 1973564272
14 changed files with 317 additions and 728 deletions

View File

@@ -107,25 +107,6 @@ macro get_sort_opt
end
end
# Returns an authorized client
def get_client(username : String) : MangaDex::Client
token, expires = Storage.default.get_md_token username
unless expires && token
raise "No token found for user #{username}"
end
client = MangaDex::Client.from_config
client.token = token
client.token_expires = expires
client
end
def get_client(env) : MangaDex::Client
get_client get_username env
end
module HTTP
class Client
private def self.exec(uri : URI, tls : TLSContext = nil)