mirror of
https://git.maid.zone/stuff/soundcloak.git
synced 2025-12-11 14:19:38 +05:00
github -> git.maid.zone
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
<a class="btn" href="/discover">Discover Playlists</a>
|
<a class="btn" href="/discover">Discover Playlists</a>
|
||||||
<a class="btn" href="/_/preferences">Preferences</a>
|
<a class="btn" href="/_/preferences">Preferences</a>
|
||||||
|
|
||||||
<a class="btn" href="https://github.com/maid-zone/soundcloak">Source code</a>
|
<a class="btn" href="https://git.maid.zone/stuff/soundcloak">Source code</a>
|
||||||
<a class="btn" href="/notice.txt">Legal notice</a>
|
<a class="btn" href="/notice.txt">Legal notice</a>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
1. Clone this repository:
|
1. Clone this repository:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone https://github.com/maid-zone/soundcloak
|
git clone https://git.maid.zone/stuff/soundcloak
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Go into the cloned repository:
|
2. Go into the cloned repository:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ You need to have [Docker](https://docker.com) and [Git](https://git-scm.com) ins
|
|||||||
1. Clone this repository:
|
1. Clone this repository:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone https://github.com/maid-zone/soundcloak
|
git clone https://git.maid.zone/stuff/soundcloak
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Go into the cloned repository:
|
2. Go into the cloned repository:
|
||||||
@@ -167,4 +167,4 @@ Basic rules:
|
|||||||
|
|
||||||
Also, keep in mind that the instance list will periodically hit the `/_/info` endpoint on your instance (usually each 10 minutes) in order to display the instance settings. If you do not want this to happen, state it in your discussion/message, and I will exclude your instance from this checking.
|
Also, keep in mind that the instance list will periodically hit the `/_/info` endpoint on your instance (usually each 10 minutes) in order to display the instance settings. If you do not want this to happen, state it in your discussion/message, and I will exclude your instance from this checking.
|
||||||
|
|
||||||
The source code powering the instance list can be found [here](https://github.com/maid-zone/soundcloak-instances)
|
The source code powering the instance list can be found [here](https://git.maid.zone/stuff/soundcloak-instances)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
# soundcloak
|
# soundcloak
|
||||||
|
|
||||||
|
# This readme is outdated
|
||||||
wip alternative frontend for soundcloud
|
wip alternative frontend for soundcloud
|
||||||
|
|
||||||
# [Instance list](https://maid.zone/soundcloak/instances.html)
|
# [Instance list](https://maid.zone/soundcloak/instances.html)
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
|||||||
module github.com/maid-zone/soundcloak
|
module git.maid.zone/stuff/soundcloak
|
||||||
|
|
||||||
go 1.22.10
|
go 1.22.10
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/maid-zone/soundcloak/lib/cfg"
|
"git.maid.zone/stuff/soundcloak/lib/cfg"
|
||||||
"github.com/valyala/fasthttp"
|
"github.com/valyala/fasthttp"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import (
|
|||||||
|
|
||||||
"github.com/goccy/go-json"
|
"github.com/goccy/go-json"
|
||||||
|
|
||||||
|
"git.maid.zone/stuff/soundcloak/lib/cfg"
|
||||||
|
"git.maid.zone/stuff/soundcloak/templates"
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"github.com/maid-zone/soundcloak/lib/cfg"
|
|
||||||
"github.com/maid-zone/soundcloak/templates"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func Defaults(dst *cfg.Preferences) {
|
func Defaults(dst *cfg.Preferences) {
|
||||||
|
|||||||
@@ -3,10 +3,10 @@ package proxyimages
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
|
||||||
|
"git.maid.zone/stuff/soundcloak/lib/cfg"
|
||||||
|
"git.maid.zone/stuff/soundcloak/lib/misc"
|
||||||
|
"git.maid.zone/stuff/soundcloak/lib/sc"
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"github.com/maid-zone/soundcloak/lib/cfg"
|
|
||||||
"github.com/maid-zone/soundcloak/lib/misc"
|
|
||||||
"github.com/maid-zone/soundcloak/lib/sc"
|
|
||||||
"github.com/valyala/fasthttp"
|
"github.com/valyala/fasthttp"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
|
"git.maid.zone/stuff/soundcloak/lib/cfg"
|
||||||
|
"git.maid.zone/stuff/soundcloak/lib/misc"
|
||||||
|
"git.maid.zone/stuff/soundcloak/lib/sc"
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"github.com/maid-zone/soundcloak/lib/cfg"
|
|
||||||
"github.com/maid-zone/soundcloak/lib/misc"
|
|
||||||
"github.com/maid-zone/soundcloak/lib/sc"
|
|
||||||
"github.com/valyala/fasthttp"
|
"github.com/valyala/fasthttp"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,14 +6,14 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
|
"git.maid.zone/stuff/soundcloak/lib/cfg"
|
||||||
|
"git.maid.zone/stuff/soundcloak/lib/misc"
|
||||||
|
"git.maid.zone/stuff/soundcloak/lib/preferences"
|
||||||
|
"git.maid.zone/stuff/soundcloak/lib/sc"
|
||||||
"github.com/bogem/id3v2/v2"
|
"github.com/bogem/id3v2/v2"
|
||||||
"github.com/gcottom/mp4meta"
|
"github.com/gcottom/mp4meta"
|
||||||
"github.com/gcottom/oggmeta"
|
"github.com/gcottom/oggmeta"
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"github.com/maid-zone/soundcloak/lib/cfg"
|
|
||||||
"github.com/maid-zone/soundcloak/lib/misc"
|
|
||||||
"github.com/maid-zone/soundcloak/lib/preferences"
|
|
||||||
"github.com/maid-zone/soundcloak/lib/sc"
|
|
||||||
"github.com/valyala/fasthttp"
|
"github.com/valyala/fasthttp"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package sc
|
package sc
|
||||||
|
|
||||||
import "github.com/maid-zone/soundcloak/lib/cfg"
|
import "git.maid.zone/stuff/soundcloak/lib/cfg"
|
||||||
|
|
||||||
// Functions/structions related to featured/suggested content
|
// Functions/structions related to featured/suggested content
|
||||||
|
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"git.maid.zone/stuff/soundcloak/lib/cfg"
|
||||||
|
"git.maid.zone/stuff/soundcloak/lib/misc"
|
||||||
"github.com/dlclark/regexp2"
|
"github.com/dlclark/regexp2"
|
||||||
"github.com/goccy/go-json"
|
"github.com/goccy/go-json"
|
||||||
"github.com/maid-zone/soundcloak/lib/cfg"
|
|
||||||
"github.com/maid-zone/soundcloak/lib/misc"
|
|
||||||
"github.com/valyala/fasthttp"
|
"github.com/valyala/fasthttp"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/maid-zone/soundcloak/lib/cfg"
|
"git.maid.zone/stuff/soundcloak/lib/cfg"
|
||||||
)
|
)
|
||||||
|
|
||||||
var PlaylistsCache = map[string]cached[Playlist]{}
|
var PlaylistsCache = map[string]cached[Playlist]{}
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"git.maid.zone/stuff/soundcloak/lib/cfg"
|
||||||
|
"git.maid.zone/stuff/soundcloak/lib/misc"
|
||||||
"github.com/goccy/go-json"
|
"github.com/goccy/go-json"
|
||||||
"github.com/maid-zone/soundcloak/lib/cfg"
|
|
||||||
"github.com/maid-zone/soundcloak/lib/misc"
|
|
||||||
"github.com/valyala/fasthttp"
|
"github.com/valyala/fasthttp"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"git.maid.zone/stuff/soundcloak/lib/cfg"
|
||||||
|
"git.maid.zone/stuff/soundcloak/lib/textparsing"
|
||||||
"github.com/goccy/go-json"
|
"github.com/goccy/go-json"
|
||||||
"github.com/maid-zone/soundcloak/lib/cfg"
|
|
||||||
"github.com/maid-zone/soundcloak/lib/textparsing"
|
|
||||||
"github.com/valyala/fasthttp"
|
"github.com/valyala/fasthttp"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
14
main.go
14
main.go
@@ -14,13 +14,13 @@ import (
|
|||||||
"github.com/gofiber/fiber/v2/middleware/recover"
|
"github.com/gofiber/fiber/v2/middleware/recover"
|
||||||
"github.com/valyala/fasthttp"
|
"github.com/valyala/fasthttp"
|
||||||
|
|
||||||
"github.com/maid-zone/soundcloak/lib/cfg"
|
"git.maid.zone/stuff/soundcloak/lib/cfg"
|
||||||
"github.com/maid-zone/soundcloak/lib/preferences"
|
"git.maid.zone/stuff/soundcloak/lib/preferences"
|
||||||
proxyimages "github.com/maid-zone/soundcloak/lib/proxy_images"
|
proxyimages "git.maid.zone/stuff/soundcloak/lib/proxy_images"
|
||||||
proxystreams "github.com/maid-zone/soundcloak/lib/proxy_streams"
|
proxystreams "git.maid.zone/stuff/soundcloak/lib/proxy_streams"
|
||||||
"github.com/maid-zone/soundcloak/lib/restream"
|
"git.maid.zone/stuff/soundcloak/lib/restream"
|
||||||
"github.com/maid-zone/soundcloak/lib/sc"
|
"git.maid.zone/stuff/soundcloak/lib/sc"
|
||||||
"github.com/maid-zone/soundcloak/templates"
|
"git.maid.zone/stuff/soundcloak/templates"
|
||||||
)
|
)
|
||||||
|
|
||||||
// see build script/dockerfile
|
// see build script/dockerfile
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package templates
|
package templates
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/maid-zone/soundcloak/lib/cfg"
|
"git.maid.zone/stuff/soundcloak/lib/cfg"
|
||||||
"github.com/maid-zone/soundcloak/lib/textparsing"
|
"git.maid.zone/stuff/soundcloak/lib/textparsing"
|
||||||
)
|
)
|
||||||
|
|
||||||
templ Base(title string, content templ.Component, head templ.Component) {
|
templ Base(title string, content templ.Component, head templ.Component) {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package templates
|
package templates
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/maid-zone/soundcloak/lib/sc"
|
"git.maid.zone/stuff/soundcloak/lib/sc"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package templates
|
package templates
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/maid-zone/soundcloak/lib/cfg"
|
"git.maid.zone/stuff/soundcloak/lib/cfg"
|
||||||
"github.com/maid-zone/soundcloak/lib/sc"
|
"git.maid.zone/stuff/soundcloak/lib/sc"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package templates
|
package templates
|
||||||
|
|
||||||
import "github.com/maid-zone/soundcloak/lib/cfg"
|
import "git.maid.zone/stuff/soundcloak/lib/cfg"
|
||||||
|
|
||||||
templ checkbox(name string, checked bool) {
|
templ checkbox(name string, checked bool) {
|
||||||
if checked {
|
if checked {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package templates
|
package templates
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/maid-zone/soundcloak/lib/sc"
|
"git.maid.zone/stuff/soundcloak/lib/sc"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package templates
|
package templates
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/maid-zone/soundcloak/lib/cfg"
|
"git.maid.zone/stuff/soundcloak/lib/cfg"
|
||||||
"github.com/maid-zone/soundcloak/lib/sc"
|
"git.maid.zone/stuff/soundcloak/lib/sc"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package templates
|
package templates
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/maid-zone/soundcloak/lib/cfg"
|
"git.maid.zone/stuff/soundcloak/lib/cfg"
|
||||||
"github.com/maid-zone/soundcloak/lib/sc"
|
"git.maid.zone/stuff/soundcloak/lib/sc"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|||||||
Reference in New Issue
Block a user