@@ -134,6 +134,7 @@ syslog("Mount created") path = [] subtype = [] + cat = [] for t in txt: x = "".join((chr(c) for c in t)) (key, value) = x.split("=") @@ -141,6 +142,8 @@ path = value elif key == "subtype": subtype = value + elif key == "cat": + cat = value self.subtype = subtype self.remote = host + ":" + path if subtype == "vdr": @@ -153,7 +156,10 @@ self.local = config.picture else: self.local = config.misc - self.local += host.split('.')[0] + if not cat: + self.local += host.split('.')[0] + else: + self.local += host.split('.')[0] + '/' + cat syslog("media is %s for %s:%s" % (self.local, host, path)) def use(self):