-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
License not granted to customer [xxxxxxxxxxxxxx] for asin [YYYYYYY] #118
Comments
Can you try the How discussed in #115 this could be items which are not released yet? Maybe it could be a rate limit too. |
So you have the asin of the books? And your marketplace? |
Can you give me the output of the following command And maybe you run the download command with debug messages |
when adding -v DEBUG flag.... |
That looks inconspicuous. Can you try |
|
Thank you. The streaming license is granted but the download license not. Maybe there are two reasons for this:
Can you download this item via the Audible App for mobile device or PC? |
I have tried to download from mobile app. it does nothing, with that audiobook, or any of the ones that I have previously download. Its there anyway to bypass it (tomorrow, when limits were gone) does bunch-size avoid it? |
In my experience it is a limit. If you wait 12-24 hours it should allow you to continue. |
The bunch size has another meaning. At the beginning of the download command, your whole library is requested and returned from the server in JSON-format. The library of some users are very big (thousands of books)! With the bunch-size option you can set the size, how many items will returned from the server. If you have 400 items and set a bunch-size of 200, it needs two requests to get them all. If you set the size to 400, it will get them with only one request. A higher bunch size will result in network errors, if you have a slow network connection.
I'm thinking so too. But the response body does not indicate such a rate limit. Maybe the headers do? @tdguchi |
which one plug-in? |
Please copy the copy below to a file in your plug-in dir and name it import secrets
from typing import Dict, Union
import click
import httpx
from audible.client import convert_response_content
from audible_cli.decorators import pass_client
def response_callback(resp: httpx.Response) -> Union[Dict, str]:
return convert_response_content(resp), resp.headers
@click.command("get-license")
@click.argument("asin")
@pass_client
async def cli(client, asin):
response_groups = "last_position_heard, pdf_url, content_reference"
body = {
"supported_drm_types": ["Mpeg", "Adrm"],
"quality": "High",
"consumption_type": "Download",
"response_groups": response_groups
}
headers = {
"X-Amzn-RequestId": secrets.token_hex(20).upper(),
"X-ADP-SW": "37801821",
"X-ADP-Transport": "WIFI",
"X-ADP-LTO": "120",
"X-Device-Type-Id": "A2CZJZGLK2JJVM",
"device_idiom": "phone"
}
lr, headers = await client.post(
f"content/{asin}/licenserequest",
body=body,
headers=headers,
response_callback=response_callback
)
print(headers)
content_license = lr["content_license"]
status_code = content_license["status_code"]
click.echo(f"License status code: {status_code}")
if status_code == "Denied":
if "license_denial_reasons" in content_license:
for reason in content_license["license_denial_reasons"]:
message = reason.get("message", "UNKNOWN")
rejection_reason = reason.get("rejectionReason", "UNKNOWN")
validation_type = reason.get("validationType", "UNKNOWN")
click.echo(
f"License denied message for {asin}: {message}."
f"Reason: {rejection_reason}."
f"Type: {validation_type}"
)
msg = content_license["message"]
raise Exception(msg) Edit: Forgot to print out the headers. Add this now. |
|
The only really striking thing on the headers is the 'strict-transport-security': 'max-age=300; includeSubDomains; preload'. I don’t get these header in my license request response headers. I checked my protocols of the last 6 months. |
So we are in a dead end? XD Im confused, one line says "customer has rights" and the following says "denied" Also says im not part of any plan... but i have a client ID, but, again, Since ClientId is null, skipping client rights edit: the Header diferences could caused because im on "demo" period? |
You have the rights. Otherwise you don’t get a license for streaming, we've tested out. I'll test some things and will report back later. Maybe in the meantime you could write to Audible, why you don’t can download items via the official app ;)! |
I have asked them, 24h reply .... maybe its answer could be... "you moron stop downloading our books" xD |
That's great. Thank you. Unfortunately, I'm not going any further yet. This is the problem if the API is not public. |
well, even if i only can download 150 audio books a day, its not a big deal, i have 20 days , i could download.. 3000 books xD |
You can test it out, if you can tomorrow download this amount of items or if they downgrade it for "heavy" users ;)! |
Hmm, i could download covers, and chapters.json so the problem is with aaxc only. all goes to a max download limit reached. |
Yeah,only a license request (aaxc files) for AYCL books should be affected by this. Have you one credit left? If so, you can try out and buy a book with these token and try to download it. |
Credits? i dont know what that is... i have suscribed via amazon login, i have been navigating, and nothing about credits its mentioned... edit: amazon.es -> audible.es |
I does not know if you get a monthly credit for free? I've got those in my Abo. |
audible.es does not have anything about credits, if I login in audible.com yes a credit menu its shown, but, im not member there. cheking api response, i have this:
So, saomething called gold membership, where i have a "free period" |
Too bad. Otherwise, you could have bought a title with the credit and then tested the download. |
after 24h, im abe to download again, so.. I will report back when the limit shows again to tell the number of books. |
Hmm iis there any command to clean all library at once? Also, how can i add a book to library using audible cli and asin? (im not good using apis) |
There is no command for this yet. But you can use the API with
Do you mean remove all? Then no, there is not such command yet. But can be implemented. |
In the meantime you can you the Amazon website. Go to content and devices or so (in germany it’s named "Inhalte und Geräte“)! There you can delete multiple items at once. |
This is not an eligant fix, but use tampermonkey with this script. Just need to enable it and open your library and it will start to remove books by simulating the button click.
|
How many books you could download today? And how many of them are AYCL files? |
Sorry, i have a complicated day, need to stay with my father at hospital, now we are at home, tomorrow i will check |
Oh, my goodness. I understand that. Private affairs are definitely a priority. So take it easy and I hope things going right as fast as possible. |
yeah thanks, nothing severe, my mom died of cancer a month ago, my father is having a bad time (well all of us... but my father... well, was his wife... sure you know what i mean) |
Yeah, know what you mean. My sincere condolences for the loss. Some things suddenly become absolutely irrelevant. |
:) well, lets going... But, i have downloaded some yesterday in the morning, so, 58 now, 47 then, 105 books downloaded, 50 less than the first day. I think that it has nothing with the number of vouchers downloaded (my suscription is AYCL, so i can only listen to them) but in the first image, i see something like a limit in mb to be downloaded.or maybe im only very tired xD As yesterday, covers and chapters files downloaded when --ignore-errors flag is used. for aaxc, a "license not granted" error shows. |
Reading this Audible help page there should be no limit for listen or download AYCL titles. |
Yeah, and thats ok, i can stream any book, even when using audible cli i got the not granted error. So, maybe there is no limit to "stream" but if exists to "download" 10 hours later, I could download some more books (yeah, i manage to scrape the website search pages, and add a lot of books via api) |
They wrote on the help page So downloads should don't have any rate limits. |
they say "any title" not "any number" I mean, is different limit the catalog to a total of for example 80% of full catalog, and a limit in stream or download per time period. They say I have full access to all books, "you can stream or download any title in the catalog" but they dont say "you can download or stream all what you want" If that second limit didnt exists, i could simply generate all asin combinations, add all catalog to my library, and with a really good connection, download all audible audiobooks in the free 30 day period. |
Unfortunately, the text is not clear in this regard. But Audible (Amazon) has nothing to give away. They have to pay license fees and the infrastructure (servers and employees) also costs money. I could therefore fully understand a rate limit. |
debug: License denied message for B09QMKWZHS: Customer is not part of any plans.Reason: RequesterEligibility.Type: Membership New message, now something related to expiry date. Now when trying to stream something from the library it says ¡Enhorabuena por tu compra! In english... the title is processing and soon will be there to be listen, please refresh page Thats new, maybe im banned... who knows, I must wait xD |
That is new to me too. Do you have the streaming issue for all AYCL audiobooks? |
I have tried some, all with same results... |
I have contacted audible, more than 24h later, i cant download or stream anything. |
But that's very unusual. Normally, the rate limit was over after 24 hours. |
Maybe they had to react now, as OpenAudible also supports downloading AYCL titles in its beta. |
Maybe if you reach the limit 2 o 3 consecutive days, they ban you for 48h or a week.. and if you insist, banned xD i will wait the answer from audible. |
I have downloaded openaudible beta...
Almost same errors given by audible-cli no? |
Also i ran this; audible api -m post -b '{"supported_drm_types": ["Dash", "HlsCmaf", "Hls", "Mpeg"], "quality": "High", "consumption_type": "Streaming", "response_groups": "last_position_heard, pdf_url, content_reference"}' -i 4 content/B09ZLFY5YG/licenserequest
also have a denial when trying to get a streaming license via api |
Im still unable to stream or download, more than 48 hours. Audible its not answering yet |
Oh, that are bad news. They will send you a message soo, hopefully! |
Finally i can download and stream again..... im 100% sure that it was a limit rate. but it only let me download a few books, only 20-30.... now i get again the "license not granted" error |
Damn... Do you have received any answer from Audible? |
Nothing.... |
Hi, i was downloading my library (109 books) included in my suscription, (so, not bought audios)
After 150 books, more or less i was "granted" with an error "license error"
i have tried all branches, getting some more info
It happens with all audiobooks, if i remove that (based on asin the next audiobook gives same error.
Is there a download limit? or its another thing?
PD: i have used a plugin posted on other issue, but no info related to these asin
thanks in advance
The text was updated successfully, but these errors were encountered: