(cls, output_file, ftinitdownload_resp,
                         seekpos=0, reporthook=None, fallbackhost=None)
return cls.download(
            output_file=output_file, adr=adr, ftkey=ftkey, seekpos=seekpos,
            total_size=total_size, reporthook=reporthook)
This is *almost* a shortcut for:

            >>> TS3FileTransfer.download(
            ...     output_file = file,
            ...     adr = (resp[0]["ip"], int(resp[0]["port"])),
            ...     ftkey = resp[0]["ftkey"],
            ...     seekpos = seekpos,
            ...     total_size = resp[0]["size"],
            ...     reporthook = reporthook
            ...     )

        Note, that the value of ``resp[0]["ip"]`` is a csv list and needs
        to be parsed.
This is *almost* a shortcut for:
This is * almost * a shortcut for :
def download_by_resp(cls, output_file, ftinitdownload_resp,
                         seekpos=0, reporthook=None, fallbackhost=None):
        """
        This is *almost* a shortcut for:

            >>> TS3FileTransfer.download(
            ...     output_file = file,
            ...     adr = (resp[0]["ip"], int(resp[0]["port"])),
            ...     ftkey = resp[0]["ftkey"],
            ...     seekpos = seekpos,
            ...     total_size = resp[0]["size"],
            ...     reporthook = reporthook
            ...     )

        Note, that the value of ``resp[0]["ip"]`` is a csv list and needs
        to be parsed.
        """
        if "ip" in ftinitdownload_resp[0]:
            ip = cls._ip_from_resp(ftinitdownload_resp[0]["ip"])
        elif fallbackhost:
            ip = fallbackhost
        else:
            raise TS3DownloadError(0, "The response did not contain an ip.")

        port = int(ftinitdownload_resp[0]["port"])
        adr = (ip, port)

        ftkey = ftinitdownload_resp[0]["ftkey"]
        total_size = int(ftinitdownload_resp[0]["size"])
        return cls.download(
            output_file=output_file, adr=adr, ftkey=ftkey, seekpos=seekpos,
            total_size=total_size, reporthook=reporthook)
def download_by_resp ( cls , output_file , ftinitdownload_resp , seekpos = 0 , reporthook = None , fallbackhost = None ) : if "ip" in ftinitdownload_resp [ 0 ] : ip = cls . _ip_from_resp ( ftinitdownload_resp [ 0 ] [ "ip" ] ) elif fallbackhost : ip = fallbackhost else : raise TS3DownloadError ( 0 , "The response did not contain an ip." ) port = int ( ftinitdownload_resp [ 0 ] [ "port" ] ) adr = ( ip , port ) ftkey = ftinitdownload_resp [ 0 ] [ "ftkey" ] total_size = int ( ftinitdownload_resp [ 0 ] [ "size" ] ) return cls . download ( output_file = output_file , adr = adr , ftkey = ftkey , seekpos = seekpos , total_size = total_size , reporthook = reporthook )