@@ -1231,17 +1231,18 @@ def enc(strng):
1231
1231
global options
1232
1232
t = strng
1233
1233
if "-E" not in options :
1234
+ t = re .sub (" \' " ,"\' " ,t ) #needed to fix screener guide listing error - '
1234
1235
t = re .sub ("&" ,"&" ,t )
1235
1236
t = re .sub ("\" " ,""" ,t )
1236
1237
t = re .sub ("\' " ,"'" ,t )
1237
1238
t = re .sub ("<" ,"<" ,t )
1238
1239
t = re .sub (">" ,">" ,t )
1239
- t = re .sub ("``" ,""" ,t )
1240
- t = re .sub ("\' \' " ,""" ,t )
1241
- t = re .sub ("''" ,""" ,t )
1240
+ t = re .sub ("``" ,""" ,t ) #needed to fix screener guide listing errors
1241
+ t = re .sub ("\' \' " ,""" ,t ) #needed to fix screener guide listing errors
1242
+ t = re .sub ("''" ,""" ,t ) #needed to fix screener guide listing errors
1242
1243
1243
1244
else :
1244
- if re .search ("amp" ,options ["-E" ]): t = re .sub ("&[^#] " ,"& " ,t )
1245
+ if re .search ("amp" ,options ["-E" ]): t = re .sub ("&" ,"&" ,t )
1245
1246
if re .search ("quot" ,options ["-E" ]): t = re .sub ("\" " ,""" ,t )
1246
1247
if re .search ("apos" ,options ["-E" ]): t = re .sub ("\' " ,"'" ,t )
1247
1248
if re .search ("lt" ,options ["-E" ]): t = re .sub ("<" ,"<" ,t )
@@ -1544,9 +1545,9 @@ def makeDescsortList(optList):
1544
1545
cc = schedule ['cc' ]
1545
1546
if "seasonNum" in program and "episodeNum" in program :
1546
1547
ss = program ["seasonNum" ]
1547
- sf = "Season %0*d" % ( max ( 2 , len ( str (ss ))), int (ss ))
1548
+ sf = "Season " + str (int (ss ))
1548
1549
e = program ["episodeNum" ]
1549
- ef = "Episode %0*d" % ( max ( 2 , len ( str (e ))), int (e ))
1550
+ ef = "Episode " + str (int (e ))
1550
1551
season = sf + " - " + ef
1551
1552
1552
1553
if "credits" in program :
@@ -1561,7 +1562,7 @@ def makeDescsortList(optList):
1561
1562
prev = g
1562
1563
else :
1563
1564
castlist = castlist + ", " + enc (g )
1564
- cast = cast + castlist
1565
+ cast = cast + castlist
1565
1566
1566
1567
if 'title' in program :
1567
1568
prog = enc (program ['title' ])
0 commit comments