WWDCHelper & 打包下载 WWDC 2017 中文字幕

2017-09-10 17:16:41 +08:00
 kingcos

https://github.com/kingcos/WWDCHelper

上个月中旬的时候,苹果官方推出了 WWDC 2017 中所有 Session 的中文字幕,在线观看时可以直接加载中文简体字幕。不过之前下载的 WWDC 视频却没有字幕,GitHub 上搜寻了一番,没有找到特别完善的下载方法。因此总结了几个之前的库,用 Swift 重写就得到了现在的 WWDCHelper。如果有任何问题,都可以在这里回复我,或者提出 Issue。

如果需要直接下载字幕的同学,可以在 Releases 页面找到简体中文或英文的压缩包,直接下载即可。

第一次写开源代码并分享给大家,如果 WWDCHelper 能帮到您,也希望可以与别人分享,来个 Star 也是极好的!

Install

> git clone https://github.com/kingcos/WWDCHelper.git
> cd WWDCHelper
> ./install.sh

Help

> 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.
4093 次点击
所在节点    分享创造
11 条回复
kingcos
2017-09-10 18:45:49 +08:00
😂无人问津吗。。
xiaoyaocmx
2017-09-10 19:07:06 +08:00
支持~
kingcos
2017-09-10 19:39:02 +08:00
@xiaoyaocmx 感谢。。第一次写开源😅
GromHellscream
2017-09-10 23:05:13 +08:00
前排支持~
kingcos
2017-09-10 23:46:59 +08:00
@GromHellscream 多谢!!
goldenlove
2017-09-11 09:49:42 +08:00
才知道 Swift 也可以写命令行工具...看来有必要玩下了...
虽然暂时用不上,但已 star 支持~
calvincheung
2017-09-11 12:48:09 +08:00
kingcos
2017-09-11 15:26:36 +08:00
@kingcos 谢谢支持!
@calvincheung 您需要 -l chs 或者 -l eng 指定字幕语言呢,默认不指定语言的话就是这样输出 Session 的基本信息。
calvincheung
2017-09-11 19:43:28 +08:00
@kingcos 我看“ Default is Simplified Chinese ”就没管参数了😓
kingcos
2017-09-11 21:34:25 +08:00
@calvincheung 嗯呢,没事儿,这对应的是 -l,默认的是简体中文哈😀
kingcos
2017-09-13 14:56:26 +08:00
@xiaoyaocmx
@GromHellscream
@goldenlove
@calvincheung 已为 Fall 2017 最新适配 iPhone X 的 Session 做了支持,欢迎大家更新,使用,多谢!如有打扰,实在抱歉<(_ _)>

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/389576

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX