[FFmpeg-devel] [PATCH 3/5] web/rss: Translate relative links to absolute in item/content:encoded

Alexander Strasser eclipse7 at gmx.net
Fri May 23 00:17:52 CEST 2014


Signed-off-by: Alexander Strasser <eclipse7 at gmx.net>
---
 gen-rss | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gen-rss b/gen-rss
index b6d8c91..c686c58 100755
--- a/gen-rss
+++ b/gen-rss
@@ -34,6 +34,10 @@ while (<>) {
     last;
   }
   if ($do_print) {
+    if (m{href="([^:]*)"}) {
+      my $rel_ref = $1;
+      s|$rel_ref|http://ffmpeg.org/$rel_ref|
+    }
     print $_;
   }
 }
-- 


More information about the ffmpeg-devel mailing list