Пример #1
0
    def __init__(self, dev=RIPPER_DEV):

        # Defaults and Misc
        self.cddb_thd = None
        self.ripper_thd = None
        self.encoder_thd = None
        self.is_ripping = False
        self.is_encoding = False
        self.is_cddbing = False
        self.stop_request = False
        self.dev = dev

        cd_logic.set_dev(dev)
        status = cd_logic.check_dev()
        if status == -1:
            self.drive_exists = False
        else:
            self.drive_exists = True
        self.disc_id = None
Пример #2
0
 def timerEvent(self, e):
     """ """
     status = cd_logic.check_dev()
     if status != self._status:
         self._status = status
         self.sendUpdate()