Add error message when comments are disabled

This commit is contained in:
syeopite
2023-08-08 21:49:06 -07:00
parent b173d4acf2
commit d0fecd2bc0
7 changed files with 52 additions and 11 deletions

View File

@@ -192,6 +192,11 @@ struct Video
}
end
# Returns true if comments are enabled on the video
def comments?
return info["commentsEnabled"].as_bool
end
# Macros defining getters/setters for various types of data
private macro getset_string(name)