davels / tvdb-bulk-update

MythTV bulk update script using www.tvdb.com. Set MythVideo metadata and posters for tv episodes.

commit 53: d0f2bd8b55d9
parent 52: fddcabff2e9b
branch: default
smarter formatting of episode number in prompt during tvdb lookup show the episode as an integer if the episode is a whole number, otherwise show as the default floating point number.
davels
10 months ago

Changed (Δ96 bytes):

raw changeset »

tvdb_bulk_update.py (3 lines added, 1 lines removed)

Up to file-list tvdb_bulk_update.py:

@@ -488,7 +488,9 @@ def process_file(intid, filename):
488
488
            print "Filename can not be parsed"
489
489
            return
490
490
    (series_name, season_num, episode_num, isdvd) = parts
491
    title = "Series:%s   season:%d   episode:%s" % tuple(parts[:3])
491
    int_ep = int(episode_num)
492
    title = "Series:%s   season:%d   episode:%s" % \
493
        (series_name, season_num, int_ep==episode_num and int_ep or episode_num)
492
494
    if isdvd: title += "   (DVD)"
493
495
    print title
494
496
    series = prompt_search_series(series_name, isdvd)