Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/o/c/ochDownloader-HEAD/qt/add_downloads.py   ochDownloader(Download)
        if download_item.save_as:
            widget.setText(download_item.save_as)
        elif download_item.name != cons.UNKNOWN:
            widget.setText(download_item.name)
 
    def add_downloads_to_check(self, links_list, copy_link=True):
        for link in links_list:
            download_item = api.create_download_item(cons.UNKNOWN, link, copy_link=copy_link)
            api.add_to_checker(download_item)
            item = [download_item.id, True, self.icons_dict[cons.LINK_CHECKING], cons.UNKNOWN, None, None, None]

src/o/c/ochDownloader-HEAD/plugins/sendspace_com/link_checker.py   ochDownloader(Download)
    def check(self, link):
        """"""
        name = cons.UNKNOWN
        size = 0
        status_msg = None
                link_status = cons.LINK_ALIVE
            else:
                link_status, name, size = cons.LINK_DEAD, cons.UNKNOWN, 0
        except (urllib2.URLError, httplib.HTTPException, socket.error) as err:
            status_msg = "Error: {0}".format(err)
        except Exception as err:
            name, size = cons.UNKNOWN, 0

src/o/c/ochDownloader-HEAD/core/download_checker/checker.py   ochDownloader(Download)
    def __init__(self, download_item):
        """"""
        threading.Thread.__init__(self)
        self.file_name = cons.UNKNOWN
        self.host = download_item.host
        except ImportError as err:
            logger.debug(err)
            self.file_name = utils.normalize_file_name(utils.get_filename_from_url(self.link)) or cons.UNKNOWN #may be an empty str
            self.link_status = cons.LINK_ERROR
        except Exception as err:

src/o/c/ochDownloader-HEAD/plugins/mediafire_com/link_checker.py   ochDownloader(Download)
    def check(self, link):
        """"""
        name = cons.UNKNOWN
        size = 0
        status_msg = None

src/o/c/ochDownloader-HEAD/core/download_checker/manager.py   ochDownloader(Download)
                download_item.size = th.size
                download_item.status_msg = th.status_msg
                if download_item.name == cons.UNKNOWN: #may be downloading
                    download_item.name = th.file_name
                self.__ready_downloads[id_item] = download_item

src/o/c/ochDownloader-HEAD/plugins/zippyshare_com/link_checker.py   ochDownloader(Download)
    def check(self, link):
        """"""
        return cons.LINK_ERROR, cons.UNKNOWN, 0, None
 

src/o/c/ochDownloader-HEAD/plugins/sendmyway_com/link_checker.py   ochDownloader(Download)
    def check(self, link):
        """"""
        return cons.LINK_ERROR, cons.UNKNOWN, 0, None

src/o/c/ochDownloader-HEAD/plugins/multiupload_nl/link_checker.py   ochDownloader(Download)
    def check(self, link):
        """"""
        return cons.LINK_ERROR, cons.UNKNOWN, 0, None
 

src/o/c/ochDownloader-HEAD/plugins/mega_co_nz/link_checker.py   ochDownloader(Download)
    def check(self, link):
        """"""
        return cons.LINK_ERROR, cons.UNKNOWN, 0, None

src/o/c/ochDownloader-HEAD/plugins/gamefront_com/link_checker.py   ochDownloader(Download)
    def check(self, link):
        """"""
        return cons.LINK_ERROR, cons.UNKNOWN, 0, None
 

  1 | 2  Next