Skip to content

Commit

Permalink
v1.2.6 修复初次运行打开报错问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
Gentlesprite committed Dec 17, 2024
1 parent cec1f8b commit dd5a01a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ output/
img/
venv/
ConfigBackup/
test/
test_download/
test_download/test/
# ignore files
Expand Down
2 changes: 1 addition & 1 deletion limited_media_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ async def _get_download_task(self,
except UsernameInvalid as e:
self.failure_link[msg_link] = e
log.error(
f'{self.keyword_link}:"{msg_link}频道用户名无效,该链接的频道用户名可能已更改或频道已解散,{self.skip_download}。原因:"{e}"')
f'{self.keyword_link}:"{msg_link}"频道用户名无效,该链接的频道用户名可能已更改或频道已解散,{self.skip_download}。原因:"{e}"')
except Exception as e:
self.failure_link[msg_link] = e
log.error(
Expand Down
5 changes: 3 additions & 2 deletions module/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,15 @@ def represent_none(self, data):

console = Console(log_path=False)
utils.get_peer_type = get_peer_type_new
__version__ = '1.2.5'
__version__ = '1.2.6'
__license__ = "MIT License"
__update_date__ = '2024/12/15 19:32:48'
__update_date__ = '2024/12/17 09:05:13'
__copyright__ = f'Copyright (C) {__update_date__[:4]} Gentlesprite <https://github.com/Gentlesprite>'
SOFTWARE_FULL_NAME = 'Telegram Restricted Media Downloader'
SOFTWARE_NAME = 'TRMD'
author = 'Gentlesprite'
APPDATA_PATH = os.path.join(os.environ['APPDATA'], SOFTWARE_NAME)
os.makedirs(APPDATA_PATH, exist_ok=True) # v1.2.6修复初次运行打开报错问题。
INPUT_HISTORY_PATH = os.path.join(APPDATA_PATH, f'.{SOFTWARE_NAME}_HISTORY')
MAX_RECORD_LENGTH = 1000
read_input_history(history_path=INPUT_HISTORY_PATH, max_record_len=MAX_RECORD_LENGTH)
Expand Down

0 comments on commit dd5a01a

Please sign in to comment.