node build fixed
This commit is contained in:
13
seanime-2.9.10/internal/local/sync_util.go
Normal file
13
seanime-2.9.10/internal/local/sync_util.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package local
|
||||
|
||||
import "fmt"
|
||||
|
||||
// FormatAssetUrl formats the asset URL for the given mediaId and filename.
|
||||
//
|
||||
// FormatAssetUrl(123, "cover.jpg") -> "{{LOCAL_ASSETS}}/123/cover.jpg"
|
||||
func FormatAssetUrl(mediaId int, filename string) *string {
|
||||
// {{LOCAL_ASSETS}} should be replaced in the client with the actual URL
|
||||
// e.g. http://<hostname>/local_assets/123/cover.jpg
|
||||
a := fmt.Sprintf("{{LOCAL_ASSETS}}/%d/%s", mediaId, filename)
|
||||
return &a
|
||||
}
|
||||
Reference in New Issue
Block a user