Skip to content

Commit

Permalink
Merge pull request #23 from ChoiZ/dev
Browse files Browse the repository at this point in the history
Remove unnecessary variables
  • Loading branch information
yomguy committed Aug 13, 2014
2 parents 51fc4f9 + a28e009 commit 25a88da
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions deefuzzer/core.py
Expand Up @@ -107,14 +107,11 @@ def set_m3u_playlist(self):
m3u = open(self.m3u, 'w')
m3u.write('#EXTM3U\n')
for s in self.stations:
info = '#EXTINF:%s,%s - %s\n' % ('-1',s.short_name, s.channel.name)
url = 'http://' + s.channel.host + ':' + str(s.channel.port) + s.channel.mount + '\n'
m3u.write(info)
m3u.write(url)
m3u.write('#EXTINF:%s,%s - %s\n' % ('-1',s.short_name, s.channel.name))
m3u.write('http://' + s.channel.host + ':' + str(s.channel.port) + s.channel.mount + '\n')
m3u.close()
self.logger.write_info('Writing M3U file to : ' + self.m3u)


def run(self):
q = Queue.Queue(1)

Expand Down Expand Up @@ -149,4 +146,3 @@ def run(self):
while True:
q.put(i,1)
i+=1

0 comments on commit 25a88da

Please sign in to comment.