admin: Fix video route

This commit is contained in:
nemunaire 2022-05-23 01:39:35 +02:00
commit 4a190f51c5
8 changed files with 28 additions and 7 deletions

View file

@ -4,6 +4,7 @@ import (
"bufio"
"fmt"
"io/ioutil"
"log"
"os"
"path"
)
@ -53,9 +54,14 @@ func (i LocalImporter) exists(filename string) bool {
}
func (i LocalImporter) toURL(filename string) string {
log.Println(i.Base, filename, path.Join(i.Base, filename))
return path.Join(i.Base, filename)
}
func (i LocalImporter) GetLocalPath(p ...string) string {
return i.toURL(path.Join(p...))
}
func (i LocalImporter) importFile(URI string, next func(string, string) (interface{}, error)) (interface{}, error) {
if i.Symlink {
dest := getDestinationFilePath(URI)