MestreLion / legendastv

API for Legendas.TV website, world's largest repository of Brazilian Portuguese Movie/TV Series subtitles. Utilities to search, retrieve info, download, extract and match subtitles.
15 stars 3 forks source link

How to use this as cli command? #24

Closed salsa2k closed 6 years ago

salsa2k commented 8 years ago

Hi,

How I use this? How can I search for something using command line?

Thanks

MestreLion commented 6 years ago

Yes, of course... the main script is legendastv.py, it is an executable script, and it accepts video files or directories as arguments, so you can use it as ./legendas.py [PATH...], for example ./legendas.py ~/Videos/MyTVShow/*.mkv, and it will recursively search, choose, download, extract and rename subtitles for all requested videos using Legendas.TV website subtitle database.

On first-time usage a blank config file will be created at ~/.config/legendastv/legendastv.cfg. Edit it and fill your LegendasTV website username and passowrd, and run it again.