Audiobooks.bundle icon indicating copy to clipboard operation
Audiobooks.bundle copied to clipboard

plex is not able to find authors at all

Open shedman214 opened this issue 5 years ago • 7 comments

my plex is not able to find any authors at all. as soon as I click search it says not found. the books work just fine, but the authors cant be found. is there a way to fix that

shedman214 avatar Jan 21 '20 16:01 shedman214

I am experiencing the same issue

jjmulenex avatar Feb 05 '20 14:02 jjmulenex

Until very recently, Audible didn't have author details so there has been nothing to pull or 'match' to. It's being worked on, but it is not something that is supposed to be working at this time.

They've recently added some author pages, but not for everyone.

macr0dev avatar Feb 05 '20 15:02 macr0dev

Until very recently, Audible didn't have author details so there has been nothing to pull or 'match' to. It's being worked on, but it is not something that is supposed to be working at this time.

They've recently added some author pages, but not for everyone.

Thanks for the update. I read in the notes that the Author was being pulled from last.fm.. go to know

jjmulenex avatar Feb 05 '20 15:02 jjmulenex

They've changed from last.fm to something else now (I forget what, musicbrainz maybe?) during the last big music library update late last year. So even that info is a little out of date. Either way, it's crowd sourced information if it's even there.

macr0dev avatar Feb 05 '20 16:02 macr0dev

There is an author pages: https://www.audible.com/author/Douglas-E-Richards/B001K7WURS?ref=a_search_c3_lAuthor_1_1_1&pf_rd_p=e81b7c27-6880-467a-b5a7-13cef5d729fe&pf_rd_r=TN4V571PAH7HSJ72GH4D

just for the most famous artists i guess.

romanoh avatar Apr 25 '20 00:04 romanoh

The link doesn't work

On Fri, Apr 24, 2020 at 7:37 PM romanoh [email protected] wrote:

There is an author pages: https://www.audible.com/author/Douglas-E-Richards/B001K7WURS?ref=a_search_c3_lAuthor_1_1_1&pf_rd_p=e81b7c27-6880-467a-b5a7-13cef5d729fe&pf_rd_r=TN4V571PAH7HSJ72GH4D http://url

just for the most famous artists i guess.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/macr0dev/Audiobooks.bundle/issues/50#issuecomment-619291960, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHYXZCNFSB4QBYYVZJN3GBDROIWE7ANCNFSM4KJWSG7A .

shedman214 avatar Apr 25 '20 15:04 shedman214

Looking at the Author "issue" and also the availability of the Audible API. This is very rough and ready but here's some example code to grab the info from Audible

import requests
import json
from bs4 import BeautifulSoup 

author_search_url = "https://api.audible.com/1.0/catalog/search?image_sizes=1215,558,900&keywords={0}&locale=en-GB&marketplace=AF2M0KC94RCEA&page=1&response_groups=contributors,product_desc,media,product_attrs,product_extended_attrs,product_plan_details,product_plans,relationships,sku"
headers={'User-Agent': 'Audible/652 CFNetwork/1209 Darwin/20.2.0'}
respJSON = requests.get(author_search_url.format("Earnest%20Cline"),headers=headers).json()
author_asin = respJSON['products'][0]['authors'][0]['asin']
author_url = 'https://www.audible.com/author/{0}?ipRedirectOverride=true&overrideBaseCountry=true'
author_html = requests.get(author_url.format(author_asin),headers=headers)
author_content = BeautifulSoup(author_html.text,"html.parser")
for img in author_content.select('img[class*="author-image-outline"]'):
    print(img['src'].replace('120','900'))
    
for p in author_content.select('p[class*="adbl-author-desc"]'):
    print(p.getText().strip())

It doesn't need authentication to access these parts of the API, I haven't found an author API call (The app can't do it) and the Author page appears to be .com only (well not .co.uk at least)

I'm going to hack away for my purposes but I'm happy to help if you want to look at building this in

mcqweb avatar Dec 14 '20 14:12 mcqweb