Skip to content

Commit

Permalink
Fix file extension renaming issue
Browse files Browse the repository at this point in the history
Docs update changelog
  • Loading branch information
BingLingGroup committed Nov 5, 2019
1 parent d2e59a4 commit db231d8
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## TOC

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

Click up arrow to go back to TOC.

### [0.5.2-alpha] - 2019-11-05

### Added(0.5.2-alpha)

- Add issue templates.

### Changed(0.5.2-alpha)

- Fix last row of empty translation text missing issue. [issue #62](https://github.com/BingLingGroup/autosub/issues/62)
- Fix executable file detection problem in the current directory.

### [0.5.1-alpha] - 2019-08-02

#### Added(0.5.1-alpha)
Expand Down
4 changes: 2 additions & 2 deletions autosub/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,8 @@ def str_to_file(
_("Input a new path (including directory and file name) for output file.\n"))
ext = os.path.splitext(dest)[-1]
dest = os.path.splitext(dest)[0]
dest = "{base}.{ext}".format(base=dest,
ext=ext)
dest = "{base}{ext}".format(base=dest,
ext=ext)

with open(dest, 'wb') as output_file:
output_file.write(str_.encode("utf-8"))
Expand Down
2 changes: 1 addition & 1 deletion autosub/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# For gettext po files

NAME = 'autosub'
VERSION = '0.5.1-alpha'
VERSION = '0.5.2-alpha'
DESCRIPTION = _('Auto-generate subtitles for video/audio/subtitles file.')
LONG_DESCRIPTION = (
_('Autosub is an automatic subtitles generating utility. '
Expand Down
18 changes: 16 additions & 2 deletions docs/CHANGELOG.zh-Hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@

## 目录

- [[0.5.2-alpha] - 2019-11-05](#052-alpha---2019-11-05)
- [添加](#添加052-alpha)
- [改动](#改动052-alpha)
- [[0.5.1-alpha] - 2019-08-02](#051-alpha---2019-08-02)
- [添加](#添加050-alpha)
- [改动](#改动050-alpha)
- [添加](#添加051-alpha)
- [改动](#改动051-alpha)
- [[0.5.0-alpha] - 2019-07-27](#050-alpha---2019-07-27)
- [添加](#添加050-alpha)
- [改动](#改动050-alpha)
Expand All @@ -22,6 +25,17 @@

点击上箭头以返回目录。

### [0.5.2-alpha] - 2019-11-05

### 添加(0.5.2-alpha)

- 添加问题模板。

### 改动(0.5.2-alpha)

- 修复最后一排空翻译丢行问题。[issue #62](https://github.com/BingLingGroup/autosub/issues/62)
- 修复当前运行路径的可执行文件检测问题。

### [0.5.1-alpha] - 2019-08-02

#### 添加(0.5.1-alpha)
Expand Down

0 comments on commit db231d8

Please sign in to comment.