Beispiel #1
0
def ADD_SEASON(addASIN,
               mode='appfeed',
               submode='BROWSE_EPISODES',
               isPrime=True,
               seriesTitle=True,
               inWatchlist=False,
               export=False,
               addSeries=False,
               seriesfilter=False):
    seasons = tvDB.lookupSeasondb(addASIN, isPrime, addSeries=addSeries)
    for seasondata in seasons:
        if export:
            xbmclibrary.EXPORT_SEASON(seasondata[0])
        else:
            if not seriesfilter:
                listtv.ADD_SEASON_ITEM(seasondata,
                                       mode=mode,
                                       submode=submode,
                                       seriesTitle=seriesTitle,
                                       inWatchlist=inWatchlist)
            elif seriesfilter == seasondata[5]:
                listtv.ADD_SEASON_ITEM(seasondata,
                                       mode=mode,
                                       submode=submode,
                                       seriesTitle=seriesTitle,
                                       inWatchlist=inWatchlist)
Beispiel #2
0
def ADD_SEASON(addASIN,mode='appfeed',submode='BROWSE_EPISODES',isPrime=True,seriesTitle=True,inWatchlist=False,export=False,addSeries=False,seriesfilter=False):
    seasons = tvDB.lookupSeasondb(addASIN,isPrime,addSeries=addSeries)
    for seasondata in seasons:
        if export:
            xbmclibrary.EXPORT_SEASON(seasondata[0])
        else:
            if not seriesfilter:
                listtv.ADD_SEASON_ITEM(seasondata,mode=mode,submode=submode,seriesTitle=seriesTitle,inWatchlist=inWatchlist)
            elif seriesfilter == seasondata[5]:
                listtv.ADD_SEASON_ITEM(seasondata,mode=mode,submode=submode,seriesTitle=seriesTitle,inWatchlist=inWatchlist)
Beispiel #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
Beispiel #4
0
def EXPORT_SEASON(asin=False):
    if not asin:
        asin=common.args.asin
    #SetupLibrary()
    seasons = tvDB.lookupSeasondb(asin)
    for asin,seriesASIN,episodeFeed,poster,season,seriestitle,plot,actors,network,mpaa,genres,premiered,year,stars,votes,episodetotal,watched,unwatched,isHD,isprime in seasons:
        directorname = os.path.join(TV_SHOWS_PATH,seriestitle.replace(':',''))
        CreateDirectory(directorname)
        name = 'Season '+str(season)
        if isHD:
            name+=' HD'
        seasonpath = os.path.join(directorname,name)
        CreateDirectory(seasonpath)
        episodes = tvDB.loadTVEpisodesdb(seriestitle,season,isHD)
        for episodedata in episodes:
            EXPORT_EPISODE(episodedata[0],isHD=isHD)
Beispiel #5
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