filter with regex and get filename from headers

changed to allow filtering torrents by regex and to allow downloading when torrent url is not filename