MCPcopy
hub / github.com/alexta69/metube / cancel

Method cancel

app/ytdl.py:553–562  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

551 await self.status_task
552
553 def cancel(self):
554 log.info(f"Cancelling download: {self.info.title}")
555 if self.running():
556 try:
557 self.proc.kill()
558 except Exception as e:
559 log.error(f"Error killing process for {self.info.title}: {e}")
560 self.canceled = True
561 if self.status_queue is not None:
562 self.status_queue.put(None)
563
564 def close(self):
565 log.info(f"Closing download process for: {self.info.title}")

Callers 2

cancelMethod · 0.45
deleteFunction · 0.45

Calls 4

runningMethod · 0.95
infoMethod · 0.80
errorMethod · 0.80
putMethod · 0.80

Tested by

no test coverage detected