Bladeren bron

Fixed RSS links

Thomas Buck 11 jaren geleden
bovenliggende
commit
88e0435eb3
3 gewijzigde bestanden met toevoegingen van 12 en 10 verwijderingen
  1. 3
    1
      macros.py
  2. BIN
      macros.pyc
  3. 9
    9
      output/rss.xml

+ 3
- 1
macros.py Bestand weergeven

@@ -172,7 +172,9 @@ def hook_postconvert_rss():
172 172
     for p in posts:
173 173
         title = p.post
174 174
         link = "%s/%s" % (BASE_URL, p.url)
175
-        desc = htmlspecialchars(p.html)
175
+        desc = p.html.replace("href=\"img", "%s%s%s" % ("href=\"", BASE_URL, "/img"))
176
+        desc = desc.replace("src=\"img", "%s%s%s" % ("src=\"", BASE_URL, "/img"))
177
+        desc = htmlspecialchars(desc)
176 178
         date = time.mktime(time.strptime("%s 12" % p.date, "%Y-%m-%d %H"))
177 179
         date = email.utils.formatdate(date)
178 180
         items.append(_RSS_ITEM % (title, link, desc, date, link))

BIN
macros.pyc Bestand weergeven


+ 9
- 9
output/rss.xml Bestand weergeven

@@ -6,8 +6,8 @@
6 6
 <atom:link href="http://www.xythobuz.de/rss.xml" rel="self" type="application/rss+xml" />
7 7
 <description>xythobuz Electronics &amp; Software Projects</description>
8 8
 <language>en-us</language>
9
-<pubDate>Thu, 11 Apr 2013 16:38:55 -0000</pubDate>
10
-<lastBuildDate>Thu, 11 Apr 2013 16:38:55 -0000</lastBuildDate>
9
+<pubDate>Thu, 11 Apr 2013 16:45:50 -0000</pubDate>
10
+<lastBuildDate>Thu, 11 Apr 2013 16:45:50 -0000</lastBuildDate>
11 11
 <docs>http://blogs.law.harvard.edu/tech/rss</docs>
12 12
 <generator>Poole</generator>
13 13
 
@@ -53,7 +53,7 @@
53 53
     <description>&lt;h2&gt;xyCopter PID-Parameter&lt;/h2&gt;
54 54
 &lt;p&gt;&lt;em&gt;Posted at March 16, 2013.&lt;/em&gt;&lt;/p&gt;
55 55
 &lt;p&gt;So, jetzt fehlen hoffentlich nur noch die richtigen PID Parameter um den Quadrocopter in der Schwebe zu halten...&lt;/p&gt;
56
-&lt;p&gt;&lt;a href=&quot;img/xyCopterOsci.png&quot;&gt;&lt;img alt=&quot;Screenshot&quot; src=&quot;img/xyCopterOsci_small.png&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description>
56
+&lt;p&gt;&lt;a href=&quot;http://www.xythobuz.de/img/xyCopterOsci.png&quot;&gt;&lt;img alt=&quot;Screenshot&quot; src=&quot;http://www.xythobuz.de/img/xyCopterOsci_small.png&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description>
57 57
     <pubDate>Sat, 16 Mar 2013 11:00:00 -0000</pubDate>
58 58
     <guid>http://www.xythobuz.de/2013_03_16_pid.html</guid>
59 59
 </item>
@@ -75,9 +75,9 @@
75 75
     <description>&lt;h2&gt;Quadrocopter Testvorrichtung&lt;/h2&gt;
76 76
 &lt;p&gt;&lt;em&gt;Posted at March 12, 2013.&lt;/em&gt;&lt;/p&gt;
77 77
 &lt;p&gt;Hab mal ein bisschen mit Opa im Keller gebastelt. Ergebnis ist diese Testvorrichtung, um besser die PID-Parameter anhand einer einzelnen Achse zu bestimmen. Und Fehler im Code zu finden. Das gibts ja immer... :)&lt;/p&gt;
78
-&lt;p&gt;&lt;a href=&quot;img/quadRig1.jpg&quot;&gt;&lt;img alt=&quot;Foto 1&quot; src=&quot;img/quadRig1_small.jpg&quot; /&gt;&lt;/a&gt;
79
-&lt;a href=&quot;img/quadRig2.jpg&quot;&gt;&lt;img alt=&quot;Foto 2&quot; src=&quot;img/quadRig2_small.jpg&quot; /&gt;&lt;/a&gt;
80
-&lt;a href=&quot;img/quadRig3.jpg&quot;&gt;&lt;img alt=&quot;Foto 3&quot; src=&quot;img/quadRig3_small.jpg&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description>
78
+&lt;p&gt;&lt;a href=&quot;http://www.xythobuz.de/img/quadRig1.jpg&quot;&gt;&lt;img alt=&quot;Foto 1&quot; src=&quot;http://www.xythobuz.de/img/quadRig1_small.jpg&quot; /&gt;&lt;/a&gt;
79
+&lt;a href=&quot;http://www.xythobuz.de/img/quadRig2.jpg&quot;&gt;&lt;img alt=&quot;Foto 2&quot; src=&quot;http://www.xythobuz.de/img/quadRig2_small.jpg&quot; /&gt;&lt;/a&gt;
80
+&lt;a href=&quot;http://www.xythobuz.de/img/quadRig3.jpg&quot;&gt;&lt;img alt=&quot;Foto 3&quot; src=&quot;http://www.xythobuz.de/img/quadRig3_small.jpg&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description>
81 81
     <pubDate>Tue, 12 Mar 2013 11:00:00 -0000</pubDate>
82 82
     <guid>http://www.xythobuz.de/2013_03_12_test_rig.html</guid>
83 83
 </item>
@@ -88,7 +88,7 @@
88 88
     <description>&lt;h2&gt;xyCopter loves YASAB&lt;/h2&gt;
89 89
 &lt;p&gt;&lt;em&gt;Posted at March 10, 2013.&lt;/em&gt;&lt;/p&gt;
90 90
 &lt;p&gt;Jetzt hat meine xyCopter App eine YASAB Implementation. So kann man per Bluetooth die Firmware des Quadrocopters vom Tablet aus neu flashen. Und woher hat die App das Firmware Hexfile? Aus Dropbox! Wenn das mal nicht geil ist... :D&lt;/p&gt; &lt;/p&gt;
91
-&lt;p&gt;&lt;a href=&quot;img/xyCopterFirmware.png&quot;&gt;&lt;img alt=&quot;Screenshot&quot; src=&quot;img/xyCopterFirmware_small.png&quot; /&gt;&lt;/a&gt; &lt;/p&gt;
91
+&lt;p&gt;&lt;a href=&quot;http://www.xythobuz.de/img/xyCopterFirmware.png&quot;&gt;&lt;img alt=&quot;Screenshot&quot; src=&quot;http://www.xythobuz.de/img/xyCopterFirmware_small.png&quot; /&gt;&lt;/a&gt; &lt;/p&gt;
92 92
 &lt;p&gt;Allerdings funktioniert Dropbox Integration und OpenSource nicht so wirklich... Man muss sich also eine &lt;a href=&quot;https://www.dropbox.com/developers/apps&quot;&gt;eigene App bei Dropbox registrieren&lt;/a&gt; und den Key und das Secret dann im &lt;a href=&quot;https://github.com/xythobuz/xyControl/blob/master/tools/xyCopter/AndroidManifest.xml&quot;&gt;Manifest&lt;/a&gt; und im &lt;a href=&quot;https://github.com/xythobuz/xyControl/blob/master/tools/xyCopter/src/org/xythobuz/xycopter/MainActivity.java&quot;&gt;Code&lt;/a&gt; eintragen...&lt;/p&gt;</description>
93 93
     <pubDate>Sun, 10 Mar 2013 11:00:00 -0000</pubDate>
94 94
     <guid>http://www.xythobuz.de/2013_03_10_yasab.html</guid>
@@ -100,7 +100,7 @@
100 100
     <description>&lt;h2&gt;xyCopter mit GraphView&lt;/h2&gt;
101 101
 &lt;p&gt;&lt;em&gt;Posted at March 05, 2013.&lt;/em&gt;&lt;/p&gt;
102 102
 &lt;p&gt;Jetzt hab ich &lt;a href=&quot;https://github.com/Lauszus/GraphView&quot;&gt;GraphView&lt;/a&gt; in xyCopter eingebaut:&lt;br /&gt;
103
-&lt;a href=&quot;img/xyCopterNew.png&quot;&gt;&lt;img alt=&quot;Screenshot&quot; src=&quot;img/xyCopterNew_small.png&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description>
103
+&lt;a href=&quot;http://www.xythobuz.de/img/xyCopterNew.png&quot;&gt;&lt;img alt=&quot;Screenshot&quot; src=&quot;http://www.xythobuz.de/img/xyCopterNew_small.png&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description>
104 104
     <pubDate>Tue, 05 Mar 2013 11:00:00 -0000</pubDate>
105 105
     <guid>http://www.xythobuz.de/2013_03_05_graphview.html</guid>
106 106
 </item>
@@ -111,7 +111,7 @@
111 111
     <description>&lt;h2&gt;xyCopter Android App&lt;/h2&gt;
112 112
 &lt;p&gt;&lt;em&gt;Posted at February 25, 2013.&lt;/em&gt;&lt;/p&gt;
113 113
 &lt;p&gt;Die erste Version meiner Quadrocopter Fernsteuerungs App für Android ist fertig und funktioniert soweit. Hier ein Screenshot:&lt;/p&gt;
114
-&lt;p&gt;&lt;a href=&quot;img/xyCopter.png&quot;&gt;&lt;img alt=&quot;xyCopter Screenshot&quot; src=&quot;img/xyCopter_small.png&quot; /&gt;&lt;/a&gt; &lt;/p&gt;
114
+&lt;p&gt;&lt;a href=&quot;http://www.xythobuz.de/img/xyCopter.png&quot;&gt;&lt;img alt=&quot;xyCopter Screenshot&quot; src=&quot;http://www.xythobuz.de/img/xyCopter_small.png&quot; /&gt;&lt;/a&gt; &lt;/p&gt;
115 115
 &lt;p&gt;Und natürlich auch die &lt;a href=&quot;https://github.com/xythobuz/xyControl/blob/master/tools/xyCopter-1.0.apk?raw=true&quot;&gt;unsignierte APK zum Download&lt;/a&gt;...&lt;/p&gt;</description>
116 116
     <pubDate>Mon, 25 Feb 2013 11:00:00 -0000</pubDate>
117 117
     <guid>http://www.xythobuz.de/2013_02_25_android.html</guid>

Laden…
Annuleren
Opslaan