Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/directorscut82/find_subtitles

find_subtitles is a lua script for mpv to (down)load subtitles
https://github.com/directorscut82/find_subtitles

Last synced: 4 months ago
JSON representation

find_subtitles is a lua script for mpv to (down)load subtitles

Lists

README

        

## find_subtitles
###### find_subtitles is a lua script for mpv to (down)load subtitles
Tries to do two simple things:
* use python's subliminal for downloading subtitles
* load any subtitles found within movie folder

------
###### Prerequisites
* a linux OS
* [mpv](http://mpv.io) player
* python with [subliminal](https://github.com/Diaoul/subliminal) (version(s) 1.0.1+ work fine, older will not). [ *pip* for easy peasy installation is recommended]

###### Using
* copy script to ~/.config/mpv/scripts (for some older versions than 0.9.2 it will propably be a slight different path; check [here](http://mpv.io/manual/master/#files))
* press "s" while playing a movie and after some time you will see an osd message indicating status (the subtitle will be automatically donwloaded and loaded)

###### Notes
* Assumes subliminal is available from terminal (if you use it from a non-default path you need to update line 38)
* Downloads English subtitles (if you require other languages you need to update line 38)
* As it captures console output with Lua system calls i doubt it will work in windows without changes