diff options
| -rw-r--r-- | .gitignore | 3 | ||||
| -rwxr-xr-x | preview.sh | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -1,3 +1,6 @@ +download.txt +download_err.txt +thumberr.txt *youtube_stuffs.db thumbnails/** vids/** @@ -1,5 +1,5 @@ #!/bin/bash cd "$(dirname "$0")" rowid="$(echo $1 | sed 's/|.*//g')" -thumbnail="$(ls thumbnails/ | grep "$(sqlite3 ./youtube_stuffs.db "select id from ytlist where rowid=$rowid;").*" )" +thumbnail="$(ls thumbnails/ | grep -e "$(sqlite3 ./youtube_stuffs.db "select id from ytlist where rowid=$rowid;").*" )" printf "thumbnails/$thumbnail" |
