Skip to content

Commit a08e836

Browse files
committed
v1.7.6 修改问题类的名称。
Signed-off-by: Gentlesprite <[email protected]>
1 parent fc67951 commit a08e836

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

module/downloader.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
get_chat_with_notify,
8383
safe_message,
8484
truncate_display_filename,
85-
Solution
85+
Issues
8686
)
8787

8888

@@ -1917,13 +1917,13 @@ def run(self) -> None:
19171917
record_error: bool = True
19181918
if str(e) == '0':
19191919
log.error('「网络」或「代理问题」,在确保当前网络连接正常情况下检查:\n「VPN」是否可用,「软件代理」是否配置正确。')
1920-
console.print(Solution.PROXY_NOT_CONFIGURED)
1920+
console.print(Issues.PROXY_NOT_CONFIGURED)
19211921
raise SystemExit(0)
19221922
log.exception(f'运行出错,{_t(KeyWord.REASON)}:"{e}"')
19231923
except pyrogram.errors.BadMsgNotification as e:
19241924
record_error: bool = True
19251925
if str(e) in (str(pyrogram.errors.BadMsgNotification(16)), str(pyrogram.errors.BadMsgNotification(17))):
1926-
console.print(Solution.SYSTEM_TIME_NOT_SYNCHRONIZED)
1926+
console.print(Issues.SYSTEM_TIME_NOT_SYNCHRONIZED)
19271927
raise SystemExit(0)
19281928
log.exception(f'运行出错,{_t(KeyWord.REASON)}:"{e}"')
19291929
except (SessionRevoked, AuthKeyUnregistered, SessionExpired, Unauthorized) as e:
@@ -1938,7 +1938,7 @@ def run(self) -> None:
19381938
record_error: bool = True
19391939
if not self.app.enable_proxy:
19401940
log.error(f'网络连接失败,请尝试配置代理,{_t(KeyWord.REASON)}:"{e}"')
1941-
console.print(Solution.PROXY_NOT_CONFIGURED)
1941+
console.print(Issues.PROXY_NOT_CONFIGURED)
19421942
else:
19431943
log.error(f'网络连接失败,请检查VPN是否可用,{_t(KeyWord.REASON)}:"{e}"')
19441944
except AttributeError as e:

module/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,6 @@ def format_chat_link(link: str, topic: bool = False) -> str:
277277
return result if result else link
278278

279279

280-
class Solution:
280+
class Issues:
281281
PROXY_NOT_CONFIGURED = '[#79FCD4]代理配置方法[/#79FCD4][#FF79D4]请访问:[/#FF79D4]\n[link=https://github.com/Gentlesprite/Telegram_Restricted_Media_Downloader/wiki#问题14-error-运行出错原因0-keyerror-0]https://github.com/Gentlesprite/Telegram_Restricted_Media_Downloader/wiki#问题14-error-运行出错原因0-keyerror-0[/link]\n[#FCFF79]若[/#FCFF79][#FF4689]无法[/#FF4689][#FF7979]访问[/#FF7979][#79FCD4],[/#79FCD4][#FCFF79]可[/#FCFF79][#d4fc79]查阅[/#d4fc79][#FC79A5]软件压缩包所提供的[/#FC79A5][#79E2FC]"使用手册"[/#79E2FC][#79FCD4]文件夹下的[/#79FCD4][#FFB579]"常见问题及解决方案汇总.pdf"[/#FFB579][#79FCB5]中的[/#79FCB5][#D479FC]【问题14】[/#D479FC][#FCE679]进行操作[/#FCE679][#FC79A6]。[/#FC79A6]'
282282
SYSTEM_TIME_NOT_SYNCHRONIZED = '[#FCFF79]检测到[/#FCFF79][#FF7979]系统时间[/#FF7979][#FC79A5]未同步[/#FC79A5][#79E2FC],[/#79E2FC][#79FCD4]解决方法[/#79FCD4][#FF79D4]请访问:[/#FF79D4]\nhttps://github.com/Gentlesprite/Telegram_Restricted_Media_Downloader/issues/5#issuecomment-2580677184\n[#FCFF79]若[/#FCFF79][#FF4689]无法[/#FF4689][#FF7979]访问[/#FF7979][#79FCD4],[/#79FCD4][#FCFF79]可[/#FCFF79][#d4fc79]查阅[/#d4fc79][#FC79A5]软件压缩包所提供的[/#FC79A5][#79E2FC]"使用手册"[/#79E2FC][#79FCB5]中的[/#79FCB5][#D479FC]【问题4】[/#D479FC][#FCE679]进行操作[/#FCE679][#FC79A6],[/#FC79A6][#79FCD4]并[/#79FCD4][#79FCB5]重启软件[/#79FCB5]。'

0 commit comments

Comments
 (0)