mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Format code
This commit is contained in:
parent
53ce929fa7
commit
cc9b6e69c8
@ -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 })
|
||||||
| {
|
| {
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user