#!/bin/sh

export PATH

WORKING_DIR="$1"
cd "$WORKING_DIR"

shift 1

/usr/bin/python youtube-dl --no-call-home --cache-dir "$WORKING_DIR" --print-json --all-subs --skip-download --no-playlist "$@" > result.json
