'Return the search url'

def searchurl(self, artist, album, year, format):

    searchterm = ''
    if (artist != 'Various    Artists'):
        searchterm = artist
        searchterm = (searchterm + '    ')
    searchterm = (searchterm + album)
    searchterm = (searchterm + '    ')
    searchterm = (searchterm + year)
    if (format == 'lossless'):
        format = '+lossless'
        self.maxsize = 10000000000
    elif (format == 'lossless+mp3'):
        format = '+lossless||mp3||aac'
        self.maxsize = 10000000000
    else:
        format = '+mp3||aac'
        self.maxsize = 300000000
    sort = '&o=7&s=2'
    try:
        searchurl = ('%s?nm=%s%s%s' % (self.search_referer, urllib.quote(searchterm), format, sort))
    except:
        searchterm = searchterm.encode('utf-8')
        searchurl = ('%s?nm=%s%s%s' % (self.search_referer, urllib.quote(searchterm), format, sort))
    logger.info('Searching    rutracker    using    term:    %s', searchterm)
    return searchurl
