3 Commits

Author SHA1 Message Date
dependabot[bot]
2a14979b81 Bump pillow from 7.0.0 to 9.0.1
Bumps [pillow](https://github.com/python-pillow/Pillow) from 7.0.0 to 9.0.1.
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/7.0.0...9.0.1)

---
updated-dependencies:
- dependency-name: pillow
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-12 00:11:42 +00:00
xhlove
6ab886dd8f iqiyi bug fix 2020-02-08 21:40:42 +08:00
xhlove
71c0212fe5 bug fix 2020-02-07 19:27:13 +08:00
5 changed files with 24 additions and 7 deletions

View File

@@ -22,8 +22,8 @@
> 提示逻辑有待完善
- 选项说明
> -f或--font 指定输出字幕字体,默认微软雅黑)
> -fs或--font-size 指定输出字幕字体大小默认28)
> -f或--font 指定输出字幕字体,默认微软雅黑
> -fs或--font-size 指定输出字幕字体大小默认28
> -s或--site 使用非url方式下载需指定网站 支持的网站 -> qq iqiyi youku sohu mgtv
> -r或--range 指定弹幕的纵向范围 默认0到720请用逗号隔开
> -cid或--cid 下载cid对应视频的弹幕腾讯 芒果视频合集)
@@ -35,6 +35,19 @@
> -y或--y 覆盖原有弹幕而不提示 默认不使用
- 字体配置文件(可选)
新建名为`config.json`的文件,内容形式如下:
```json
{
"fonts_base_folder": "C:/Windows/Fonts",
"fonts": {
"微软雅黑":"msyh.ttc",
"微软雅黑粗体":"msyhbd.ttc",
"微软雅黑细体":"msyhl.ttc"
}
}
```
# 效果示意(字幕与视频不相关)
![potplayer截屏](http://puui.qpic.cn/vshpic/0/5TLOX3WbgjudEj61IxYZ4tAuf2lFwl-ynf4S5T4sXkdjS9cd_0/0)
[查看使用演示视频点我][2]
@@ -53,6 +66,9 @@
# 更新日志
## 2020/2/8
- 爱奇艺bug修复
## 2020/2/7
- 完善说明
- 爱奇艺支持series选项并完善地区判断

View File

@@ -3,7 +3,7 @@
'''
# 作者: weimo
# 创建日期: 2020-01-04 19:14:46
# 上次编辑时间 : 2020-02-07 18:33:14
# 上次编辑时间 : 2020-02-07 19:21:19
# 一个人的命运啊,当然要靠自我奋斗,但是...
'''
@@ -30,6 +30,7 @@ ass_events_head = """[Events]\nFormat: Layer, Start, End, Style, Name, MarginL,
# ass_baseline = """Dialogue: 0,0:20:08.00,0:20:28.00,Default,,0,0,0,,{\t(1000,3000,\move(1300,600,360,600))\pos(676.571,506.629)}这是字幕内容示意"""
def get_fonts_info():
global fonts
fonts_path = r"C:\Windows\Fonts"
if os.path.exists("config.json"):
with open("config.json", "r", encoding="utf-8") as f:

View File

@@ -3,7 +3,7 @@
'''
# 作者: weimo
# 创建日期: 2020-01-04 19:14:43
# 上次编辑时间 : 2020-02-07 17:36:24
# 上次编辑时间 : 2020-02-08 21:37:26
# 一个人的命运啊,当然要靠自我奋斗,但是...
'''
import re
@@ -101,7 +101,7 @@ def get_vinfos(aid, locale="zh_cn"):
except Exception as e:
print("get_vinfos load vlist error info -->", e)
return None
vinfos = [[v["shortTitle"] + "_" + str(v["timeLength"]), v["timeLength"], ["id"]] for v in vlist]
vinfos = [[v["shortTitle"] + "_" + str(v["timeLength"]), v["timeLength"], v["id"]] for v in vlist]
return vinfos
def matchit(patterns, text):

View File

@@ -1,3 +1,3 @@
requests==2.22.0
Pillow==7.0.0
Pillow==9.0.1
xmltodict==0.12.0

View File

@@ -3,7 +3,7 @@
'''
# 作者: weimo
# 创建日期: 2020-01-04 19:14:41
# 上次编辑时间 : 2020-02-07 17:32:10
# 上次编辑时间 : 2020-02-08 21:37:36
# 一个人的命运啊,当然要靠自我奋斗,但是...
'''