def get_lastfm_high_water_mark(config):
    """Get the marker for the latest last.fm track processed."""
    if (not config.has_section('lastfm') or
            not config.has_option('lastfm', 'last_timestamp')):
        return 1

    return config.getint('lastfm', 'last_timestamp')