Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: name 'main_file' is not defined #9

Open
LeiShi1313 opened this issue May 4, 2022 · 0 comments
Open

NameError: name 'main_file' is not defined #9

LeiShi1313 opened this issue May 4, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@LeiShi1313
Copy link
Owner

2022-05-04 15:19:43.543 | WARNING | differential.utils.mediainfo:get_resolution:183 - 无法获取到视频的分辨率
2022-05-04 15:19:43.544 | ERROR | main::8 - An error has been caught in function '', process 'MainProcess' (933041), thread 'MainThread' (140306609316480):
Traceback (most recent call last):

File "/home/lei/.pyenv/versions/3.9.10/bin/dft", line 8, in
sys.exit(main())
│ │ └ <function main at 0x7f9baca2bc10>
│ └
└ <module 'sys' (built-in)>
File "/home/lei/.pyenv/versions/3.9.10/lib/python3.9/site-packages/differential/main.py", line 24, in main
REGISTERED_PLUGINSplugin.upload()
│ │ └ {'generate_nfo': False, 'make_torrent': True, 'screenshot_count': 0, 'optimize_screenshot': 'true', 'image_hosting': <ImageHo...
│ └ 'NexusPHP'
└ {'nexusphp': <class 'differential.plugins.nexusphp.NexusPHP'>, 'nexus': <class 'differential.plugins.nexusphp.NexusPHP'>, 'ne...
File "/home/lei/.pyenv/versions/3.9.10/lib/python3.9/site-packages/differential/plugins/base.py", line 1079, in upload
self._prepare()
│ └ <function Base._prepare at 0x7f9bab4a6ee0>
└ <differential.plugins.nexusphp.NexusPHP object at 0x7f9bab411be0>
File "/home/lei/.pyenv/versions/3.9.10/lib/python3.9/site-packages/differential/plugins/base.py", line 796, in _prepare
self._screenshots = self._get_screenshots()
│ │ │ └ <function Base._get_screenshots at 0x7f9bab4a6e50>
│ │ └ <differential.plugins.nexusphp.NexusPHP object at 0x7f9bab411be0>
│ └ []
└ <differential.plugins.nexusphp.NexusPHP object at 0x7f9bab411be0>
File "/home/lei/.pyenv/versions/3.9.10/lib/python3.9/site-packages/differential/plugins/base.py", line 765, in _get_screenshots
temp_dir = self._make_screenshots()
│ └ <function Base._make_screenshots at 0x7f9bab4a6dc0>
└ <differential.plugins.nexusphp.NexusPHP object at 0x7f9bab411be0>
File "/home/lei/.pyenv/versions/3.9.10/lib/python3.9/site-packages/differential/plugins/base.py", line 719, in _make_screenshots
duration = get_duration(self._mediainfo)
│ │ └ <pymediainfo.MediaInfo object at 0x7f9bad5c4f70>
│ └ <differential.plugins.nexusphp.NexusPHP object at 0x7f9bab411be0>
└ <function get_duration at 0x7f9babeedee0>
File "/home/lei/.pyenv/versions/3.9.10/lib/python3.9/site-packages/differential/utils/mediainfo.py", line 174, in get_duration
logger.error(f"未找到视频Track,请检查{main_file}是否为支持的文件")
│ └ <function Logger.error at 0x7f9bacb09550>
└ <loguru.logger handlers=[(id=0, level=10, sink=), (id=1, level=5, sink='test.log')]>

NameError: name 'main_file' is not defined

@LeiShi1313 LeiShi1313 added the bug Something isn't working label May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant