Changeset 190 for trunk/StreamVision


Ignore:
Timestamp:
06/20/05 14:59:08 (19 years ago)
Author:
Nicholas Riley
Message:

StreamVision.py: Don't clean stream name to oblivion if it doesn't
have at least one ' - ' in it.

props: Ignore *.pyc.

Location:
trunk/StreamVision
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/StreamVision

    • Property svn:ignore
      •  

        old new  
        22dist
        33*.html
         4*.pyc
  • trunk/StreamVision/StreamVision.py

    r188 r190  
    4343    name = name.split('. ')[0]
    4444    name = name.split(': ')[0]
    45     name = ' - '.join(name.split(' - ')[:-1])
     45    name = name.split(' - ')
     46    if len(name) > 1:
     47        name = ' - '.join(name[:-1])
     48    else:
     49        name = name[0]
    4650    return name
    4751   
Note: See TracChangeset for help on using the changeset viewer.