diff --git a/docker-compose/config.yml.example b/docker-compose/config.yml.example index 01bc78f..6ea355e 100644 --- a/docker-compose/config.yml.example +++ b/docker-compose/config.yml.example @@ -15,7 +15,8 @@ log: level: DEBUG recording: basepath: "/recorded" - contentpathtemplate: "{{.Program.Name | fold}}-{{.Program.StartTime.Format \"20060102-1504\"}}-{{.Service.Name | fold}}.m2ts" + contentpathtemplate: | + {{.Title}}{{if ne .Episode -1}} #{{.Episode}}{{end}}{{if ne .Subtitle ""}}「{{.Subtitle}}」{{end}}-{{.Program.StartTime.Format "20060102-1504"}}-{{.Service.Name}}.m2ts encoding: enabled: true basepath: "/encoded" diff --git a/gpt/gpt_client.go b/gpt/gpt_client.go index ca3e84f..06fabdc 100644 --- a/gpt/gpt_client.go +++ b/gpt/gpt_client.go @@ -10,7 +10,7 @@ import ( ) const systemPrompt = `Parse user message and output with this format: -{"title": title name of the program, "subtitle": subtitle name of the program including the part used to extract the number of episodes, excluding flags such as "[新]", "[再]", etc., empty if it does not exist, "episode": number of episodes extracted from Arabic or Chinese numerals in numeric type, 0 if not present} +{"title": title name of the program, "subtitle": subtitle name of the program including the part used to extract the number of episodes, excluding flags such as "[新]", "[再]", etc., empty if it does not exist, "episode": number of episodes extracted from Arabic or Chinese numerals in numeric type, -1 if not present} Please return in strict JSON format. Never include non-JSON content in the output, such as commentary.` const transcribeInitialPrompt = `そうだ。今日はピクニックしない?天気もいいし、絶好のピクニック日和だと思う。いいですね。