def get_direct_filename(self):
    'Returns the filename that should be used for direct downloads.'
    directFilename = lnp.config.get_string('updates/directFilename')
    if directFilename:
        return directFilename
    url_fragments = urlparse(self.get_direct_url())
    return os.path.basename(unquote(url_fragments.path))
Returns the filename that should be used for direct downloads.
def get_direct_filename(self):
    
    directFilename = lnp.config.get_string('updates/directFilename')
    if directFilename:
        return directFilename
    url_fragments = urlparse(self.get_direct_url())
    return os.path.basename(unquote(url_fragments.path))