#NEWLINE# def download_from_link( self , link , save_path = None , label = '' ) : #NEWLINE# #INDENT# '\n        Download torrent using a link.\n\n        :param link: URL Link or list of.\n        :param save_path: Path to download the torrent.\n        :param label: Label of the torrent(s).\n\n        :return: Empty JSON data.\n        ' #NEWLINE# if ( not isinstance ( link , list ) ) : #NEWLINE# #INDENT# link = [ link ] #NEWLINE# #UNINDENT# data = { #NEWLINE# #INDENT# 'urls' : link , #NEWLINE# #UNINDENT# } #NEWLINE# if save_path : #NEWLINE# #INDENT# data . update ( { #NEWLINE# #INDENT# 'savepath' : save_path , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# if label : #NEWLINE# #INDENT# data . update ( { #NEWLINE# #INDENT# 'label' : label , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# return self . _post ( 'command/download' , data = data )