Upkeep for data directory
This commit is contained in:
@@ -473,6 +473,9 @@ func (t *TorrentManager) canCapacityHandle() bool {
|
||||
}
|
||||
|
||||
func (t *TorrentManager) markAsUnplayable(torrent *Torrent, reason string) {
|
||||
if torrent.State.Is("unplayable") {
|
||||
return
|
||||
}
|
||||
t.log.Warnf("Marking torrent %s as unplayable - %s", t.GetKey(torrent), reason)
|
||||
err := torrent.State.Event(context.Background(), "mark_as_unplayable")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user