@@ -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
1616type VidCloudExtractor struct {
1717 Client * http.Client
1818}
@@ -21,12 +21,12 @@ type VidCloudExtractor struct {
2121func 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
3030func (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