Update of /cvsroot/freevo/freevo/src/config
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11868

Modified Files:
        channels.py 
Log Message:
support uri without number at the end

Index: channels.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/config/channels.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** channels.py 22 Dec 2004 02:12:52 -0000      1.8
--- channels.py 22 Dec 2004 19:23:51 -0000      1.9
***************
*** 73,76 ****
--- 73,84 ----
              channel.uri.append('%s:%s' % (which, uri))
      else:
+         try:
+             int(uri[:uri.find(':')][-1])
+         except:
+             # uri doesn't end with a number, add all cards with this based
+             for s in config.TV_CARDS:
+                 if s.find(uri[:uri.find(':')]) == 0:
+                     add_uri(channel, '%s:%s' % (s, uri))
+             return
          channel.access_id = uri.split(':')[1]
          channel.uri.append(uri)



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to