Exemplo n.º 1
0
def ADD_SERIES(addASIN, isPrime=True, export=False):
    shows = tvDB.lookupShowsdb(addASIN, isPrime)
    for showdata in shows:
        if export:
            xbmclibrary.EXPORT_SHOW(showdata[0])
        else:
            listtv.ADD_SHOW_ITEM(showdata, 'appfeed', 'BROWSE_SEASONS4SERIES')
Exemplo n.º 2
0
def EXPORT_SHOW(asin=None):
    if not asin:
        asin = args.get('asin')
    for data in tvDB.lookupTVdb(asin, tbl='shows', single=False):
        Info = listtv.ADD_SHOW_ITEM(data, onlyinfo=True)
        for showasin in Info['Asins'].split(','):
            asins = tvDB.lookupTVdb(showasin,
                                    rvalue='asin',
                                    tbl='seasons',
                                    name='seriesasin',
                                    single=False)
            for asin in asins:
                if asin:
                    EXPORT_SEASON(asin[0].split(',')[0])
Exemplo n.º 3
0
def ADD_SEASON_SERIES(addASIN,
                      mode='appfeed',
                      submode='BROWSE_SEASONS4SERIES',
                      isPrime=True,
                      checklist='',
                      export=False):
    seasons = tvDB.lookupSeasondb(addASIN, isPrime)
    for seasondata in seasons:
        if seasondata[1] not in checklist:
            shows = tvDB.lookupShowsdb(seasondata[1], isPrime)
            for showdata in shows:
                if export:
                    xbmclibrary.EXPORT_SHOW(showdata[0])
                else:
                    listtv.ADD_SHOW_ITEM(showdata, mode, submode)
                return showdata[0], showdata[1]
    return False, False
Exemplo n.º 4
0
def EXPORT_SHOW(asin=False, dispnotif=True):
    SetupLibrary()
    if not asin: asin = common.args.asin
    for data in tvDB.lookupTVdb(asin, tbl='shows', single=False):
        Info = listtv.ADD_SHOW_ITEM(data, onlyinfo=True)
        directorname = os.path.join(TV_SHOWS_PATH,
                                    common.cleanName(Info['Title']))
        CreateDirectory(directorname)
        for showasin in Info['Asins'].split(','):
            asins = tvDB.lookupTVdb(showasin,
                                    rvalue='asin',
                                    tbl='seasons',
                                    name='seriesasin',
                                    single=False)
            for asin in asins:
                if asin:
                    EXPORT_SEASON(asin[0].split(',')[0])