Skip to content

Commit

Permalink
disable find collection script
Browse files Browse the repository at this point in the history
it fails when multiple collections are open. maybe need to fix later.
  • Loading branch information
tatsumoto-ren committed Mar 8, 2024
1 parent 9d36192 commit 49e4d32
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions subs2srs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,6 @@ local function maybe_reload_config()
end

local function get_anki_media_dir_path()
-- Try to find the collection.media directory without AnkiConnect first.
local r = h.subprocess{utils.join_path(mp.get_script_directory(), 'find_anki_col.sh')}
if r.status == 0 then
return r.stdout:gsub("[\r\n]*", ""):gsub("%.anki2$", ".media")
end
-- Call AnkiConnect if failed.
return ankiconnect.get_media_dir_path()
end

Expand Down

0 comments on commit 49e4d32

Please sign in to comment.