GithubHelp home page GithubHelp logo

leishi1313 / differential Goto Github PK

View Code? Open in Web Editor NEW
135.0 3.0 15.0 101.57 MB

一个可以自动生成PTGen,MediaInfo/BDInfo,截图,并且生成发布所需内容的快速发种工具

License: MIT License

Python 93.46% Shell 6.54%
ffmpeg mediainfo bdinfo pt ptgen

differential's People

Contributors

dependabot[bot] avatar leishi1313 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

differential's Issues

NameError: name 'main_file' is not defined

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

关于树大接口

首先感谢大佬提供这么强的工具,想问一下:
1.我是否可以使用其他的一键转载接口呢(比如tomorrow505的脚本),因为我在那个上面自己进行了许多改进。我该如何操作呢?~

get_file_size() in the mediainfo digest request

差速器很好用,特别适合工作组发种。感谢感谢。

不过,在发种时,
发现 dft扫描视频文件,生成的mediainfo摘要 因为缺少本身的视频文件大小 file_size 项,

在一些渲染js后,会显得比较“奇怪”,甚至在某些站点因此会被report,希望开发者能有空做个小小的tweak
photo_2022-03-08_23-45-53
photo_2022-03-08_23-45-59
photo_2022-03-08_23-46-05

Debian 11 并不能一键安装

提示

deb https://download.mono-project.com/repo/debian stable-bullseye main 正在更新安装包... E: 仓库 “https://download.mono-project.com/repo/debian stable-bullseye Release” 没有 Release 文件。 差速器安装失败

Support ffmpeg tonemap

ffmpeg -ss 00:01:02 -i input.mkv -vf "zscale=transfer=linear,tonemap=hable,zscale=transfer=bt709" -vframes 1 output.png

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.