easyrip 4.5.0__tar.gz → 4.5.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. {easyrip-4.5.0 → easyrip-4.5.1}/PKG-INFO +1 -1
  2. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/__main__.py +5 -2
  3. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/easyrip_command.py +1 -1
  4. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/easyrip_mlang/lang_zh_Hans_CN.py +5 -18
  5. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/global_val.py +1 -1
  6. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip.egg-info/PKG-INFO +1 -1
  7. {easyrip-4.5.0 → easyrip-4.5.1}/LICENSE +0 -0
  8. {easyrip-4.5.0 → easyrip-4.5.1}/README.md +0 -0
  9. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/__init__.py +0 -0
  10. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/easyrip_config/config.py +0 -0
  11. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/easyrip_config/config_key.py +0 -0
  12. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/easyrip_log.py +0 -0
  13. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/easyrip_main.py +0 -0
  14. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/easyrip_mlang/__init__.py +0 -0
  15. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/easyrip_mlang/global_lang_val.py +0 -0
  16. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/easyrip_mlang/lang_en.py +0 -0
  17. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/easyrip_mlang/translator.py +0 -0
  18. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/easyrip_prompt.py +0 -0
  19. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/easyrip_web/__init__.py +0 -0
  20. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/easyrip_web/http_server.py +0 -0
  21. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/easyrip_web/third_party_api.py +0 -0
  22. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/ripper/media_info.py +0 -0
  23. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/ripper/param.py +0 -0
  24. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/ripper/ripper.py +0 -0
  25. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/ripper/sub_and_font/__init__.py +0 -0
  26. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/ripper/sub_and_font/ass.py +0 -0
  27. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/ripper/sub_and_font/font.py +0 -0
  28. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/ripper/sub_and_font/subset.py +0 -0
  29. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip/utils.py +0 -0
  30. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip.egg-info/SOURCES.txt +0 -0
  31. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip.egg-info/dependency_links.txt +0 -0
  32. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip.egg-info/entry_points.txt +0 -0
  33. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip.egg-info/requires.txt +0 -0
  34. {easyrip-4.5.0 → easyrip-4.5.1}/easyrip.egg-info/top_level.txt +0 -0
  35. {easyrip-4.5.0 → easyrip-4.5.1}/pyproject.toml +0 -0
  36. {easyrip-4.5.0 → easyrip-4.5.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: easyrip
3
- Version: 4.5.0
3
+ Version: 4.5.1
4
4
  Author: op200
5
5
  License-Expression: AGPL-3.0-or-later
6
6
  Project-URL: Homepage, https://github.com/op200/EasyRip
@@ -129,8 +129,11 @@ def run() -> NoReturn:
129
129
  log.debug("Manually force exit")
130
130
  sys.exit(0)
131
131
 
132
- if not run_command(command):
133
- log.warning("Stop run command")
132
+ try:
133
+ if not run_command(command):
134
+ log.warning("Stop run command")
135
+ except KeyboardInterrupt:
136
+ log.warning("Manually stop run command")
134
137
 
135
138
 
136
139
  if __name__ == "__main__":
@@ -490,7 +490,7 @@ class Opt_type(enum.Enum):
490
490
  "Audio encoder:\n" # .
491
491
  f"{Audio_codec.to_help_string(' ')}"
492
492
  ),
493
- childs=(Cmd_type_val(("copy", "libopus", "flac")),),
493
+ childs=(Cmd_type_val(tuple(Audio_codec._value2member_map_)),),
494
494
  )
495
495
  _b_a = Cmd_type_val(
496
496
  ("-b:a",),
@@ -1,4 +1,4 @@
1
- from ..easyrip_command import Cmd_type, Opt_type
1
+ from ..easyrip_command import Audio_codec, Cmd_type, Opt_type, Preset_name
2
2
  from .global_lang_val import (
3
3
  Lang_tag,
4
4
  Lang_tag_language,
@@ -135,18 +135,8 @@ LANG_MAP: dict[str, str] = {
135
135
  ),
136
136
  Opt_type._preset.value.description: (
137
137
  "设置预设\n"
138
- "预设名:\n"
139
- " custom\n"
140
- " subset\n"
141
- " copy\n"
142
- " flac\n"
143
- " x264fast x264slow\n"
144
- " x265fast4 x265fast3 x265fast2 x265fast x265slow x265full\n"
145
- " svtav1\n"
146
- " vvenc\n"
147
- " h264_amf h264_nvenc h264_qsv\n"
148
- " hevc_amf hevc_nvenc hevc_qsv\n"
149
- " av1_amf av1_nvenc av1_qsv"
138
+ "预设名:\n" # .
139
+ f"{Preset_name.to_help_string(' ')}"
150
140
  ),
151
141
  Opt_type._pipe.value.description: (
152
142
  "选择一个 vpy 文件作为管道的输入, 这个 vpy 必须有 input 全局变量\n"
@@ -209,11 +199,8 @@ LANG_MAP: dict[str, str] = {
209
199
  ),
210
200
  Opt_type._c_a.value.description: (
211
201
  "设置音频编码器\n"
212
- " \n" # .
213
- "音频编码器:\n"
214
- " copy\n"
215
- " libopus\n"
216
- " flac"
202
+ "音频编码器:\n" # .
203
+ f"{Audio_codec.to_help_string(' ')}"
217
204
  ),
218
205
  Opt_type._b_a.value.description: "设置音频码率。默认值 '160k'",
219
206
  Opt_type._muxer.value.description: (
@@ -3,7 +3,7 @@ import sys
3
3
  from pathlib import Path
4
4
 
5
5
  PROJECT_NAME = "Easy Rip"
6
- PROJECT_VERSION = "4.5.0"
6
+ PROJECT_VERSION = "4.5.1"
7
7
  PROJECT_TITLE = f"{PROJECT_NAME} v{PROJECT_VERSION}"
8
8
  PROJECT_URL = "https://github.com/op200/EasyRip"
9
9
  PROJECT_RELEASE_API = "https://api.github.com/repos/op200/EasyRip/releases/latest"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: easyrip
3
- Version: 4.5.0
3
+ Version: 4.5.1
4
4
  Author: op200
5
5
  License-Expression: AGPL-3.0-or-later
6
6
  Project-URL: Homepage, https://github.com/op200/EasyRip
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes