Corretto bug in urlToMms()
Leonardo Robol [2009-11-09 12:06]
Corretto bug in urlToMms()
diff --git a/RaiTV/ChannelLoader.py b/RaiTV/ChannelLoader.py
index d1ed7f8..79e8e47 100644
--- a/RaiTV/ChannelLoader.py
+++ b/RaiTV/ChannelLoader.py
@@ -118,7 +118,7 @@ class ChannelList():
r = urllib2.urlopen(req)
reference = re.findall(r"http://(\S*)", r.read(1024))
- if reference is not []:
+ if len(reference) is not 0:
## Se è così ci serve mms over http, o almeno penso che questo
## intenda. Sembra che per altro ogni link funzioni così. Meglio! :)
mms = "mmsh://" + reference[0]