From e2b9d1434ac87bf2fa160b09924eee84b9b123cb Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 20 Dec 2012 11:15:48 +0700 Subject: //god/streams/ - cleanup --- god/streams/bin/helper/streamfind | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 god/streams/bin/helper/streamfind (limited to 'god/streams/bin/helper/streamfind') diff --git a/god/streams/bin/helper/streamfind b/god/streams/bin/helper/streamfind new file mode 100644 index 00000000..32b84a4e --- /dev/null +++ b/god/streams/bin/helper/streamfind @@ -0,0 +1,10 @@ +#!/bin/sh +cat stream.db | while read url name;do + curl $url --max-time 1 2>/dev/null| sed -n 's/[fF]ile[0-9]=\(.*\)/\1/p' > "streamfinder/$name" + if [ "x`cat \"streamfinder/$name\"`" == "x" ];then + rm "streamfinder/$name" + echo "$name empty or not a stream" + else + echo "wrote $name" + fi +done -- cgit v1.2.3