def download_torrent(self, download_url):
    torrent_page = retrieve_url(download_url)
    magnet_match = re.search('href\\s*\\=\\s*\\"(magnet[^\\"]+)\\"', torrent_page)
    if (magnet_match and magnet_match.groups()):
        print(((magnet_match.groups()[0] + ' ') + download_url))
    else:
        raise Exception('Error, please fill a bug report!')
def download_torrent(self, download_url):
    torrent_page = retrieve_url(download_url)
    magnet_match = re.search('href\\s*\\=\\s*\\"(magnet[^\\"]+)\\"', torrent_page)
    if (magnet_match and magnet_match.groups()):
        print(((magnet_match.groups()[0] + ' ') + download_url))
    else:
        raise Exception('Error, please fill a bug report!')