Ticket #11071: ttvdb.patch

File ttvdb.patch, 614 bytes (added by joel@…, 7 years ago)

Possible patch

  • ttvdb.py

    old new  
    11811181        print "Everything appears to be in order"
    11821182        sys.exit(0)
    11831183
    1184     # Make everything unicode utf8
     1184    # Make everything unicode utf8 and strip leading zeros
    11851185    for index in range(len(series_season_ep)):
    11861186        series_season_ep[index] = unicode(series_season_ep[index], 'utf8')
     1187        if _can_int(series_season_ep[index]):
     1188            series_season_ep[index] = series_season_ep[index].lstrip('0')
    11871189
    11881190    if opts.debug == True:
    11891191        print "opts", opts