View Single Post
Old 09-21-2011, 06:38 AM   #124
enriquep
Connoisseur
enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.enriquep shines like a glazed doughnut.
 
enriquep's Avatar
 
Posts: 52
Karma: 8860
Join Date: Jul 2009
Location: Madrid, Spain, EU
Device: Sony PRS-505, Sony PRS-T1, Sony PRS-T3
Adding an item: Help with URL

Hello everyone.

I am tyrying to add Lecturalia as a source to the plugin (www.lecturalia.com, an acceptable reference site for Spanish language books). Lecturalia's search URL is
Code:
http://www.lecturalia.com/libros/s/book-title-in-lowercase
After several attempts from my side (including browsing the messages in this thread, trying to understand the basics of the "calibre template language" as explained in its help webpage, experimenting with this and that code...) I haven't been able to solve my problem, and I confess that I am still 99% lost with tokens, functions, etc. However, it seems to me that it must be VERY simple (?), so sorry for asking and thank you for your time.

I've managed to replace the +'s that the plugin puts in the title spaces by -'s, as required by this particular website:
Code:
http://www.lecturalia.com/libros/s/{title:re(\+,-)}
BUT i still need to make another change: the "book-title" chain has to be in lowercase. I am aware that there is a lowercase() function, and I've tried combining it with the re(\+,-)... unsuccessfully for now.

Any hints will be very appreciated.

Best from sunny Madrid,
-Enrique
enriquep is offline   Reply With Quote