电影和电视剧的字幕下载器
项目描述
电影和电视剧的字幕下载器
如何安装
如果您的机器上安装了 pip。做就是了
$ sudo pip install -U subdl
-U 选项将确保您始终拥有最新的软件包。
如果您没有安装 pip,请下载此存储库 https://github.com/dhirajt/subdl/archive/master.zip并运行
$ sudo python setup.py install
提取后。
如何使用
subdl 可以通过使用 -d 标志检测驱动器中的媒体文件来下载电影。它将下载第一个可用的字幕。
$ subdl -d /media/Hulk # Hulk is my drive's name!
-d 标志是可选的。如果你只是跑
$ subdl
该脚本将在当前文件夹中搜索媒体文件。
要从字幕列表中进行选择,请使用选择标志。
$ subdl -cd /media/Hulk # prompts before downloading subs
要为电影或电视剧集指定名称,请使用名称标志。
$ subdl -n 'the help' # use quotes to specify names.
这再次下载了第一个可用的字幕。要从列表中选择,请使用 -c 标志
$ subdl -cn 'the help' # prompts before downloading subs
要指定语言,请使用语言标志。
$ subdl -cn 'the help' -l 'eng' # downloads enlish subtitles
如果未指定语言,则仅下载英文字幕。有关支持的语言,请参见下文。
字幕语言
仅使用三个字符来指定语言。
{ "all": "ALL", "afr": "Afrikaans", "alb": "Albanian", "ara": "Arabic", "arm": "Armenian", "baq": "Basque", "ben": "Bengali", "bos": "Bosnian", "pob": "Portuguese-BR", "bre": "Breton", "bul": "Bulgarian", "bur": "Burmese", "cat": "Catalan", "chi": "Chinese", "hrv": "Croatian", "cze": "Czech", "dan": "Danish", "dut": "Dutch", "eng": "English", "epo": "Esperanto", "est": "Estonian", "fin": "Finnish", "fre": "French", "glg": "Galician", "geo": "Georgian", "ger": "German", "ell": "Greek", "heb": "Hebrew", "hin": "Hindi", "hun": "Hungarian", "ice": "Icelandic", "ind": "Indonesian", "ita": "Italian", "jpn": "Japanese", "kaz": "Kazakh", "khm": "Khmer", "kor": "Korean", "lav": "Latvian", "lit": "Lithuanian", "ltz": "Luxembourgish", "mac": "Macedonian", "may": "Malay", "mal": "Malayalam", "mon": "Mongolian", "nor": "Norwegian", "oci": "Occitan", "per": "Farsi", "pol": "Polish", "por": "Portuguese", "rum": "Romanian", "rus": "Russian", "scc": "Serbian", "sin": "Sinhalese", "slo": "Slovak", "slv": "Slovenian", "spa": "Spanish", "swa": "Swahili", "swe": "Swedish", "syr": "Syriac", "tgl": "Tagalog", "tam": "Tamil", "tel": "Telugu", "tha": "Thai", "tur": "Turkish", "ukr": "Ukrainian", "urd": "Urdu", "vie": "Vietnamese", }
错误
使用 github 问题跟踪器报告错误。 https://github.com/dhirajt/subdl/issues