public
Description: Checks the naming of recorded/downloaded TV Episodes
Clone URL: git://github.com/dbr/checktveps.git
Quick messy way of parsing [01x01-02] numbers, should move to name-parsing 
section, not array-output-formatting
dbr (author)
Mon Jun 30 09:23:37 -0700 2008
commit  87628e9ebfc2dcdb336a737623cb9a274dd66e16
tree    e9b82ec2d17070d74b5c12f202465c44178c028d
parent  352171823df6983c4fd0ce3afe52bf045b368918
...
125
126
127
 
 
 
 
 
 
 
 
 
128
129
130
...
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
0
@@ -125,6 +125,15 @@ def seq_display(x):
0
     is_int=[]
0
     non_int=[]
0
     for cur_x in x:
0
+ if cur_x.find("-") != -1:
0
+ for tmp_split in cur_x.split("-"):
0
+ try:
0
+ tmp_conv = int(tmp_split)
0
+ is_int.append(tmp_conv)
0
+ except ValueError:
0
+ non_int.append(cur_x)
0
+ #end try
0
+ #end for tmp_split
0
         try:
0
             tmp_conv = int(cur_x)
0
             is_int.append(tmp_conv)

Comments

    No one has commented yet.