nuthx / bangumi-renamer Goto Github PK
View Code? Open in Web Editor NEW一键重命名罗马拼音的动画文件夹 —— 自动识别番剧,自定义命名规则
License: GNU General Public License v3.0
一键重命名罗马拼音的动画文件夹 —— 自动识别番剧,自定义命名规则
License: GNU General Public License v3.0
有些动漫名包含/:*?"<>|,在windows下无法重命名,希望程序可以过滤掉这些字符。
:D
将视频文件(MP4、MKV)、音轨文件(MKA、FALC)、字幕文件(ASS)这些文件也进行重命名,后面添加上标记对应的剧集标号
Traceback (most recent call last):
File "main.py", line 4, in
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "src\core.py", line 16, in
File "PyInstaller\loader\pyimod02_importers.py", line 419, in exec_module
File "src\gui\dialog.py", line 2, in
ImportError: cannot import name 'MessageBoxBase' from 'qfluentwidgets' (C:\Users\ADMINI~1\AppData\Local\Temp_MEI14242\qfluentwidgets_init_.pyc)
self.newVersionButton = PrimaryPushButton("有新版本", self, FluentIcon.LINK)
错误
发生异常: TypeError
arguments did not match any overloaded call:
QPushButton(parent: typing.Optional[QWidget] = None): argument 1 has unexpected type 'MyMainWindow'
QPushButton(text: str, parent: typing.Optional[QWidget] = None): argument 1 has unexpected type 'MyMainWindow'
QPushButton(icon: QIcon, text: str, parent: typing.Optional[QWidget] = None): argument 1 has unexpected type 'MyMainWindow'
在src/core.py
的第 563 行:
os.rename(file_path, final_path_2)
对于保种来说,直接重命名并不是一个很好的选择,我认为采用符号链接会更好:
os.symlink(file_path, final_path_2) # 这种方式在Windows下可能会权限不足
subprocess.run(['mklink', '/j', final_path_2, file_path], shell=True) # Windows
这样的话,需要同步修改第 561 行的file_dir
,由于我不会用Qt
另外加一个选项设置这个目录,因此无力pr
,只能提出大致思路,希望能够被采纳。
另,Windows 下 Python 直接创建符号链接权限问题,可以参考这里
要解决的话,可以选择判断系统:
if platform.system() != 'Windows':
os.symlink(file_path, final_path_2)
else:
subprocess.run(['mklink', '/j', final_path_2, file_path], shell=True)
Traceback (most recent call last):
File "main.py", line 15, in
File "src\core.py", line 33, in init
File "src\module\config.py", line 98, in oldConfigCheck
File "src\module\config.py", line 125, in readConfig
File "configparser.py", line 699, in read
File "configparser.py", line 1022, in _read
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 81: illegal multibyte sequence
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.