google slides works enough for search

This commit is contained in:
Bel LaPointe
2022-02-16 16:14:31 -07:00
parent 9219e3656b
commit eadc4080b1
3 changed files with 12 additions and 8 deletions

View File

@@ -1,6 +1,10 @@
#! /bin/bash
google() (
_is_slides() {
echo "$@" | grep -q 'docs.google.com.presentation'
}
_is_sheets() {
echo "$@" | grep -q 'docs.google.com.spreadsheets'
}
@@ -10,7 +14,7 @@ google() (
}
is() {
_is_sheets "$@" || _is_doc "$@"
_is_sheets "$@" || _is_doc "$@" || _is_slides "$@"
}
human_url() {

View File

@@ -2,7 +2,7 @@
rclone() (
get_google() {
local cache_key="rclone get google $*"
local cache_key="rclone get google 2 $*"
if cache get "$cache_key"; then
return 0
fi
@@ -13,7 +13,7 @@ rclone() (
_rate_limit
local id="$1"
local out="$(mktemp -d)"
_cmd backend copyid work-notes-google: --drive-export-formats=csv,html,pdf "$id" "$out/"
_cmd backend copyid work-notes-google: --drive-export-formats=csv,html,txt "$id" "$out/"
find "$out" -type f
}