Format code

This commit is contained in:
Zoe Roux 2024-01-19 18:38:02 +01:00
parent 53ce929fa7
commit cc9b6e69c8
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ const kyooUrl =
// The url of kyoo, set after each query (used by the image parser). // The url of kyoo, set after each query (used by the image parser).
export let kyooApiUrl = kyooUrl; export let kyooApiUrl = kyooUrl;
export const queryFn = async <Data extends ZodType,>( export const queryFn = async <Data extends ZodType>(
context: context:
| (QueryFunctionContext & { timeout?: number; apiUrl?: string }) | (QueryFunctionContext & { timeout?: number; apiUrl?: string })
| { | {

View File

@ -49,8 +49,8 @@ func (e *Extractor) RunExtractor(path string, sha string, subs *[]Subtitle) <-ch
e.lock.Unlock() e.lock.Unlock()
go func() { go func() {
attachment_path := fmt.Sprintf("%s/%s/att/", GetMetadataPath(), sha) attachment_path := fmt.Sprintf("%s/%s/att", GetMetadataPath(), sha)
subs_path := fmt.Sprintf("%s/%s/sub/", GetMetadataPath(), sha) subs_path := fmt.Sprintf("%s/%s/sub", GetMetadataPath(), sha)
os.MkdirAll(attachment_path, 0o644) os.MkdirAll(attachment_path, 0o644)
os.MkdirAll(subs_path, 0o644) os.MkdirAll(subs_path, 0o644)