Add another option a deleted video can show up

This commit is contained in:
Gergely Hegedus 2025-05-19 20:45:34 +03:00
parent 053aec24c4
commit 9a21cd3ad7

View file

@ -8,6 +8,8 @@ class ThrowIfVideoIsDeletedResponse {
fun invoke(html: String) {
if (html.contains("\"statusMsg\":\"status_deleted")) {
throw VideoDeletedException(html = html)
} else if (html.contains("\"statusMsg\":\"item doesn't exist")) {
throw VideoDeletedException(html = html)
}
}
}