(self, thread)
| 100 | # self.restart_free = False |
| 101 | |
| 102 | def _process(self, thread): |
| 103 | self.thread = thread |
| 104 | |
| 105 | try: |
| 106 | self._initialize() |
| 107 | self._setup() |
| 108 | |
| 109 | #@TODO: Enable in 0.4.10 |
| 110 | # self.pyload.hookManager.downloadPreparing(self.pyfile) |
| 111 | # self.check_status() |
| 112 | self.check_duplicates() |
| 113 | |
| 114 | self.pyfile.setStatus("starting") |
| 115 | |
| 116 | try: |
| 117 | self.log_info(_("Processing url: ") + self.pyfile.url) |
| 118 | self.process(self.pyfile) |
| 119 | self.check_status() |
| 120 | |
| 121 | self._check_download() |
| 122 | |
| 123 | except Fail, e: # @TODO: Move to PluginThread in 0.4.10 |
| 124 | self.log_warning(_("Premium download failed") if self.premium else |
| 125 | _("Free download failed"), |
| 126 | e) |
| 127 | if self.no_fallback is False and self.config.get('fallback', True) and self.premium: |
| 128 | self.restart(premium=False) |
| 129 | |
| 130 | else: |
| 131 | raise Fail(decode(e)) |
| 132 | |
| 133 | finally: |
| 134 | self._finalize() |
| 135 | |
| 136 | #@TODO: Remove in 0.4.10 |
| 137 | def _finalize(self): |
nothing calls this directly
no test coverage detected