This Gem only works for video files with S[Number]E[Number] (i.e., S01E02) format in their names.
Subfinder
You have a TV series without subtitles. Open the terminal, go to the folder where you saved your files, and run subfinder. It will find the similar subtitle files (only .srt) on the folder and rename it to video file. If the subtitles are not exists on your disk, then it will download, from the subscene URL you provided, extract and rename them.
It works fine with the video file names which followed S01E01 naming format.
Installation
First you need to have Ruby and Gem on your machine.
Then simply run:
$ gem install subfinder
Without any switches, this will unzip all zipped or compressed files and find/rename them to correspondent video file. Also you can provide the URL for subscene.com list page with -u and it would download the correct file and do the rest.
Usage
$ subfinder -u https://subscene.com/subtitles/the-kominsky-method -l fa
Use
-lor--languagefor subtitle language you want. Default is English. Right now onlyfaandenare supported.Use
-uor--urlto specify a URL page of a TV series onsubscene.comwebsite.Also see
sunfinder -hfor help
Development
- Please report any broken thing using Github issues *
To run tests, run rake test.
To see all logs, run with -d or --degub
Clone the project. Make changes and then rake build inside the project folder to create Gem.
Then gem install pkg/subfinder-0.0.1.gem to install it locally.
Create a temp folder and run movies_list_creator.rb inside that folder. It will create fake files.
License
The gem is available as open source under the terms of the MIT License.
TODO
[x] get sub title language
[x] extract all files
[x] list all files
[x] match srt for each video file
[x] rename all matches
[x] move all other files to extract folder
[x] if not available then find it online test
[x] if not available then find it online code
[x] if language sub is not available then find English
[x] download match subtitle
[x] check for internet connectivity or issue for accessing blocked websites
[ ] add all language codes
[ ] move all other files from sub folders to main folder when extracting
[ ] add messages for timeout on web browsing
[ ] save user entered config for later use
[ ] Writing article about it (VCR)