jinjaruu / vikisub Goto Github PK
View Code? Open in Web Editor NEWJSON to SRT for subtitles from Viki
JSON to SRT for subtitles from Viki
BIG NOTE: This is deprecated solely on the fact of how old it is, I never really got around to making sure it worked as well as making it take in URLs. Maybe if/when I feel bored enough I'll look into doing more with this assuming there isn't a standard way of downloading subtitles from Viki by then (there might be right now as far as I know). VikiSub - JSON to SRT for subtitles from Viki ================== BACKGROUND ================== So this is something that was made over the course of the weekend, and at the start of it I knew little to no Ruby at all. So I was messing around with the Viki.com, and got curious with how they do their subtitles. After a bit of poking around in the source code I found where the subtitle files are stored for each video. They're stored as JSON files with the start/end times as milliseconds, and well to skip a bunch, this little ruby script/program was made. Many thanks to my friend torque with help on this and Ruby in general. It's pretty basic at the moment, I plan to do quite a bit with it though. Please also don't go claiming any converted subtitles as entirely your own, as it's thanks to whoever made the translations. USAGE ================== VikiSub.rb file.json file.srt [file2.json file2.srt and so on] REQUIREMENTS ================== Ruby 1.9.3 (Least that's what I've tested it in) JSON gem VERSION HISTORY ================== 0.1 Can take in local JSON files Makes a standard SRT file
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.