A quick one that opens rss links in the user's preferred browser, since there 
isn't really a standard stand-alone feed
reader.

Cheers,

~Jason

=== plugins/website_browser.py.in
==================================================================
--- plugins/website_browser.py.in	(/zeroconf/sda/trunk)	(revision 141)
+++ plugins/website_browser.py.in	(/patchsets/zeroconf/rss-plugin)	(revision 141)
@@ -19,7 +19,7 @@
 
 class plugin_website_browser:
     def __init__(self):
-        self.service_type = ["_http._tcp",  "_https._tcp"]
+        self.service_type = ["_http._tcp",  "_https._tcp", "_rss._tcp"]
         self.author = "Jason Whitlark"
         self.description = "Accessing zeroconf web sites using user's preferred browser"
 
@@ -34,6 +34,8 @@
             url = build_url("http",address,port, path, username,password)
         if stype == "_https._tcp":
             url = build_url("https",address,port, path, username,password)
+        if stype == "_rss._tcp":
+            url = build_url("http",address,port, path, username,password)
 
 	webbrowser.open(url)
 

_______________________________________________
avahi mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/avahi

Reply via email to