Skip to content

Commit db231d8

Browse files
committed
Fix file extension renaming issue
Docs update changelog
1 parent d2e59a4 commit db231d8

File tree

4 files changed

+33
-5
lines changed

4 files changed

+33
-5
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
## TOC
1111

12+
- [[0.5.2-alpha] - 2019-11-05](#052-alpha---2019-11-05)
13+
- [Added](#added052-alpha)
14+
- [Changed](#changed052-alpha)
1215
- [[0.5.1-alpha] - 2019-08-02](#051-alpha---2019-08-02)
1316
- [Added](#added051-alpha)
1417
- [Changed](#changed051-alpha)
@@ -23,6 +26,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2326

2427
Click up arrow to go back to TOC.
2528

29+
### [0.5.2-alpha] - 2019-11-05
30+
31+
### Added(0.5.2-alpha)
32+
33+
- Add issue templates.
34+
35+
### Changed(0.5.2-alpha)
36+
37+
- Fix last row of empty translation text missing issue. [issue #62](https://github.com/BingLingGroup/autosub/issues/62)
38+
- Fix executable file detection problem in the current directory.
39+
2640
### [0.5.1-alpha] - 2019-08-02
2741

2842
#### Added(0.5.1-alpha)

autosub/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,8 @@ def str_to_file(
546546
_("Input a new path (including directory and file name) for output file.\n"))
547547
ext = os.path.splitext(dest)[-1]
548548
dest = os.path.splitext(dest)[0]
549-
dest = "{base}.{ext}".format(base=dest,
550-
ext=ext)
549+
dest = "{base}{ext}".format(base=dest,
550+
ext=ext)
551551

552552
with open(dest, 'wb') as output_file:
553553
output_file.write(str_.encode("utf-8"))

autosub/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# For gettext po files
1313

1414
NAME = 'autosub'
15-
VERSION = '0.5.1-alpha'
15+
VERSION = '0.5.2-alpha'
1616
DESCRIPTION = _('Auto-generate subtitles for video/audio/subtitles file.')
1717
LONG_DESCRIPTION = (
1818
_('Autosub is an automatic subtitles generating utility. '

docs/CHANGELOG.zh-Hans.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@
88

99
## 目录
1010

11+
- [[0.5.2-alpha] - 2019-11-05](#052-alpha---2019-11-05)
12+
- [添加](#添加052-alpha)
13+
- [改动](#改动052-alpha)
1114
- [[0.5.1-alpha] - 2019-08-02](#051-alpha---2019-08-02)
12-
- [添加](#添加050-alpha)
13-
- [改动](#改动050-alpha)
15+
- [添加](#添加051-alpha)
16+
- [改动](#改动051-alpha)
1417
- [[0.5.0-alpha] - 2019-07-27](#050-alpha---2019-07-27)
1518
- [添加](#添加050-alpha)
1619
- [改动](#改动050-alpha)
@@ -22,6 +25,17 @@
2225

2326
点击上箭头以返回目录。
2427

28+
### [0.5.2-alpha] - 2019-11-05
29+
30+
### 添加(0.5.2-alpha)
31+
32+
- 添加问题模板。
33+
34+
### 改动(0.5.2-alpha)
35+
36+
- 修复最后一排空翻译丢行问题。[issue #62](https://github.com/BingLingGroup/autosub/issues/62)
37+
- 修复当前运行路径的可执行文件检测问题。
38+
2539
### [0.5.1-alpha] - 2019-08-02
2640

2741
#### 添加(0.5.1-alpha)

0 commit comments

Comments
 (0)