|
|
@ -687,7 +687,7 @@ struct Video
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def paid
|
|
|
|
def paid
|
|
|
|
reason = info.dig?("playabilityStatus", "reason") || ""
|
|
|
|
reason = info.dig?("playabilityStatus", "reason").try &.as_s || ""
|
|
|
|
return reason.includes? "requires payment"
|
|
|
|
return reason.includes? "requires payment"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
@ -712,7 +712,7 @@ struct Video
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def description
|
|
|
|
def description
|
|
|
|
description = info!
|
|
|
|
description = info
|
|
|
|
.dig?("microformat", "playerMicroformatRenderer", "description", "simpleText")
|
|
|
|
.dig?("microformat", "playerMicroformatRenderer", "description", "simpleText")
|
|
|
|
.try &.as_s || ""
|
|
|
|
.try &.as_s || ""
|
|
|
|
end
|
|
|
|
end
|
|
|
|