https://github.com/kingcos/WWDCHelper
上个月中旬的时候,苹果官方推出了 WWDC 2017 中所有 Session 的中文字幕,在线观看时可以直接加载中文简体字幕。不过之前下载的 WWDC 视频却没有字幕,GitHub 上搜寻了一番,没有找到特别完善的下载方法。因此总结了几个之前的库,用 Swift 重写就得到了现在的 WWDCHelper。如果有任何问题,都可以在这里回复我,或者提出 Issue。
如果需要直接下载字幕的同学,可以在 Releases 页面找到简体中文或英文的压缩包,直接下载即可。
第一次写开源代码并分享给大家,如果 WWDCHelper 能帮到您,也希望可以与别人分享,来个 Star 也是极好的!
> git clone https://github.com/kingcos/WWDCHelper.git
> cd WWDCHelper
> ./install.sh
> wwdchelper -h
Usage: WWDCHelper [options]
-y, --year:
Setup the year of WWDC. Only support `17` or `2017` now. Default is WWDC 2017.
-s, --sessions:
Setup session numbers in WWDC. Default is all.
-l, --language:
Setup language of subtitle. Only support `chs` or `eng` now. Default is Simplified Chinese.
--sd:
Add sd tag for subtitle filename. Default is for hd.
-p, --path:
Setup download path of subtitles. Default is current folder.
-h, --help:
Print the help info.
-v, --version:
Print the version info.
1
kingcos OP 😂无人问津吗。。
|
2
xiaoyaocmx 2017-09-10 19:07:06 +08:00
支持~
|
3
kingcos OP @xiaoyaocmx 感谢。。第一次写开源😅
|
4
GromHellscream 2017-09-10 23:05:13 +08:00 via iPad
前排支持~
|
5
kingcos OP @GromHellscream 多谢!!
|
6
goldenlove 2017-09-11 09:49:42 +08:00
才知道 Swift 也可以写命令行工具...看来有必要玩下了...
虽然暂时用不上,但已 star 支持~ |
7
calvincheung 2017-09-11 12:48:09 +08:00
好像没用啊。。。命令跑完之后,当前目录啥都没有,命令行输出:
``` - - - - - - - - - - WWDC 2017 - Session 822 - App Icon Design HD Video Download: https://devstreaming-cdn.apple.com/videos/wwdc/2017/822qxyzd1qk9l222/822/822_hd_app_icon_design.mp4?dl=1 SD Video Download: https://devstreaming-cdn.apple.com/videos/wwdc/2017/822qxyzd1qk9l222/822/822_sd_app_icon_design.mp4?dl=1 PDF Download: https://devstreaming-cdn.apple.com/videos/wwdc/2017/822qxyzd1qk9l222/822/822_app_icon_design.pdf - - - - - - - - - - WWDC 2017 - Session 823 - Designing Glyphs HD Video Download: https://devstreaming-cdn.apple.com/videos/wwdc/2017/823sgu0b9ofbkip/823/823_hd_designing_glyphs.mp4?dl=1 SD Video Download: https://devstreaming-cdn.apple.com/videos/wwdc/2017/823sgu0b9ofbkip/823/823_sd_designing_glyphs.mp4?dl=1 PDF Download: https://devstreaming-cdn.apple.com/videos/wwdc/2017/823sgu0b9ofbkip/823/823_designing_glyphs.pdf - - - - - - - - - - ``` |
8
kingcos OP |
9
calvincheung 2017-09-11 19:43:28 +08:00
@kingcos 我看“ Default is Simplified Chinese ”就没管参数了😓
|
10
kingcos OP @calvincheung 嗯呢,没事儿,这对应的是 -l,默认的是简体中文哈😀
|
11
kingcos OP @xiaoyaocmx
@GromHellscream @goldenlove @calvincheung 已为 Fall 2017 最新适配 iPhone X 的 Session 做了支持,欢迎大家更新,使用,多谢!如有打扰,实在抱歉<(_ _)> |