Example #1
0
    def get_hosts(self):
        """ Returns a list with the avaliable downloaders for the file. """

        result = []
        avaliable_downloaders = Downloaders.get_avaliable()

        hosts = self.file_object.file_hosts
        hosts["dummy"] = ""

        for host in hosts:
            if host in avaliable_downloaders:
                result.append(Downloaders.get(host, self.gui_manager, hosts[host]))

        return result
Example #2
0
    def get_hosts(self):
        """ Returns a dict with the avaliable downloaders for the file. """

        result = {}
        avaliable_downloaders = Downloaders.get_avaliable()

        hosts = self.file_object.file_hosts

        hosts["dummy"] = ""

        for host in hosts:
            host = host.lower()
            if host in avaliable_downloaders:
                result[host] = hosts[host]

        return result
Example #3
0
    def get_hosts(self):
        """ Returns a dict with the avaliable downloaders for the file. """

        result = {}
        avaliable_downloaders = Downloaders.get_avaliable()

        hosts = self.file_object.file_hosts

        hosts["dummy"] = ""

        for host in hosts:
            host = host.lower()
            if host in avaliable_downloaders:
                result[host] = hosts[host]

        return result