def mode_station(pid):
    base = datetime.datetime.today()
    for delta in range(30):
        date = (base - datetime.timedelta(days=delta))
        year = ('%04d' % date.year)
        month = ('%02d' % date.month)
        day = ('%02d' % date.day)
        url = build_url({'mode': 'station_date', 'pid': pid, 'year': year, 'month': month, 'day': day})
        list_item = xbmcgui.ListItem(date.strftime('%Y-%m-%d (%A)'))
        xbmcplugin.addDirectoryItem(addon_handle, url, list_item, isFolder=True)
    xbmcplugin.endOfDirectory(addon_handle)
def mode_station(pid):
    base = datetime.datetime.today()
    for delta in range(30):
        date = (base - datetime.timedelta(days=delta))
        year = ('%04d' % date.year)
        month = ('%02d' % date.month)
        day = ('%02d' % date.day)
        url = build_url({'mode': 'station_date', 'pid': pid, 'year': year, 'month': month, 'day': day})
        list_item = xbmcgui.ListItem(date.strftime('%Y-%m-%d (%A)'))
        xbmcplugin.addDirectoryItem(addon_handle, url, list_item, isFolder=True)
    xbmcplugin.endOfDirectory(addon_handle)