Cp+megalink High Quality (360p)
# ---------- Main logic ---------- if [[ -f "$INPUT" ]]; then # Input is a file → read line‑by‑line while IFS= read -r line || [[ -n "$line" ]]; do # skip empty lines / comments [[ -z "$line" || "$line" =~ ^# ]] && continue download_one "$line" done < "$INPUT" else # Assume the argument itself is a URL download_one "$INPUT" fi