break_torrent - TriggerRepair repair_torrent - Repair: started repair process mark_as_repaired - convertToTorrent: if all links are intact - mergeTorrents: file statistics brokenCount==0, okCount > 0 - repair: after reinsert the whole torrent, progress == 100, checked broken links - assignLinks: when the only link is a rar, then it's not really broken (just unplayable) ----------------------------- break_file - DownloadFile: cannot be unrestricted - streamFileToResponse: error downloading the url - streamFileToResponse: status code != 2xx repair_file - convertToTorrent: if all links are intact - assignLinks: when we find the matching file - isStillBroken: same approach as convertToTorrent (all links are intact), this is only called on repair method no.1 and progress == 100 immediately delete_file - HandleDeleteFile: when only the file is deleted, not the whole torrent ----------------------------- break_torrent - ok_torrent --> broken_torrent repair_torrent - broken_torrent --> under_repair_torrent mark_as_repaired - broken_torrent, under_repair_torrent --> ok_torrent break_file - ok_file --> broken_file repair_file - broken_file --> ok_file delete_file - ok_file, broken_file --> deleted_file