def METHOD_NAME(self, task, config):
    if config is False:
        return
    config = self.prepare_config(config)
    # Create the conversion target directory
    converted_path = os.path.join(task.manager.config_base, 'converted')
    timeout = parse_timedelta(config['timeout']).total_seconds()
    if not os.path.isdir(converted_path):
        os.mkdir(converted_path)
    for entry in task.accepted:
        if entry['url'].startswith('magnet:'):
            entry.setdefault('urls', [entry['url']])
            try:
                logger.info('Converting entry {} magnet URI to a torrent file', entry['title'])
                torrent_file = self.magnet_to_torrent(entry['url'], converted_path, timeout)
            except (plugin.PluginError, TypeError) as e:
                logger.error(
                    'Unable to convert Magnet URI for entry {}: {}', entry['title'], e
                )
                if config['force']:
                    entry.fail('Magnet URI conversion failed')
                continue
            # Windows paths need an extra / prepended to them for url
            if not torrent_file.startswith('/'):
                torrent_file = '/' + torrent_file
            entry['url'] = torrent_file
            entry['file'] = torrent_file
            # make sure it's first in the list because of how download plugin works
            entry['urls'].insert(0, f'file://{quote(torrent_file)}')