Skip to content

Commit

Permalink
fix for #9
Browse files Browse the repository at this point in the history
a too strict regular expression that should be more relaxed for icecast
2.4.2. Apparently no drawbacks for older versions.
  • Loading branch information
leofiore committed Nov 13, 2015
1 parent 315a5bf commit 619251b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icestats/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def run(self):
server_info = dict(
re.findall(
'<tr[^>]*>[\r\s]*<td[^>]*>([^\r<>]*?)</td>[\s\r]*'
'<td[^>]*class="streamdata"[^>]*>([^\r<>]*?)</td>',
'<td[^>]*>([^\r<>]*?)</td>',
resultstr)
)
server_version = re.match("Icecast (.*)", server_info['Version']).groups(0)
Expand Down

0 comments on commit 619251b

Please sign in to comment.