Closed IrvanFza closed 3 months ago
P.S.: This is the first time I read and write code in Rust, so please share your thoughts if the code is bad.
Hi! I've used a bit different approach but thanks anyway! The fix has been released in version 0.1.6
Today I have the same problem with credentials and I didn't understand which cookie to use, I tried them all without any success.
@theRedCount Can you elaborate? What kind of subscription you have (corporate, personal), give some logs. What cookies you used, how you passed them as cli args?
How i test cookie authorization - go to the website, login, open any book, look for request cookie, copy it all, run orly
orly --cookie "$(pbpaste)" <book_id>
This PR fixes the
SubscriptionExpired
error while the current subscription is still active. Turn out that when the subscription is still active, the response doesn't have acancellation_date
value. So I skip the entire expiration check ifcancellation_date
is empty.Active subscription response example:
Related discussion: https://github.com/hurlenko/orly/pull/5#issuecomment-1636152754