Skip to content

Simple Application to search for words in subtitle files.

Notifications You must be signed in to change notification settings

exc4l/subsearcher

Repository files navigation

subsearcher

Simple Application to search for words in subtitle files.

Currently the app needs to be started with some cli arguments to be able to write them into a config file which can be used on subsequent runs.

python subsearcher.py --srtpath "PATH/SRT" --playerpath "PATH/MPV"

The video player is called via

subprocess.Popen(
                [
                    "mpv",
                    mkvpath,
                    f"--start={data[int(event[2][0] or 0)][-2] - timedelta(seconds=5)}",
                ]
            )

which might not work with other players than mpv.

To install dependencies:

python -m pip install .
or
poetry install

The app features a simple word search that can make use of fugashi to tokenize the subtitle lines. To install:

poetry install -E fugashi

This will install the packages fugashi and unidic. Afterwards

python -m unidic download

needs to be executed to download the dictionary for fugashi to use.

About

Simple Application to search for words in subtitle files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages