fixed preview.sh when first char in ytid is - such as -yK
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user