mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-01-30 18:51:17 +00:00
Add error message when comments are disabled
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user