Ticket #7027: jamu.diff
File jamu.diff, 1.4 KB (added by , 15 years ago) |
---|
-
jamu.py
old new 4355 4355 # Prossess all TV shows and Movies 4356 4356 for program in programs: 4357 4357 program['need'] = False # Initalize that this program does not need graphic(s) downloaded 4358 if program['subtitle'] :4358 if program['subtitle'] or not program.has_key('originalairdate') or program['originalairdate'] == u'0000': 4359 4359 graphics_name = program['title'] 4360 4360 else: 4361 if program['originalairdate'] == u'0000': 4362 graphics_name = program['title'] 4363 else: 4364 graphics_name = "%s (%s)" % (program['title'], program['originalairdate']) 4361 graphics_name = "%s (%s)" % (program['title'], program['originalairdate']) 4365 4362 # Search for graphics that are already downloaded 4366 4363 for directory in graphicsDirectories.keys(): 4367 4364 if directory == 'screenshot': # There is no downloading of screenshots required … … 4455 4452 if len(programs): 4456 4453 sys.stdout.write(u'\n-------------Scheduled & Recorded----------\n' ) 4457 4454 for program in programs: 4458 if program['subtitle'] :4455 if program['subtitle'] or not program.has_key('originalairdate'): 4459 4456 sys.stdout.write(u'%s\n' % (program['title'], )) 4460 4457 else: 4461 4458 sys.stdout.write(u'%s\n' % ("%s (%s)" % (program['title'], program['originalairdate'])))