Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit d2720d8

Browse files
Merge pull request #235 from usdogu/fix-golgetv
GolgeTV home page url updater
2 parents 159cbe8 + 56a60d0 commit d2720d8

File tree

4 files changed

+29
-10
lines changed

4 files changed

+29
-10
lines changed

.github/workflows/Kontrol.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name : Gereksinimleri Yükle
4141
run : |
4242
python -m pip install --upgrade pip
43-
pip install -U setuptools wheel Kekik cloudscraper
43+
pip install -U setuptools wheel Kekik cloudscraper pycryptodome
4444
4545
- name : Betiği Çalıştır
4646
run : |

GolgeTV/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = 1
1+
version = 2
22

33
cloudstream {
44
authors = listOf("usdogu", "keyiflerolsun")

GolgeTV/src/main/kotlin/com/keyiflerolsun/GolgeTV.kt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,19 @@ import com.lagradost.cloudstream3.utils.loadExtractor
2020

2121
class GolgeTV : MainAPI() {
2222
override var name = "GolgeTV"
23+
override var mainUrl = "https://panel.cloudgolge.shop/appMainGetData.php"
2324
override val hasMainPage = true
2425
override var lang = "tr"
2526
override val supportedTypes = setOf(TvType.Live)
2627

2728
override val mainPage = mainPageOf(
28-
"https://panel2.cloudgolge.shop/appMainGetData.php" to "ULUSAL",
29-
"https://panel2.cloudgolge.shop/appMainGetData.php" to "SPOR",
30-
"https://panel2.cloudgolge.shop/appMainGetData.php" to "HABER",
31-
"https://panel2.cloudgolge.shop/appMainGetData.php" to "BELGESEL",
32-
"https://panel2.cloudgolge.shop/appMainGetData.php" to "SİNEMA",
33-
"https://panel2.cloudgolge.shop/appMainGetData.php" to "ÇOCUK",
34-
"https://panel2.cloudgolge.shop/appMainGetData.php" to "MÜZİK",
29+
this.mainUrl to "ULUSAL",
30+
this.mainUrl to "SPOR",
31+
this.mainUrl to "HABER",
32+
this.mainUrl to "BELGESEL",
33+
this.mainUrl to "SİNEMA",
34+
this.mainUrl to "ÇOCUK",
35+
this.mainUrl to "MÜZİK",
3536
)
3637

3738
override suspend fun getMainPage(page: Int, request: MainPageRequest): HomePageResponse {

KONTROL.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
from Kekik.cli import konsol
44
from cloudscraper import CloudScraper
5-
import os, re
5+
from Crypto.Cipher import AES
6+
from Crypto.Util.Padding import unpad
7+
import os, re, base64, json
68

79
class MainUrlUpdater:
810
def __init__(self, base_dir="."):
@@ -78,6 +80,13 @@ def _rectv_ver(self):
7880
)
7981
return istek.json().get("entries", {}).get("api_url", "").replace("/api/", "")
8082

83+
def _golgetv_ver(self):
84+
istek = self.oturum.get("https://raw.githubusercontent.com/sevdaliyim/sevdaliyim/refs/heads/main/ssl2.key").text
85+
cipher = AES.new(b"trskmrskslmzbzcnfstkcshpfstkcshp", AES.MODE_CBC, b"trskmrskslmzbzcn")
86+
encrypted_data = base64.b64decode(istek)
87+
decrypted_data = unpad(cipher.decrypt(encrypted_data), AES.block_size).decode("utf-8")
88+
return json.loads(decrypted_data, strict=False)["apiUrl"]
89+
8190
@property
8291
def mainurl_listesi(self):
8392
return {
@@ -98,6 +107,15 @@ def guncelle(self):
98107
konsol.log(f"[!] Kontrol Edilemedi : {mainurl}")
99108
konsol.log(f"[!] {type(hata).__name__} : {hata}")
100109
continue
110+
elif eklenti_adi == "GolgeTV":
111+
try:
112+
final_url = self._golgetv_ver()
113+
konsol.log(f"[+] Kontrol Edildi : {mainurl}")
114+
except Exception as hata:
115+
konsol.log(f"[!] Kontrol Edilemedi : {mainurl}")
116+
konsol.log(f"[!] Kontrol Edilemedi : {mainurl}")
117+
konsol.log(f"[!] {type(hata).__name__} : {hata}")
118+
continue
101119
else:
102120
try:
103121
istek = self.oturum.get(mainurl, allow_redirects=True)

0 commit comments

Comments
 (0)