[PATCH] Import picture URLs from divelogs.de

Miika Turkia miika.turkia at gmail.com
Sun Apr 17 06:51:31 PDT 2016


Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
 xslt/divelogs.xslt | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/xslt/divelogs.xslt b/xslt/divelogs.xslt
index 067a726..2568824 100644
--- a/xslt/divelogs.xslt
+++ b/xslt/divelogs.xslt
@@ -164,6 +164,14 @@
           </xsl:attribute>
         </sample>
       </xsl:for-each>
+
+      <xsl:for-each select="PICTURES/PICTURE">
+        <picture>
+          <xsl:attribute name="filename">
+            <xsl:value-of select="concat('https://divelogs.de', @path, .)"/>
+          </xsl:attribute>
+        </picture>
+      </xsl:for-each>
     </dive>
   </xsl:template>
 </xsl:stylesheet>
-- 
2.5.0



More information about the subsurface mailing list