354 |
357 |
355 def readeit(eitfile): |
358 def readeit(eitfile): |
356 """Module docstring. |
359 """Module docstring. |
357 Read Eit File and show the information. |
360 Read Eit File and show the information. |
358 """ |
361 """ |
359 eitlist = EitList(eitfile) |
362 eitlist = eitinfo(eitfile) |
360 print "Name: ", eitlist.get_name() |
363 out = "Movie name: %s" % eitlist.get_name() |
361 print "Genre: ", eitlist.get_genre() |
364 out += "\nGenre: %s" % eitlist.get_genre() |
362 print "Components: ", eitlist.get_components() |
365 out += "\nComponents: %s" % eitlist.get_components() |
363 print "StartDate: ", eitlist.get_date() |
366 out += "\nStartDate: %s" % eitlist.get_date() |
364 print "Description: ", eitlist.get_description() |
367 out += "\nDescription: %s" % eitlist.get_description() |
365 print "Duration: ", eitlist.get_duration() |
368 out += "\nDuration: %02i:%02i:%02i" % eitlist.get_duration() |
366 print "Minutes: ", eitlist.get_duration_seconds() / 60 |
369 out += " (%s minutes)" % (eitlist.get_duration_seconds() / 60) |
367 |
370 |
368 #eitlist.dumpEit() |
371 print out |
|
372 return out |
369 |
373 |
370 def main(): |
374 def main(): |
371 # parse command line options |
375 # parse command line options |
372 try: |
376 try: |
373 opts, args = getopt.getopt(sys.argv[1:], "h", ["help"]) |
377 opts, args = getopt.getopt(sys.argv[1:], "h", ["help"]) |