XDM
XDM copied to clipboard
Books plugin - Language setting?
Hi there,
First off, NICE work on XDM. It looks really slick. I'm currently using it for ebooks only, but might start using it for other things as well (movies for example, to replace CouchPotato). I have one (minor?) question, and that might be because I've missed something in the documentation, or because it's a feature that doesn't exist yet. Either way:
I'm using the Books plugin to search (and find) some ebooks for my mum. Since we're from the Netherlands, my mum would prefer Dutch books. Is there an option to tell either Books or something else to prefer (or limit) specific languages?
Cheers!
right now there is no specific plugin to restrict the language of books
if these books appear on the indexers with the english name (i believe goodreads gives english names) but have something like (Dutch) in there release name you could use the RegEx DownloadFilter plugin
meaning: activate the plugin, activate / let it run for Books and say that the regex must match the regex might look something like this
.*?Dutch.*?
you can see what i mean here http://regexr.com?380p3 fyi the regex filter plugin is not meant to be the end solution but until better plugins are written its pretty powerful
if the book have specific dutch names and you can only find them by that name would make things a little difficult ... i had a quick look at the goodreads api and i cant see that they send names in another language then there is this https://www.goodreads.com/help/show/30-is-goodreads-available-in-other-languages which pretty much says no ... its meant for the website itself but if they dont have the frontend translated i dont believe they they have other language names of the books
fell free to ask further questions ^^
ps thanks i am glad you like it so far :)
Hiya,
That's a quick response! I did not expect that :+1: I think (but might be mistaken) that the link you paste is regarding the front end of goodreads. That looks to be translated in a few languages. The weird thing is; if I search for the Dutch bookname I do find it, but get linked to the English book. Eg. Robert Galbraith's Cuckoo's Calling is called Koekoeksjong in Dutch. If I search for robert galbraith koekoeksjong I actually do get the right book, just with the English title. Possibly some discrepancy in Goodreads' API. Unfortunately, for most books the title's translated to Dutch, so searching for the English title is not very helpful there, not even with regular expressions (which I'm (un?)fortunately quite good at :-) )
Cheers
- Edit: Before I forget, I tried to fiddle about with LazyLibrarian at first. That did have the option to include languages (based on a comma seperated string). Not sure if that actually worked though, because it was outdated and the search engine integration was broken there.
@ regex haha you never know ^^
okay so we need the translated book names i searched on the goodreads page again and google and found that translations are called "editions" of the book
e.g. http://www.goodreads.com/work/editions/4640799-harry-potter-and-the-philosopher-s-stone
now we just have to find a way to get all editions on a book looking at the api doc http://www.goodreads.com/api does not look good specifically http://www.goodreads.com/api#work.editions
right now i simply use the http://www.goodreads.com/api#search.books
do you know of any other provider / database for books ?
If I look at LazyLibrarian's readme (which is 2 years old, mind you): " It uses the extensive GoogleBooks (for bookinfo) and Goodreads.com (for authorinfo) websites as a source, "
I checked Google Books for Koekoeksjong and got the following result: http://books.google.nl/books?id=HUEfAQAAQBAJ&dq=koekoeksjong&hl=en&sa=X&ei=HwLXUqbYPLC00QX9qoAw&redir_esc=y
Which is a Dutch bookname :-)
More info @ https://developers.google.com/books/
Unfortunately, I can't quickly find how to use Google Books' API for searching (yet)
- Edit: Google example for searching by title: https://google-developers.appspot.com/books/docs/viewer/examples/booksapi-titlesearch (and then automatically opening the first book, but that's not the important part here I guess :) )
- Edit2: Apparently: [https://www.googleapis.com/books/v1/volumes?q=
] works - ex. https://www.googleapis.com/books/v1/volumes?q=Robert+Galbraith+Koekoeksjong You can add filters and stuff (not sure yet how they work), but it looks like you don't have to have a Google user account set up on your server, because I can just open that query in lynx on mine - Edit3: https://developers.google.com/books/docs/v1/using#query-params - One of the filters is langRestrict, which accepts comma seperated language identifiers: https://www.googleapis.com/books/v1/volumes?q=Robert+Galbraith&langRestrict=nl,en
Is that useful at all?