Refactored the ffprobe stream-selection logic to handle rejected files
better:

  * Streams tagged as a non-default disposition are not considered
  * If a file has any video stream, the audio stream will be ignored

This should prevent videos from being misreported as invalid audio
codecs, etc.
This commit is contained in:
calzoneman 2016-03-21 23:28:21 -07:00
parent a96b85fa5b
commit 7448429341
3 changed files with 65 additions and 29 deletions

View file

@ -2064,6 +2064,7 @@ function queueMessage(data, type) {
}
}
var text = data.msg;
text = text.replace(/(https?:[^ ]+)/g, "<a href='$1' target='_blank'>$1</a>");
if (typeof data.link === "string") {
text += "<br><a href='" + data.link + "' target='_blank'>" +
data.link + "</a>";