|
|
@@ -90,7 +90,7 @@ medianode.contentTypes.update( { |
|
|
|
root.putChild('media', medianode) |
|
|
|
|
|
|
|
# Set up media files |
|
|
|
def addFSPath(parent, dpath): |
|
|
|
def addFSPath(cds, parent, dpath): |
|
|
|
dlist = os.listdir(dpath) |
|
|
|
dlist.sort() |
|
|
|
for i in dlist: |
|
|
@@ -124,7 +124,7 @@ def addFSPath(parent, dpath): |
|
|
|
except KeyError: |
|
|
|
pass |
|
|
|
|
|
|
|
addFSPath('0', 'media') |
|
|
|
addFSPath(cds, '0', 'media') |
|
|
|
|
|
|
|
site = server.Site(root) |
|
|
|
reactor.listenTCP(listenPort, site) |
|
|
|