mirror of
https://git.maid.zone/stuff/soundcloak.git
synced 2025-12-10 05:39:38 +05:00
add stub rss_templ.go file (maybe fix some ssues with soundcloakctl)
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -17,6 +17,7 @@ fly.toml
|
||||
|
||||
# codegen
|
||||
*_templ.go
|
||||
!rss_templ.go
|
||||
regexp2_codegen.go
|
||||
|
||||
# built binary
|
||||
@@ -25,4 +26,5 @@ main
|
||||
!.gitkeep
|
||||
|
||||
# for development/testing
|
||||
Caddyfile
|
||||
Caddyfile
|
||||
misc/
|
||||
@@ -16,15 +16,7 @@ git clone https://git.maid.zone/stuff/soundcloak
|
||||
cd soundcloak
|
||||
```
|
||||
|
||||
3. Build binary:
|
||||
|
||||
This uses the `build` script, which generates code from templates, generates code for regular expiressions, and then builds the binary.
|
||||
|
||||
```sh
|
||||
./build
|
||||
```
|
||||
|
||||
4. Download required JS modules:
|
||||
3. Download required JS modules:
|
||||
|
||||
Currently it's just HLS.js. This is what powers the HLS player
|
||||
|
||||
@@ -32,6 +24,14 @@ Currently it's just HLS.js. This is what powers the HLS player
|
||||
go tool soundcloakctl js download
|
||||
```
|
||||
|
||||
4. Build binary:
|
||||
|
||||
This uses the `build` script, which generates code from templates, generates code for regular expiressions, and then builds the binary.
|
||||
|
||||
```sh
|
||||
./build
|
||||
```
|
||||
|
||||
Now, you can run soundcloak with the `./main` binary. By default, it is listening on `127.0.0.1:4664`. For a configuration guide, [refer to here](INSTANCE_GUIDE.md#configuration-guide)
|
||||
|
||||
# Updating your local setup
|
||||
|
||||
16
lib/sc/rss_templ.go
Normal file
16
lib/sc/rss_templ.go
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
// Code generated by hands
|
||||
// Run templ generate to generate the real code
|
||||
package sc
|
||||
|
||||
//lint:file-ignore SA4006 This context is only used if a nested component is present.
|
||||
|
||||
import (
|
||||
"git.maid.zone/stuff/soundcloak/lib/cfg"
|
||||
"github.com/a-h/templ"
|
||||
)
|
||||
|
||||
func TrackDescription(prefs cfg.Preferences, t *Track, href string) templ.Component {
|
||||
return templ.NopComponent
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user