Hello, I've got the problem that the plot summary isn't always transfered correctly from Amazon to Tellico. Example: https://www.amazon.de/dp/B0143R4K24 (The Diabolical Blu Ray) shows "Das Haus der Familie Heller wird jede Nacht von unheimlichen..." as "Produktbeschreibung" but adding this film to tellico the plot summary is "Besonderheiten: FSK 16 Jahre". This doesn't match. Thanks for help
Is this just for amazon.de? I don't have a current access ID for Amazon Germany to test... Could you possibly go to https://webservices.amazon.com/scratchpad/index.html# Select ItemSearch on the left, change marketplace to Germany, enter all your information, along with the search term (such as Diabolical) in the keyword box, and do "Run Request" ? If that works, inside the Response box, select the "XML" tab and either comment here (remove your access information first) or email to me directly..
Emaild just two examples directly to you
Hi, I think the plot can be in two segments of the XML structure. I did the following changes in amazon2tellico.xsl: <xsl:when test="$mode='Video'"> <plot> <xsl:value-of select="aws:EditorialReviews/aws:EditorialReview[1]/aws:Content"/> </plot> Changed it to <xsl:when test="$mode='Video'"> <plot> <xsl:value-of select="aws:EditorialReviews/aws:EditorialReview[2]/aws:Content"/> <xsl:value-of select="aws:EditorialReviews/aws:EditorialReview[1]/aws:Content"/> </plot> And now I can get both plots. Is there a possibility to add e.g. linebreak between the two plots? I tried it with <br> but this did not help.
(In reply to Joachim from comment #3) > Hi, > I think the plot can be in two segments of the XML structure. I did the > following changes in amazon2tellico.xsl: > > <xsl:when test="$mode='Video'"> > <plot> > <xsl:value-of > select="aws:EditorialReviews/aws:EditorialReview[1]/aws:Content"/> > </plot> > > > Changed it to > > <xsl:when test="$mode='Video'"> > <plot> > <xsl:value-of > select="aws:EditorialReviews/aws:EditorialReview[2]/aws:Content"/> > <xsl:value-of > select="aws:EditorialReviews/aws:EditorialReview[1]/aws:Content"/> > </plot> > > And now I can get both plots. Is there a possibility to add e.g. linebreak > between the two plots? I tried it with <br> but this did not help. Try this: <plot> <xsl:if test="aws:EditorialReviews/aws:EditorialReview[2]"> <xsl:value-of select="aws:EditorialReviews/aws:EditorialReview[2]/aws:Content"/> <xsl:text> </xsl:text> <!-- newline character --> </xsl:if> <xsl:value-of select="aws:EditorialReviews/aws:EditorialReview[1]/aws:Content"/> </plot>
Thank you! But <xsl:text> </xsl:text> <!-- newline character --> did not work for me. It perfectly inserts a new line in the plot at "change entry" but this linebreak is not shown in the main window. I played a bit around and <xsl:text><![CDATA[<p>]]></xsl:text> helped.
(In reply to Joachim from comment #5) > Thank you! But > > <xsl:text> </xsl:text> <!-- newline character --> > > did not work for me. It perfectly inserts a new line in the plot at "change > entry" but this linebreak is not shown in the main window. I played a bit > around and > > <xsl:text><![CDATA[<p>]]></xsl:text> > > helped. How can I use custom fields and update it with Amazon data? I created a cusotm field named "EAN" in Tellico. The EAN code is submitted in the XML structure from Amazon. How to update the cusom field with the content of the according XML element? Nothing I tried did work.
(In reply to Joachim from comment #6) > How can I use custom fields and update it with Amazon data? I created a > cusotm field named "EAN" in Tellico. The EAN code is submitted in the XML > structure from Amazon. How to update the cusom field with the content of the > according XML element? Nothing I tried did work. With your collection that has the custom EAN field in it, export to an XML and find the <field .. title="EAN" ... > line in it. Copy that to your amazon2tellico.xsl file up in the beginning within the <fields> element. Then add <ean><xsl:value-of select="[whatever the EAN element is in the XML from Amazon]"></ean> somewhere in the Item template. Does that make sense?
Got it, thank you! Also did some German related optimization (e.g. the FSK rating). Except that the plot isn't available via Amazon sometimes (I checked it with the scratchpad) all works like a charm and I was able to learn some XSLT :-) I think you can close this Bug because it really isn't one. Perhups you can overtake the changes to the plot element in a future version. Thanks for your great support!
A further question to entry update via Amazon: what's the search criteria? Can I change it?
(In reply to Joachim from comment #9) > A further question to entry update via Amazon: what's the search criteria? > Can I change it? For books, it uses the ISBN if possible, followed by a title/author or title/artist search, followed by just title, and then tries to choose the best match out of all those. It's not changeable without editing the code and recompiling.
(In reply to Joachim from comment #8) > Got it, thank you! > > Also did some German related optimization (e.g. the FSK rating). > > Except that the plot isn't available via Amazon sometimes (I checked it with > the scratchpad) all works like a charm and I was able to learn some XSLT :-) > > I think you can close this Bug because it really isn't one. Perhups you can > overtake the changes to the plot element in a future version. > > Thanks for your great support! I'm interested in improving the FSK support. If you can send me or post them here, I'll include them in next release.
Git commit 714874e03c610682b3e84192a2f61297a6fcab75 by Robby Stephenson. Committed on 25/08/2018 at 00:33. Pushed by rstephenson into branch '3.1'. Include multiple content elements from Amazon fetcher for movie plots FIXED-IN: 3.1.3 M +4 -0 ChangeLog M +6 -1 xslt/amazon2tellico.xsl https://commits.kde.org/tellico/714874e03c610682b3e84192a2f61297a6fcab75