Browse Source

fix streaming of shoutcast to the DSM-520..

[git-p4: depot-paths = "//depot/": change = 1224]
replace/b43bf02ddeddd088c0e6b94974ca1a46562eb3db
John-Mark Gurney 16 years ago
parent
commit
a12b78c5d8
2 changed files with 3 additions and 0 deletions
  1. +2
    -0
      README
  2. +1
    -0
      shoutcast.py

+ 2
- 0
README View File

@@ -101,6 +101,8 @@ v0.x:
Support both / and \ as path separators in ZipStorage. RarFile uses
a \ while tar uses /. We count the number of each and use the most
common.
For ShoutCast streams, override the User-Agent, apparently some/most
stations now block the default one.

v0.3:
Include some patches for twisted in the distro, in the directory


+ 1
- 0
shoutcast.py View File

@@ -110,6 +110,7 @@ class ShoutcastFeedAsync(feeds.ShoutcastFeed):
threadable.synchronize(ShoutcastFeedAsync)

class ShoutTransfer(shoutcast.ShoutcastClient):
userAgent = 'because you block user-agents'
def __init__(self, request, passback):
shoutcast.ShoutcastClient.__init__(self)
self.request = request


Loading…
Cancel
Save