Fix metadata directory permissions (subtitle extraction)

This commit is contained in:
Zoe Roux 2024-07-25 19:20:34 +02:00
parent 9f7607cb87
commit 0f091618b7

View File

@ -26,7 +26,7 @@ func Extract(path string, sha string) (<-chan struct{}, error) {
}
attachment_path := fmt.Sprintf("%s/%s/att", Settings.Metadata, sha)
subs_path := fmt.Sprintf("%s/%s/sub", Settings.Metadata, sha)
os.MkdirAll(attachment_path, 0o644)
os.MkdirAll(attachment_path, 0o755)
os.MkdirAll(subs_path, 0o755)
// If there is no subtitles, there is nothing to extract (also fonts would be useless).