Handle torrents missing magnet links or torrent files

Designed to fix issue #2, fixes issue #3 at the same time. This is an alternative to @unaizalakain's pull as it does not replace BeautifulSoup4.