Skip to content

Directory/file monitor and subtitle downloader.

License

Notifications You must be signed in to change notification settings

queeup-Containers/subtitle-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

subtitle-monitor

Directory/file monitor and subtitle downloader.

Powered by watchdog and subliminal.

Pull from hub.docker.com

docker pull queeup/subtitle-monitor

Pull from ghcr.io

docker pull ghcr.io/queeup-containers/subtitle-monitor

Volumes

  • -v cache:/cache

Example usage: Checking /storage/downloads directory recursively for new created *.mkv, *.mp4, *.avi files and then download subtitles for it.

docker run --rm -i --name subtitle-monitor \
    -v "$HOME/.cache/subliminal:/cache" \
    -v "/storage/downloads:/storage/downloads" \
    queeup/subtitle-monitor watchmedo shell-command \
        --ignore-directories \
        --recursive \
        --pattern="*.mkv;*.mp4;*.avi" \
        --ignore-pattern=".incomplete/*;*__*/*" \
        --command='test "${watch_event_type}" == "created" && (printf "Checking subtitles for ${watch_src_path} video file\n"; subliminal --opensubtitles user password download -l tr -l en -l es -a 1w -p opensubtitles "${watch_src_path}")' \
        /storage/downloads