Favor poster from options over precomputed one
parent
baf1c96c7e
commit
0e42b82e5d
@ -1,12 +1,3 @@
|
||||
class EmbedPlaybackOptions < PlaybackOptions
|
||||
attribute :autoplay, Boolean, default: false
|
||||
|
||||
def as_json(*)
|
||||
if !poster && t && t > 0
|
||||
super.merge({ poster: "npt:#{t}" })
|
||||
else
|
||||
super
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue