Skip to content

Commit f711520

Browse files
fix: update sflix base and decryption url to use broggle
1 parent 41cde47 commit f711520

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

internal/providers/movies/sflix/sflix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type SFlix struct {
2525

2626
func New() *SFlix {
2727
return &SFlix{
28-
BaseURL: "https://sflix.ps",
28+
BaseURL: "https://sflixto.uk",
2929
Client: &http.Client{},
3030
}
3131
}

internal/providers/registry.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func (r *Registry) CheckAllProviders(ctx context.Context) {
220220
urlMap := map[string]string{
221221
"hianime": "https://hianime.to",
222222
"allanime": "https://allanime.to",
223-
"sflix": "https://sflix.to",
223+
"sflix": "https://sflixto.uk",
224224
"flixhq": "https://flixhq.to",
225225
"hdrezka": "https://hdrezka.me",
226226
"comix": "https://comick.io",

pkg/extractors/factory.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ func GetExtractor(serverName string) Extractor {
99
serverLower := strings.ToLower(serverName)
1010

1111
// HD-1, HD-2, HD-3 servers from hianime use megacloud.blog
12-
// These need the MegaCloud extractor (not dec.eatmynerds.live)
12+
// These need the MegaCloud extractor (not decrypt.broggl.farm)
1313
if strings.Contains(serverLower, "hd-") {
1414
return NewMegaCloudExtractor()
1515
}
1616

1717
// All other servers use videostr.net/streameeeeee.site embeds
18-
// and work best with dec.eatmynerds.live (VidCloud extractor)
18+
// and work best with decrypt.broggl.farm (VidCloud extractor)
1919
if strings.Contains(serverLower, "vidcloud") ||
2020
strings.Contains(serverLower, "upcloud") ||
2121
strings.Contains(serverLower, "akcloud") ||

pkg/extractors/vidcloud.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/justchokingaround/greg/pkg/types"
1313
)
1414

15-
// VidCloudExtractor handles extraction from VidCloud/UpCloud/AkCloud servers using dec.eatmynerds.live
15+
// VidCloudExtractor handles extraction from VidCloud/UpCloud/AkCloud servers using decrypt.broggl.farm
1616
type VidCloudExtractor struct {
1717
Client *http.Client
1818
}
@@ -21,12 +21,12 @@ type VidCloudExtractor struct {
2121
func NewVidCloudExtractor() *VidCloudExtractor {
2222
return &VidCloudExtractor{
2323
Client: &http.Client{
24-
Timeout: 15 * time.Second, // Reasonable timeout for dec.eatmynerds.live
24+
Timeout: 15 * time.Second, // Reasonable timeout for decrypt.broggl.farm
2525
},
2626
}
2727
}
2828

29-
// Extract extracts video sources from VidCloud/UpCloud/AkCloud URLs using dec.eatmynerds.live
29+
// Extract extracts video sources from VidCloud/UpCloud/AkCloud URLs using decrypt.broggl.farm
3030
func (v *VidCloudExtractor) Extract(sourceURL string) (*types.VideoSources, error) {
3131
// Extract referer from sourceURL
3232
parsedURL, err := url.Parse(sourceURL)
@@ -35,10 +35,10 @@ func (v *VidCloudExtractor) Extract(sourceURL string) (*types.VideoSources, erro
3535
referer = fmt.Sprintf("%s://%s/", parsedURL.Scheme, parsedURL.Host)
3636
}
3737

38-
// Construct the dec.eatmynerds.live URL
39-
decURL := fmt.Sprintf("https://dec.eatmynerds.live/?url=%s", url.QueryEscape(sourceURL))
38+
// Construct the decrypt.broggl.farm URL
39+
decURL := fmt.Sprintf("https://decrypt.broggl.farm/?url=%s", url.QueryEscape(sourceURL))
4040

41-
// Make request to dec.eatmynerds.live
41+
// Make request to decrypt.broggl.farm
4242
req, err := http.NewRequest("GET", decURL, nil)
4343
if err != nil {
4444
return nil, fmt.Errorf("failed creating dec request: %w", err)
@@ -49,12 +49,12 @@ func (v *VidCloudExtractor) Extract(sourceURL string) (*types.VideoSources, erro
4949

5050
resp, err := v.Client.Do(req)
5151
if err != nil {
52-
return nil, fmt.Errorf("failed fetching from dec.eatmynerds.live: %w", err)
52+
return nil, fmt.Errorf("failed fetching from decrypt.broggl.farm: %w", err)
5353
}
5454
defer func() { _ = resp.Body.Close() }()
5555

5656
if resp.StatusCode != http.StatusOK {
57-
return nil, fmt.Errorf("dec.eatmynerds.live returned status %d", resp.StatusCode)
57+
return nil, fmt.Errorf("decrypt.broggl.farm returned status %d", resp.StatusCode)
5858
}
5959

6060
body, err := io.ReadAll(resp.Body)
@@ -107,7 +107,7 @@ func (v *VidCloudExtractor) Extract(sourceURL string) (*types.VideoSources, erro
107107
}
108108

109109
if len(videoSources) == 0 {
110-
return nil, fmt.Errorf("no video sources found in dec.eatmynerds.live response")
110+
return nil, fmt.Errorf("no video sources found in decrypt.broggl.farm response")
111111
}
112112

113113
return &types.VideoSources{

0 commit comments

Comments
 (0)