Add another option a deleted video can show up
This commit is contained in:
parent
053aec24c4
commit
9a21cd3ad7
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue