diff --git a/lib/yt/models/content_detail.rb b/lib/yt/models/content_detail.rb index 0777dc53..6841bf07 100644 --- a/lib/yt/models/content_detail.rb +++ b/lib/yt/models/content_detail.rb @@ -14,7 +14,7 @@ def initialize(options = {}) end # @return [Integer] the duration of the video (in seconds). - has_attribute :duration, default: 0 do |value| + has_attribute :duration, default: "PT0H0M0S" do |value| to_seconds value end