@@ -320,14 +320,14 @@ def on_td (self, tag, attrs):
320
320
elif re .search ('zc-g-S' ,my_dict [cls ]):
321
321
programs [cp ]["genres" ]["sports" ] = 1
322
322
323
- if re .search (" ^MV" ,cp ):
324
- programs [cp ]["genres" ]["movie" ] = 1
325
- elif re .search (" ^SP" ,cp ):
326
- programs [cp ]["genres" ]["sports" ] = 1
327
- elif re .search (" ^EP" ,cp ):
328
- programs [cp ]["genres" ]["series" ] = 9
329
- elif re .search (" ^SH" ,cp ) and "-j" in options :
330
- programs [cp ]["genres" ]["series" ] = 9
323
+ # if re.search(' ^MV' ,cp):
324
+ # programs[cp]["genres"]["movie"] = 1
325
+ # elif re.search(' ^SP' ,cp):
326
+ # programs[cp]["genres"]["sports"] = 1
327
+ # elif re.search(' ^EP' ,cp):
328
+ # programs[cp]["genres"]["series"] = 9
329
+ # elif re.search(' ^SH' ,cp) and "-j" in options:
330
+ # programs[cp]["genres"]["series"] = 9
331
331
332
332
if cp != - 1 and "-D" in options :
333
333
fn = os .path .join (cacheDir ,cp + ".js.gz" )
@@ -396,7 +396,7 @@ def on_li(self, tag, attrs):
396
396
schedule [cs ][sch ]["cc" ] = 'CC'
397
397
elif re .search ('zc-ic' ,my_dict [cls ]):
398
398
on_li_zc_ic = True
399
- elif re .search ('zc-icons -live' ,my_dict [cls ]):
399
+ elif re .search ('zc-ic -live' ,my_dict [cls ]):
400
400
schedule [cs ][sch ]["live" ] = 'Live'
401
401
setOriginalAirDate ()
402
402
elif re .search ('zc-icons-hd' ,my_dict [cls ]):
@@ -1322,7 +1322,7 @@ def printProgrammes(fh):
1322
1322
continue
1323
1323
p = schedule [station ][s ]["program" ]
1324
1324
startTime = convTime (schedule [station ][s ]["time" ])
1325
- startTZ = timezone (int (schedule [station ][s ]["time" ]))
1325
+ startTZ = timezone (int (schedule [station ][s ]["time" ]))
1326
1326
if "endtime" in schedule [station ][s ]:
1327
1327
endTime = schedule [station ][s ]["endtime" ]
1328
1328
else :
@@ -1359,27 +1359,22 @@ def printProgrammes(fh):
1359
1359
if "originalAirDate" in programs [p ]:
1360
1360
origdate = enc (convDateLocal (programs [p ]["originalAirDate" ]))
1361
1361
finaldate = datetime .datetime .strptime (origdate , "%Y%m%d" ).strftime ('%B %d, %Y' )
1362
- date = "Aired: " + finaldate
1362
+ date = "Originally Aired: " + finaldate
1363
1363
if "movie_year" in programs [p ]:
1364
1364
date = "Released: " + programs [p ]["movie_year" ]
1365
1365
if "rating" in programs [p ]:
1366
- ratings = enc (programs [p ]["rating" ]) + bullet
1366
+ ratings = bullet + enc (programs [p ]["rating" ])
1367
1367
if "new" in schedule [station ][s ]:
1368
- new = "NEW" + bullet
1369
- origdate = startTime
1370
- finaldate = datetime .datetime .strptime (origdate , "%Y%m%d%H%M%S" ).strftime ('%B %d, %Y' )
1371
- date = "Airs: " + finaldate
1368
+ new = "NEW"
1369
+ date = ""
1372
1370
if "live" in schedule [station ][s ]:
1373
- live = "LIVE" + bullet
1374
- origdate = startTime
1375
- finaldate = datetime .datetime .strptime (origdate , "%Y%m%d%H%M%S" ).strftime ('%B %d, %Y' )
1376
- date = "Airs: " + finaldate
1371
+ live = "LIVE"
1372
+ date = ""
1377
1373
if "quality" in schedule [station ][s ]:
1378
- hd = "HD" + bullet
1374
+ hd = bullet + "HD"
1379
1375
if "cc" in schedule [station ][s ]:
1380
- cc = "CC" + bullet
1376
+ cc = bullet + "CC"
1381
1377
if "credits" in programs [p ]:
1382
- global sortThing1 , sortThing2
1383
1378
sortThing1 = str (p )
1384
1379
sortThing2 = "credits"
1385
1380
cast = "Cast: "
@@ -1391,8 +1386,8 @@ def printProgrammes(fh):
1391
1386
prev = g
1392
1387
else :
1393
1388
castlist = castlist + ", " + enc (g )
1394
- cast = cast + castlist + bullet
1395
- tmp = tmp + live + new + ratings + hd + cc + cast + date
1389
+ cast = bullet + cast + castlist
1390
+ tmp = tmp + live + new + date + ratings + hd + cc + cast
1396
1391
tmp = tmp + end
1397
1392
fh .write (tmp )
1398
1393
@@ -1459,10 +1454,12 @@ def printProgrammes(fh):
1459
1454
cc = True
1460
1455
if not new and not live and re .search ("^EP|^SH|^\d" , str (p )):
1461
1456
fh .write ("\t \t <previously-shown " )
1457
+ oadTZ = ""
1462
1458
if "originalAirDate" in programs [p ]:
1463
1459
date = convDateLocal (programs [p ]["originalAirDate" ])
1464
- fh .write ("start=\" " + date + "000000\" " )
1465
- fh .write ("/>\n " )
1460
+ oadTZ = timezone (int (programs [p ]["originalAirDate" ]))
1461
+ fh .write ("start=\" " + date + "000000" + " " + oadTZ + "\" " )
1462
+ fh .write (" />\n " )
1466
1463
if new :
1467
1464
fh .write ("\t \t <new />\n " )
1468
1465
# not part of XMLTV format yet?
0 commit comments