hqwuzhaoyi / gpt-subtitle Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://gpt-subtitle-web.vercel.app
License: MIT License
Home Page: https://gpt-subtitle-web.vercel.app
License: MIT License
如題 想知道跟https://github.com/ChineseSubFinder/ChineseSubFinder
有沒有合作連動的機會
然後如果一起使用的話會有問題嗎?
假如jellyfin的媒體目錄是
media>movie>movie1, movie2, movie3, ...
請問該如何映射媒體路徑?
是該修改Static_path嗎?
OPENAI_API_KEY=` # OpenAI API KEY
GOOGLE_TRANSLATE_API_KEY= # Google API KEY(Can be left blank)
BASE_URL= # OpenAI API URL
WEB_PORT=3000 # Front-end port
SERVER_PORT=3001 # Backend port
STATIC_PATH=/static # Static file path
OUTPUT_SRT_THEN_TRANSLATE=true # Whether to output the SRT file first and then translate it
LANGUAGE=zh-CN # Output SRT file and then translate the language
TRANSLATE_DELAY=1500 # Delay between calling translation interface
TRANSLATE_GROUP=4 # Translate sentences for grouping translation, how many sentences can be translated at most at a time
TranslateModel=google # google or gpt3
REDIS_PORT=6379 # Redis port
REDIS_HOST=subtitle_redis # Redis address
MYSQL_HOST=subtitle_mysql # MySQL address
MYSQL_PORT=3306 # MySQL port
MYSQL_USER=root # MySQL user
MYSQL_PASSWORD=123456 # MySQL password
MYSQL_DATABASE=gpt_subtitle # MySQL Database name
API_URL=http://localhost:3001 # Backend API address
NEXT_PUBLIC_API_URL=http://localhost:3001 # Same as above. Backend API address
WEB_URL=http://localhost:3000 # Web address
NEXT_PUBLIC_WEB_URL=http://localhost:3000 # Same as above. WEB address
Hello @hqwuzhaoyi ,
I hope this message finds you well. I recently came across your project on GitHub and I must say, I am truly impressed by the work you have done. The project touches upon a subject that I find fascinating, and it showcases your technical prowess and creativity.
However, while exploring the code repository, I was unable to find any information regarding the open source license or project license.
I would like to inquire about the licensing arrangements for this project. Could you kindly provide some details regarding the project’s license? Specifically, I would appreciate knowing under which license the project is released and if there are any contributing guidelines to be mindful of.
Obtaining an understanding of the terms and conditions for using and familiarizing myself with this project would be of great help. Thank you for taking the time to address this query.
I appreciate your attention to this matter and I look forward to hearing from you soon.
Best regards
`web:build: ./components/ui/alert-dialog.tsx
web:build: 24:17 Warning: 'children' is defined but never used. Allowed unused args must match /^_/u. unused-imports/no-unused-vars
web:build:
web:build: info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
web:build: - info Collecting page data...
web:build: - info Generating static pages (0/9)
web:build: - info Generating static pages (2/9)
web:build: Invalid URL
web:build: - info Generating static pages (4/9)
web:build: TypeError: fetch failed
web:build: at Object.fetch (node:internal/deps/undici/undici:11576:11)
web:build: at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
web:build: cause: Error: connect ECONNREFUSED 127.0.0.1:3000
web:build: at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
web:build: at TCPConnectWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
web:build: errno: -111,
web:build: code: 'ECONNREFUSED',
web:build: syscall: 'connect',
web:build: address: '127.0.0.1',
web:build: port: 3000
web:build: }
web:build: }
web:build: - info Generating static pages (6/9)
web:build: imagePreview { visible: false, image: null }
web:build:
web:build: Error occurred prerendering page "/preview/gallery". Read more: https://nextjs.org/docs/messages/prerender-error
web:build: TypeError: fetch failed
web:build: at Object.fetch (node:internal/deps/undici/undici:11576:11)
web:build: at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
web:build: imagePreview { visible: false, image: null }
web:build: - info Generating static pages (9/9)
web:build:
web:build: > Export encountered errors on following paths:
web:build: /preview/gallery/page: /preview/gallery
web:build: ELIFECYCLE Command failed with exit code 1.
web:build: ERROR: command finished with error: command (/home/gpt-subtitle-master/apps/web) pnpm run build exited (1)
web#build: command (/home/gpt-subtitle-master/apps/web) pnpm run build exited (1)
Tasks: 7 successful, 8 total
Cached: 7 cached, 8 total
Time: 13.086s
Failed: web#build
ERROR run failed: command exited (1)
`
npm run deploy:prod 的时候爆这个错误,是什么原因呀
如題,可以設定成假如資料夾內已經存在中文字幕的話自動跳過嗎?
gpt-subtitle/apps/server/src/subtitle/subtitle.service.ts:33
return path.join(staticPath, relativePath);
这段代码拼接结果是 --> 'http:/localhost:3001/static/video/Apollo_11_moonwalk_montage_720p.srt'
url拼接不能使用path.join拼接,路径里面‘//’会被转换为‘/’。
我改为
return url.resolve(
staticPath,
relativePath
);
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.