Skip to content

Conversation

@datasone
Copy link

  • Refactored file reading and hash generation with fs.ReadStream API, supporting files larger than 2GB.
  • Auto match video height from filenames (fallback to 1080 if no matches), and include it in publish templates.

datasone added 2 commits May 15, 2025 15:41
For some old movie remastered versions (e.g. 688P, 1040P), auto guess
the video height from filename (fallback to 1080P if filename not match),
changes templates to fill in title and content respectively.
The old way reading files (`fs.readFileSync`) is hard limited to 2GB by
node.js runtime. This commit switchs to `fs.ReadStream` API for handling
large files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant