diff --git a/scripts/lb-wrapper b/scripts/lb-wrapper index 6b92e6fce2..763632e019 100644 --- a/scripts/lb-wrapper +++ b/scripts/lb-wrapper @@ -36,10 +36,10 @@ fi log "Moving ${SURVEY_DB_FILE} aside if it already exists." mv ${SURVEY_DB_FILE} ${SURVEY_DB_FILE}.$(date +%F_%T_%Z) || true -log "Running command: ${XKLB_EXECUTABLE} tubeadd ${SURVEY_DB_FILE} ${URL} --verbose && ${XKLB_EXECUTABLE} dl ${SURVEY_DB_FILE} --prefix ${TMP_DOWNLOADS_DIR} --write-thumbnail --format='bestvideo[height<=720][vcodec=vp9]+bestaudio/best[height<=720][vcodec=vp9]' --video ${URL} --verbose" +log "Running command: ${XKLB_EXECUTABLE} tubeadd ${SURVEY_DB_FILE} ${URL} --verbose && ${XKLB_EXECUTABLE} dl ${SURVEY_DB_FILE} --prefix ${TMP_DOWNLOADS_DIR} --write-thumbnail --format-sort='res:720,tbr~2000' --video ${URL} --verbose" OUTPUT=$(${XKLB_EXECUTABLE} tubeadd ${SURVEY_DB_FILE} ${URL} --verbose && \ ${XKLB_EXECUTABLE} dl ${SURVEY_DB_FILE} --prefix ${TMP_DOWNLOADS_DIR} --write-thumbnail \ - --format='bestvideo[height<=720][vcodec=vp9]+bestaudio/best[height<=720][vcodec=vp9]' --video ${URL} --verbose) + --format-sort='res:720,tbr~2000' --video ${URL} --verbose) if [ $? -ne 0 ]; then log "An error occurred while running the command. Output: ${OUTPUT}"