Skip to content

Commit

Permalink
Merge branch 'fixissue1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Rossoni committed Aug 2, 2021
2 parents 112a717 + 2806b44 commit 86ad254
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/ytdl-mpv
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,11 @@ _cacheTable() {
# create search_table and cache items
sqlite3 "${DB}" "create table if not exists ${search_table} (id str, title str)"
sed -E "N;s/(.*)\n(.*)/\2\,\"\1\"/" "$CACHEDIR/$search_table" \
| sqlite3 "${DB}" \
".import --csv /dev/stdin ${search_table}" 2> /dev/null
| sqlite3 -separator ',' "${DB}" \
".import /dev/stdin ${search_table}" 2> /dev/null
# create global table and cache search table items
sqlite3 -header -csv "${DB}" "select * from ${search_table}" \
| sqlite3 "${DB}" ".import --csv /dev/stdin ${global_table}" 2> /dev/null
| sqlite3 -separator ',' "${DB}" ".import /dev/stdin ${global_table}" 2> /dev/null
}

# ytdl-mpv main interactive menu
Expand Down

0 comments on commit 86ad254

Please sign in to comment.