/gif/ and /wsg/ allow audio and a larger duration limit.
This commit is contained in:
parent
25da29625e
commit
a00f4a9871
@ -397,7 +397,7 @@ QR =
|
|||||||
else if duration > QR.max_duration_video
|
else if duration > QR.max_duration_video
|
||||||
QR.error "#{file.name}: Video too long (video: #{duration}s, max: #{QR.max_duration_video}s)"
|
QR.error "#{file.name}: Video too long (video: #{duration}s, max: #{QR.max_duration_video}s)"
|
||||||
pass = false
|
pass = false
|
||||||
if video.mozHasAudio or video.webkitAudioDecodedByteCount
|
if g.BOARD.ID not in ['gif', 'wsg'] and (video.mozHasAudio or video.webkitAudioDecodedByteCount)
|
||||||
QR.error "#{file.name}: Audio not allowed"
|
QR.error "#{file.name}: Audio not allowed"
|
||||||
pass = false
|
pass = false
|
||||||
cb pass, video
|
cb pass, video
|
||||||
@ -495,7 +495,7 @@ QR =
|
|||||||
+nodes.fileInput.max
|
+nodes.fileInput.max
|
||||||
|
|
||||||
QR.max_width_video = QR.max_height_video = 2048
|
QR.max_width_video = QR.max_height_video = 2048
|
||||||
QR.max_duration_video = 120
|
QR.max_duration_video = if g.BOARD.ID in ['gif', 'wsg'] then 300 else 120
|
||||||
|
|
||||||
if Conf['Show New Thread Option in Threads']
|
if Conf['Show New Thread Option in Threads']
|
||||||
$.addClass QR.nodes.el, 'show-new-thread-option'
|
$.addClass QR.nodes.el, 'show-new-thread-option'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user