Skip to content

Commit

Permalink
Merge pull request andreafabrizi#6 from burlito/rtmp-dump-empty-patch
Browse files Browse the repository at this point in the history
Fixed rtmpdump syntax bug
  • Loading branch information
andreafabrizi committed Jan 16, 2014
2 parents 64814b4 + e6e5284 commit 2eab908
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/amfCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,25 +144,25 @@ def printRTMPDump(self):

line = "rtmpdump -r '%s' " % self.RTMP["url"]

if self.RTMP.has_key("app"):
if self.RTMP["app"]:
line += "-a '%s' " % self.RTMP["app"]

if self.RTMP.has_key("tcUrl"):
if self.RTMP["tcUrl"]:
line += "-t '%s' " % self.RTMP["tcUrl"]

if self.RTMP.has_key("playPath"):
if self.RTMP["playPath"]:
line += "-y '%s' " % self.RTMP["playPath"]

if self.RTMP.has_key("swfUrl"):
if self.RTMP["swfUrl"]:
line += "-W '%s' " % self.RTMP["swfUrl"]

if self.RTMP.has_key("pageUrl"):
if self.RTMP["pageUrl"]:
line += "-p '%s' " % self.RTMP["pageUrl"]

if self.RTMP.has_key("flashVer"):
if self.RTMP["flashVer"]:
line += "-f '%s' " % self.RTMP["flashVer"]

if self.RTMP.has_key("extra"):
if self.RTMP["extra"]:
line += "-C %s " % self.RTMP["extra"]

line += "--live -o stream.flv"
Expand Down

0 comments on commit 2eab908

Please sign in to comment.