From a9da349d15d6723bb13bc098b58381aa76ab725e Mon Sep 17 00:00:00 2001 From: Alexander Avery Date: Sun, 4 Sep 2022 17:58:53 -0400 Subject: [PATCH] added original shell script to readme --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b9e4d81..78956c5 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,12 @@ # popcorn -Simple program for finding and reading remote videos with libssh \ No newline at end of file +Simple program for finding and reading remote videos with libssh + +Inspired by the shell script: +```bash +HOST=192.168.1.2 +USER=pi +PATH=$((ssh $USER@$HOST find /var/www/public/media -type f -name "*mp4" | rev | cut -d'/' -f1 | rev | sort) | dmenu -l 30 | xargs -I% ssh $USER@$HOST find /var/www/public/media -name '"%"') + +/usr/bin/vlc "sftp://$USER@$HOST$PATH" +```