Browse Source

pull in changes made durning the release process...

[git-p4: depot-paths = "//depot/": change = 1245]
main
John-Mark Gurney 16 years ago
parent
commit
1cee3e034c
3 changed files with 12 additions and 3 deletions
  1. +1
    -1
      README
  2. +10
    -1
      pymediaserv
  3. +1
    -1
      shoutcast.py

+ 1
- 1
README View File

@@ -71,7 +71,7 @@ Ideas for future improvements:
of types for devices to only present the optimal type. Less of
an issue now the PS3 video support has been expanded.

v0.x:
v0.5:
Support multiple SSDP servers on the same box.
Fix SSDP to set the max-age to 7 days. We now retransmit replies
and reannounce ourselves randomly before our original announcement


+ 10
- 1
pymediaserv View File

@@ -104,7 +104,16 @@ class RootDevice(static.Data):
root = WebServer()
debug.insertnamespace('root', root)
content = resource.Resource()
cds = ContentDirectoryServer('My Media Server', klass = FSDirectory, path = 'media', urlbase = os.path.join(urlbase, 'content'), webbase = content) # This sets up the root to be the media dir so we don't have to enumerate the directory
mediapath = 'media'
if not os.path.isdir(mediapath):
print >>sys.stderr, \
'Sorry, %s is not a directory, no content to serve.' % `mediapath`
sys.exit(1)

# This sets up the root to be the media dir so we don't have to
# enumerate the directory
cds = ContentDirectoryServer('My Media Server', klass=FSDirectory,
path=mediapath, urlbase=os.path.join(urlbase, 'content'), webbase=content)
debug.insertnamespace('cds', cds)
root.putChild('ContentDirectory', cds)
cds = cds.control


+ 1
- 1
shoutcast.py View File

@@ -233,7 +233,7 @@ class ShoutProxy(resource.Resource):
def processRequest(self, ign, request):
self.startNextConnection(request)

def errRequest(self, ign, request):
def errRequest(self, failure, request):
request.write(failure.render(self.request))
request.finish()



Loading…
Cancel
Save