mpv2oboeru

mpv helpers to create flashcards from movies and TV shows
git clone anongit@rnpnr.xyz:mpv2oboeru.git
Log | Files | Refs | Feed | README | LICENSE

Commit: 3c2ef565ca61486710be75ab57f829ec8d43269e
Parent: 22cf295432d682f9e0c7cdc156cc5754db60242b
Author: Ren Tatsumoto
Date:   Mon, 21 Sep 2020 04:40:19 +0300

i've seen cool kids do this

Diffstat:
Msubs2srs.lua | 48++++++++++++++++++++++++++++++++----------------
1 file changed, 32 insertions(+), 16 deletions(-)

diff --git a/subs2srs.lua b/subs2srs.lua @@ -1,19 +1,35 @@ --- Usage: --- 1. Change `config` according to your needs --- * Options can be changed right in this file or in a separate config file. --- * Config path: ~/.config/mpv/script-opts/subs2srs.conf --- * Config file isn't created automatically. --- --- 2. Open a video --- 3. Use key bindings to manipulate the script --- * `Ctrl + e` - Creates a note from the current sub. --- * `a` - Opens advanced options. --- There you can adjust and reset timings, --- concatenate subtitle lines, toggle clipboard auto copy, and more. - --- Requirements: --- * FFmpeg --- * AnkiConnect +--[[ +Copyright (C) 2020 Ren Tatsumoto + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <https://www.gnu.org/licenses/>. + +Requirements: +* FFmpeg +* AnkiConnect + +Usage: +1. Change `config` according to your needs +* Options can be changed right in this file or in a separate config file. +* Config path: ~/.config/mpv/script-opts/subs2srs.conf +* Config file isn't created automatically. + +2. Open a video + +3. Use key bindings to manipulate the script +* Create a note from the current subtitle line - `Ctrl + e` +* Open advanced options - `a` +]] local config = { collection_path = string.format('%s/.local/share/Anki2/%s/collection.media/', os.getenv("HOME"), os.getenv("USER")),