Skip to content

lsferreira42/osubdl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSUBDL

This is a fork of https://github.com/JadedCtrl/osubdl.

PRE-REQUISITES

You'll need:

  • A POSIX-compatible shell (tested with bash)
  • unzip
  • curl
  • Python 3
  • Some videos ❤️

USAGE

Just run "osubdl" like so:

./osubdl file [language] [destination]

The file should be a video file of a known tv show or movie!

The language defaults to "pob" (Brazilian portuguese), but you can choose any three-char language code.
The destination defaults to the file's name, but with "srt" as the file-extension.

Languages supported

+-----------------------+-----------------+
|       LANGUAGE        | AVAILABLE ID(S) |
+-----------------------+-----------------+
| Afrikaans             | af, afr         |
| Albanian              | sq, alb         |
| Arabic                | ar, ara         |
| Armenian              | hy, arm         |
| Belarusian            | be, bel         |
| Bengali               | bn, ben         |
| Bosnian               | bs, bos         |
| Bulgarian             | bg, bul         |
| Burmese               | my, bur         |
| Catalan               | ca, cat         |
| Chinese (simplified)  | zh, chi         |
| Chinese (traditional) | zt, zht         |
| Chinese bilingual     | ze, zhe         |
| Croatian              | hr, hrv         |
| Czech                 | cs, cze         |
| Danish                | da, dan         |
| Dutch                 | nl, dut         |
| English               | en, eng         |
| Esperanto             | eo, epo         |
| Estonian              | et, est         |
| Finnish               | fi, fin         |
| French                | fr, fre         |
| Galician              | gl, glg         |
| Georgian              | ka, geo         |
| German                | de, ger         |
| Greek                 | el, ell         |
| Hebrew                | he, heb         |
| Hindi                 | hi, hin         |
| Hungarian             | hu, hun         |
| Icelandic             | is, ice         |
| Indonesian            | id, ind         |
| Italian               | it, ita         |
| Japanese              | ja, jpn         |
| Kazakh                | kk, kaz         |
| Korean                | ko, kor         |
| Latvian               | lv, lav         |
| Lithuanian            | lt, lit         |
| Luxembourgish         | lb, ltz         |
| Macedonian            | mk, mac         |
| Manipuri              | ma, mni         |
| Mongolian             | mn, mon         |
| Norwegian             | no, nor         |
| Persian               | fa, per         |
| Polish                | pl, pol         |
| Portuguese            | pt, por         |
| Portuguese (BR)       | pb, pob         |
| Romanian              | ro, rum         |
| Russian               | ru, rus         |
| Serbian               | sr, scc         |
| Sinhalese             | si, sin         |
| Slovak                | sk, slo         |
| Slovenian             | sl, slv         |
| Spanish               | es, spa         |
| Swahili               | sw, swa         |
| Swedish               | sv, swe         |
| Syriac                | sy, syr         |
| Tamil                 | ta, tam         |
| Thai                  | th, tha         |
| Turkish               | tr, tur         |
| Ukrainian             | uk, ukr         |
| Vietnamese            | vi, vie         |
+-----------------------+-----------------+