KekikStream 1.6.4__tar.gz → 1.7.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Core/Extractor/ExtractorBase.py +22 -10
  2. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Core/Plugin/PluginBase.py +28 -13
  3. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Core/Plugin/PluginModels.py +1 -0
  4. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/CloseLoad.py +0 -1
  5. kekikstream-1.7.7/KekikStream/Extractors/DzenRu.py +39 -0
  6. kekikstream-1.7.7/KekikStream/Extractors/ExPlay.py +54 -0
  7. kekikstream-1.7.7/KekikStream/Extractors/FirePlayer.py +61 -0
  8. kekikstream-1.7.7/KekikStream/Extractors/HDPlayerSystem.py +42 -0
  9. kekikstream-1.7.7/KekikStream/Extractors/JetTv.py +46 -0
  10. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/MailRu.py +0 -1
  11. kekikstream-1.7.7/KekikStream/Extractors/MixTiger.py +61 -0
  12. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/Odnoklassniki.py +13 -9
  13. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/PixelDrain.py +0 -1
  14. kekikstream-1.7.7/KekikStream/Extractors/PlayerFilmIzle.py +62 -0
  15. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/RapidVid.py +0 -1
  16. kekikstream-1.7.7/KekikStream/Extractors/SetPlay.py +58 -0
  17. kekikstream-1.7.7/KekikStream/Extractors/SetPrime.py +46 -0
  18. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/SibNet.py +0 -1
  19. kekikstream-1.7.7/KekikStream/Extractors/TurkeyPlayer.py +34 -0
  20. kekikstream-1.7.7/KekikStream/Extractors/VidHide.py +72 -0
  21. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/VidMoly.py +0 -2
  22. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/VidMoxy.py +0 -1
  23. kekikstream-1.7.7/KekikStream/Extractors/VidPapi.py +90 -0
  24. kekikstream-1.7.7/KekikStream/Extractors/YildizKisaFilm.py +42 -0
  25. kekikstream-1.7.7/KekikStream/Plugins/DiziPal.py +246 -0
  26. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Plugins/DiziYou.py +1 -1
  27. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Plugins/Dizilla.py +5 -1
  28. kekikstream-1.7.7/KekikStream/Plugins/FilmBip.py +145 -0
  29. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Plugins/FilmMakinesi.py +1 -1
  30. kekikstream-1.7.7/KekikStream/Plugins/FilmModu.py +138 -0
  31. kekikstream-1.7.7/KekikStream/Plugins/FullHDFilm.py +164 -0
  32. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Plugins/HDFilmCehennemi.py +13 -10
  33. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Plugins/JetFilmizle.py +10 -3
  34. kekikstream-1.7.7/KekikStream/Plugins/KultFilmler.py +219 -0
  35. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Plugins/RecTV.py +6 -6
  36. kekikstream-1.7.7/KekikStream/Plugins/RoketDizi.py +207 -0
  37. kekikstream-1.7.7/KekikStream/Plugins/SelcukFlix.py +216 -0
  38. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Plugins/SezonlukDizi.py +3 -0
  39. kekikstream-1.7.7/KekikStream/Plugins/SineWix.py +170 -0
  40. kekikstream-1.7.7/KekikStream/Plugins/Sinefy.py +214 -0
  41. kekikstream-1.7.7/KekikStream/Plugins/SinemaCX.py +157 -0
  42. kekikstream-1.7.7/KekikStream/Plugins/Sinezy.py +99 -0
  43. kekikstream-1.7.7/KekikStream/Plugins/SuperFilmGeldi.py +121 -0
  44. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/__init__.py +29 -16
  45. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/requirements.txt +3 -3
  46. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream.egg-info/PKG-INFO +4 -3
  47. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream.egg-info/SOURCES.txt +25 -0
  48. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream.egg-info/requires.txt +2 -1
  49. {kekikstream-1.6.4 → kekikstream-1.7.7}/PKG-INFO +4 -3
  50. {kekikstream-1.6.4 → kekikstream-1.7.7}/setup.py +4 -3
  51. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/CLI/__init__.py +0 -0
  52. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/CLI/pypi_kontrol.py +0 -0
  53. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Core/Extractor/ExtractorLoader.py +0 -0
  54. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Core/Extractor/ExtractorManager.py +0 -0
  55. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Core/Extractor/ExtractorModels.py +0 -0
  56. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Core/Media/MediaHandler.py +0 -0
  57. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Core/Media/MediaManager.py +0 -0
  58. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Core/Plugin/PluginLoader.py +0 -0
  59. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Core/Plugin/PluginManager.py +0 -0
  60. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Core/UI/UIManager.py +0 -0
  61. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Core/__init__.py +0 -0
  62. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/ContentX.py +0 -0
  63. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/FourCX.py +0 -0
  64. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/FourPichive.py +0 -0
  65. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/FourPlayRu.py +0 -0
  66. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/HDStreamAble.py +0 -0
  67. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/Hotlinger.py +0 -0
  68. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/MixPlayHD.py +0 -0
  69. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/MolyStream.py +0 -0
  70. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/OkRuHTTP.py +0 -0
  71. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/OkRuSSL.py +0 -0
  72. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/PeaceMakerst.py +0 -0
  73. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/Pichive.py +0 -0
  74. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/PlayRu.py +0 -0
  75. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/Sobreatsesuyp.py +0 -0
  76. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/TRsTX.py +0 -0
  77. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/TauVideo.py +0 -0
  78. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/TurboImgz.py +0 -0
  79. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/VidMolyMe.py +0 -0
  80. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Extractors/VideoSeyred.py +0 -0
  81. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Plugins/DiziBox.py +0 -0
  82. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Plugins/FullHDFilmizlesene.py +0 -0
  83. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/Plugins/UgurFilm.py +0 -0
  84. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream/__main__.py +0 -0
  85. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream.egg-info/dependency_links.txt +0 -0
  86. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream.egg-info/entry_points.txt +0 -0
  87. {kekikstream-1.6.4 → kekikstream-1.7.7}/KekikStream.egg-info/top_level.txt +0 -0
  88. {kekikstream-1.6.4 → kekikstream-1.7.7}/LICENSE +0 -0
  89. {kekikstream-1.6.4 → kekikstream-1.7.7}/MANIFEST.in +0 -0
  90. {kekikstream-1.6.4 → kekikstream-1.7.7}/README.md +0 -0
  91. {kekikstream-1.6.4 → kekikstream-1.7.7}/setup.cfg +0 -0
@@ -1,8 +1,9 @@
1
1
  # Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
2
2
 
3
3
  from abc import ABC, abstractmethod
4
- from httpx import AsyncClient, Timeout
4
+ from curl_cffi import AsyncSession
5
5
  from cloudscraper import CloudScraper
6
+ from httpx import AsyncClient
6
7
  from typing import Optional
7
8
  from .ExtractorModels import ExtractResult
8
9
  from urllib.parse import urljoin
@@ -11,18 +12,27 @@ class ExtractorBase(ABC):
11
12
  # Çıkarıcının temel özellikleri
12
13
  name = "Extractor"
13
14
  main_url = ""
15
+ requires_cffi = False
14
16
 
15
17
  def __init__(self):
16
- # HTTP istekleri için oturum oluştur
18
+ # cloudscraper - for bypassing Cloudflare
19
+ self.cloudscraper = CloudScraper()
20
+
21
+ # httpx - lightweight and safe for most HTTP requests
17
22
  self.httpx = AsyncClient(
18
- headers = {
19
- "User-Agent" : "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5)",
20
- "Accept" : "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
21
- },
22
- timeout = Timeout(10.0)
23
+ timeout = 3,
24
+ follow_redirects = True,
23
25
  )
24
- # CloudFlare korumalı siteler için scraper ayarla
25
- self.cloudscraper = CloudScraper()
26
+ self.httpx.headers.update(self.cloudscraper.headers)
27
+ self.httpx.cookies.update(self.cloudscraper.cookies)
28
+
29
+ # curl_cffi - only initialize if needed for anti-bot bypass
30
+ self.cffi = None
31
+
32
+ if self.requires_cffi:
33
+ self.cffi = AsyncSession(impersonate="firefox135")
34
+ self.cffi.cookies.update(self.cloudscraper.cookies)
35
+ self.cffi.headers.update({"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 15.7; rv:135.0) Gecko/20100101 Firefox/135.0"})
26
36
 
27
37
  def can_handle_url(self, url: str) -> bool:
28
38
  # URL'nin bu çıkarıcı tarafından işlenip işlenemeyeceğini kontrol et
@@ -34,8 +44,10 @@ class ExtractorBase(ABC):
34
44
  pass
35
45
 
36
46
  async def close(self):
37
- # HTTP oturumunu güvenli bir şekilde kapat
47
+ """Close both HTTP clients if they exist."""
38
48
  await self.httpx.aclose()
49
+ if self.cffi:
50
+ await self.cffi.close()
39
51
 
40
52
  def fix_url(self, url: str) -> str:
41
53
  # Eksik URL'leri düzelt ve tam URL formatına çevir
@@ -1,8 +1,9 @@
1
1
  # Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
2
2
 
3
3
  from abc import ABC, abstractmethod
4
- from httpx import AsyncClient, Timeout
4
+ from curl_cffi import AsyncSession
5
5
  from cloudscraper import CloudScraper
6
+ from httpx import AsyncClient
6
7
  from .PluginModels import MainPageResult, SearchResult, MovieInfo
7
8
  from ..Media.MediaHandler import MediaHandler
8
9
  from ..Extractor.ExtractorManager import ExtractorManager
@@ -16,6 +17,8 @@ class PluginBase(ABC):
16
17
  favicon = f"https://www.google.com/s2/favicons?domain={main_url}&sz=64"
17
18
  description = "No description provided."
18
19
 
20
+ requires_cffi = False
21
+
19
22
  main_page = {}
20
23
 
21
24
  async def url_update(self, new_url: str):
@@ -24,23 +27,32 @@ class PluginBase(ABC):
24
27
  self.main_url = new_url
25
28
 
26
29
  def __init__(self):
30
+ # cloudscraper - for bypassing Cloudflare
31
+ self.cloudscraper = CloudScraper()
32
+
33
+ # httpx - lightweight and safe for most HTTP requests
27
34
  self.httpx = AsyncClient(
28
- headers = {
29
- "User-Agent" : "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5)",
30
- "Accept" : "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
31
- },
32
- timeout = Timeout(10.0),
35
+ timeout = 3,
36
+ follow_redirects = True,
33
37
  )
34
- self.media_handler = MediaHandler()
35
- self.cloudscraper = CloudScraper()
36
- self.ex_manager = ExtractorManager()
37
38
  self.httpx.headers.update(self.cloudscraper.headers)
38
39
  self.httpx.cookies.update(self.cloudscraper.cookies)
39
40
 
40
- # @abstractmethod
41
- # async def get_main_page(self, page: int, url: str, category: str) -> list[MainPageResult]:
42
- # """Ana sayfadaki popüler içerikleri döndürür."""
43
- # pass
41
+ # curl_cffi - only initialize if needed for anti-bot bypass
42
+ self.cffi = None
43
+
44
+ if self.requires_cffi:
45
+ self.cffi = AsyncSession(impersonate="firefox135")
46
+ self.cffi.cookies.update(self.cloudscraper.cookies)
47
+ self.cffi.headers.update({"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 15.7; rv:135.0) Gecko/20100101 Firefox/135.0"})
48
+
49
+ self.media_handler = MediaHandler()
50
+ self.ex_manager = ExtractorManager()
51
+
52
+ @abstractmethod
53
+ async def get_main_page(self, page: int, url: str, category: str) -> list[MainPageResult]:
54
+ """Ana sayfadaki popüler içerikleri döndürür."""
55
+ pass
44
56
 
45
57
  @abstractmethod
46
58
  async def search(self, query: str) -> list[SearchResult]:
@@ -78,7 +90,10 @@ class PluginBase(ABC):
78
90
  pass
79
91
 
80
92
  async def close(self):
93
+ """Close both HTTP clients if they exist."""
81
94
  await self.httpx.aclose()
95
+ if self.cffi:
96
+ await self.cffi.close()
82
97
 
83
98
  def fix_url(self, url: str) -> str:
84
99
  if not url:
@@ -66,6 +66,7 @@ class SeriesInfo(BaseModel):
66
66
  rating : Optional[str] = None
67
67
  year : Optional[str] = None
68
68
  actors : Optional[str] = None
69
+ duration : Optional[int] = None
69
70
  episodes : Optional[List[Episode]] = None
70
71
 
71
72
  @field_validator("tags", "actors", mode="before")
@@ -18,7 +18,6 @@ class CloseLoadExtractor(ExtractorBase):
18
18
  eval_func = re.compile(r'\s*(eval\(function[\s\S].*)\s*').findall(istek.text)[0]
19
19
  m3u_link = StreamDecoder.extract_stream_url(Packer.unpack(eval_func))
20
20
 
21
- await self.close()
22
21
  return ExtractResult(
23
22
  name = self.name,
24
23
  url = m3u_link,
@@ -0,0 +1,39 @@
1
+ # Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
2
+
3
+ from KekikStream.Core import ExtractorBase, ExtractResult
4
+ import re
5
+
6
+ class DzenRu(ExtractorBase):
7
+ name = "DzenRu"
8
+ main_url = "https://dzen.ru"
9
+
10
+ async def extract(self, url, referer=None) -> ExtractResult:
11
+ video_key = url.split("/")[-1]
12
+ video_url = f"{self.main_url}/embed/{video_key}"
13
+
14
+ if referer:
15
+ self.httpx.headers.update({"Referer": referer})
16
+
17
+ istek = await self.httpx.get(video_url)
18
+ istek.raise_for_status()
19
+
20
+ # okcdn.ru linklerini bul
21
+ matches = re.findall(r'https://vd\d+\.okcdn\.ru/\?[^"\'\\\s]+', istek.text)
22
+
23
+ if not matches:
24
+ raise ValueError("DzenRu video link not found")
25
+
26
+ # Benzersiz linkleri al, son kaliteyi kullan
27
+ unique_links = list(set(matches))
28
+ best_link = unique_links[-1] if unique_links else None
29
+
30
+ if not best_link:
31
+ raise ValueError("No valid video URL found")
32
+
33
+ return ExtractResult(
34
+ name = self.name,
35
+ url = best_link,
36
+ referer = self.main_url,
37
+ headers = {},
38
+ subtitles = []
39
+ )
@@ -0,0 +1,54 @@
1
+ # Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
2
+
3
+ from KekikStream.Core import ExtractorBase, ExtractResult, Subtitle
4
+ import re
5
+ from urllib.parse import urlparse, parse_qs
6
+
7
+ class ExPlay(ExtractorBase):
8
+ name = "ExPlay"
9
+ main_url = "https://explay.store"
10
+
11
+ async def extract(self, url, referer=None) -> ExtractResult:
12
+ ext_ref = referer or ""
13
+
14
+ # URL parsing for partKey
15
+ parsed = urlparse(url)
16
+ params = parse_qs(parsed.query)
17
+ part_key = params.get("partKey", [""])[0]
18
+ clean_url = url.split("?partKey=")[0]
19
+
20
+ if referer:
21
+ self.httpx.headers.update({"Referer": referer})
22
+
23
+ istek = await self.httpx.get(clean_url)
24
+ istek.raise_for_status()
25
+
26
+ # videoUrl çıkar
27
+ video_url_match = re.search(r'videoUrl":"([^",]+)"', istek.text)
28
+ if not video_url_match:
29
+ raise ValueError("videoUrl not found")
30
+ video_url = video_url_match[1].replace("\\", "")
31
+
32
+ # videoServer çıkar
33
+ video_server_match = re.search(r'videoServer":"([^",]+)"', istek.text)
34
+ if not video_server_match:
35
+ raise ValueError("videoServer not found")
36
+ video_server = video_server_match[1]
37
+
38
+ # title çıkar
39
+ title_match = re.search(r'title":"([^",]+)"', istek.text)
40
+ title = title_match[1].split(".")[-1] if title_match else "Unknown"
41
+
42
+ if part_key and "turkce" in part_key.lower():
43
+ title = part_key # Or nicer formatting like SetPlay
44
+
45
+ # M3U8 link oluştur
46
+ m3u_link = f"{self.main_url}{video_url}?s={video_server}"
47
+
48
+ return ExtractResult(
49
+ name = f"{self.name} - {title}",
50
+ url = m3u_link,
51
+ referer = clean_url,
52
+ headers = {},
53
+ subtitles = []
54
+ )
@@ -0,0 +1,61 @@
1
+ # Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
2
+
3
+ from KekikStream.Core import ExtractorBase, ExtractResult
4
+ from Kekik.Sifreleme import Packer
5
+ import re
6
+
7
+ class FirePlayer(ExtractorBase):
8
+ name = "FirePlayer"
9
+ main_url = "https://Player.filmizle.in"
10
+
11
+ def can_handle_url(self, url: str) -> bool:
12
+ return "filmizle.in" in url or "fireplayer" in url.lower()
13
+
14
+ async def extract(self, url: str, referer: str = None) -> ExtractResult:
15
+ if not referer:
16
+ referer = "https://sinezy.site/"
17
+
18
+ headers = {
19
+ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
20
+ "Referer": referer
21
+ }
22
+
23
+ istek = await self.httpx.get(url, headers=headers)
24
+
25
+ # Unpack usage similar to VidMoxy / suggestion
26
+ # Find the packed code block
27
+ match = re.search(r'(eval\(function\(p,a,c,k,e,d\)[\s\S]+?)\s*</script>', istek.text)
28
+ if match:
29
+ packed_code = match.group(1)
30
+ unpacked = Packer.unpack(packed_code)
31
+ else:
32
+ unpacked = istek.text
33
+
34
+ # Normalize escaped slashes
35
+ unpacked = unpacked.replace(r"\/", "/")
36
+
37
+ video_url = None
38
+
39
+ # Look for .mp4 or .m3u8 urls directly first
40
+ url_match = re.search(r'(https?://[^"\'\s]+\.(?:mp4|m3u8))', unpacked)
41
+ if url_match:
42
+ video_url = url_match.group(1)
43
+
44
+ if not video_url:
45
+ # Fallback: find all 'file': '...' and pick best
46
+ files = re.findall(r'file\s*:\s*["\']([^"\']+)["\']', unpacked)
47
+ for f in files:
48
+ if f.strip() and not f.endswith(".jpg") and not f.endswith(".png") and not f.endswith(".vtt"):
49
+ video_url = f
50
+ break
51
+
52
+ if not video_url:
53
+ raise ValueError("Could not find video URL in unpacked content")
54
+
55
+ return ExtractResult(
56
+ name = self.name,
57
+ url = video_url,
58
+ referer = url,
59
+ headers = headers
60
+ )
61
+
@@ -0,0 +1,42 @@
1
+ # Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
2
+
3
+ from KekikStream.Core import ExtractorBase, ExtractResult
4
+
5
+ class HDPlayerSystem(ExtractorBase):
6
+ name = "HDPlayerSystem"
7
+ main_url = "https://hdplayersystem.com"
8
+
9
+ async def extract(self, url, referer=None) -> ExtractResult:
10
+ ext_ref = referer or ""
11
+
12
+ if "video/" in url:
13
+ vid_id = url.split("video/")[-1]
14
+ else:
15
+ vid_id = url.split("?data=")[-1]
16
+
17
+ post_url = f"{self.main_url}/player/index.php?data={vid_id}&do=getVideo"
18
+
19
+ response = await self.httpx.post(
20
+ url = post_url,
21
+ data = {"hash": vid_id, "r": ext_ref},
22
+ headers = {
23
+ "Referer" : ext_ref,
24
+ "Content-Type" : "application/x-www-form-urlencoded; charset=UTF-8",
25
+ "X-Requested-With" : "XMLHttpRequest"
26
+ }
27
+ )
28
+ response.raise_for_status()
29
+
30
+ video_data = response.json()
31
+ m3u_link = video_data.get("securedLink")
32
+
33
+ if not m3u_link:
34
+ raise ValueError("securedLink not found in response")
35
+
36
+ return ExtractResult(
37
+ name = self.name,
38
+ url = m3u_link,
39
+ referer = url,
40
+ headers = {},
41
+ subtitles = []
42
+ )
@@ -0,0 +1,46 @@
1
+ # Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
2
+
3
+ from KekikStream.Core import ExtractorBase, ExtractResult, Subtitle
4
+ import re, json
5
+
6
+ class JetTv(ExtractorBase):
7
+ name = "JetTv"
8
+ main_url = "https://jetv.xyz"
9
+
10
+ async def extract(self, url: str, referer: str = None) -> ExtractResult:
11
+ istek = await self.httpx.get(url)
12
+ document = istek.text
13
+
14
+ # 1. Yöntem: API üzerinden alma
15
+ master_url = ""
16
+ final_ref = f"{self.main_url}/"
17
+
18
+ if "id=" in url:
19
+ vid_id = url.split("id=")[-1]
20
+ api_url = f"https://jetv.xyz/apollo/get_video.php?id={vid_id}"
21
+ try:
22
+ # Referer olarak video sayfasının kendisi gönderilmeli
23
+ api_resp = await self.httpx.get(api_url, headers={"Referer": url})
24
+ api_json = api_resp.json()
25
+
26
+ if api_json.get("success"):
27
+ master_url = api_json.get("masterUrl", "")
28
+ final_ref = api_json.get("referrerUrl") or final_ref
29
+ except Exception:
30
+ pass
31
+
32
+ # 2. Yöntem: Regex Fallback
33
+ if not master_url:
34
+ if match := re.search(r"file: '([^']*)'", document, re.IGNORE_CASE):
35
+ master_url = match.group(1)
36
+
37
+ if not master_url:
38
+ raise ValueError(f"JetTv: Video kaynağı bulunamadı. {url}")
39
+
40
+ return ExtractResult(
41
+ name = self.name,
42
+ url = master_url,
43
+ referer = final_ref,
44
+ headers = {},
45
+ subtitles = []
46
+ )
@@ -30,7 +30,6 @@ class MailRuExtractor(ExtractorBase):
30
30
  if video_url.startswith("//"):
31
31
  video_url = f"https:{video_url}"
32
32
 
33
- await self.close()
34
33
  return ExtractResult(
35
34
  name = self.name,
36
35
  url = video_url,
@@ -0,0 +1,61 @@
1
+ # Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
2
+
3
+ from KekikStream.Core import ExtractorBase, ExtractResult
4
+
5
+ class MixTiger(ExtractorBase):
6
+ name = "MixTiger"
7
+ main_url = "https://www.mixtiger.com"
8
+
9
+ async def extract(self, url, referer=None) -> ExtractResult:
10
+ ext_ref = referer or ""
11
+ post_url = f"{url}?do=getVideo"
12
+ vid_id = url.split("video/")[-1] if "video/" in url else ""
13
+
14
+ response = await self.httpx.post(
15
+ url = post_url,
16
+ data = {"hash": vid_id, "r": ext_ref, "s": ""},
17
+ headers = {
18
+ "Referer" : ext_ref,
19
+ "Content-Type" : "application/x-www-form-urlencoded; charset=UTF-8",
20
+ "X-Requested-With" : "XMLHttpRequest"
21
+ }
22
+ )
23
+ response.raise_for_status()
24
+
25
+ video_data = response.json()
26
+
27
+ # videoSrc varsa doğrudan kullan
28
+ if video_data.get("videoSrc"):
29
+ m3u_link = video_data["videoSrc"]
30
+ # videoSources listesi varsa son elemanı al
31
+ elif video_data.get("videoSources"):
32
+ sources = video_data["videoSources"]
33
+ m3u_link = sources[-1].get("file") if sources else None
34
+ else:
35
+ m3u_link = None
36
+
37
+ if not m3u_link:
38
+ raise ValueError("Video URL not found in response")
39
+
40
+ # disk.yandex için referer boş olmalı
41
+ final_referer = "" if "disk.yandex" in m3u_link else ext_ref
42
+
43
+ # Recursive extraction check
44
+ try:
45
+ from KekikStream.Core.Extractor.ExtractorManager import ExtractorManager
46
+ # Import inside method to avoid circular dependency
47
+ manager = ExtractorManager()
48
+ if nested_extractor := manager.find_extractor(m3u_link):
49
+ # Use recursive extraction
50
+ return await nested_extractor.extract(m3u_link, referer=final_referer)
51
+ except Exception:
52
+ # If recursion fails, fallback to standard result
53
+ pass
54
+
55
+ return ExtractResult(
56
+ name = self.name,
57
+ url = m3u_link,
58
+ referer = final_referer,
59
+ headers = {},
60
+ subtitles = []
61
+ )
@@ -8,16 +8,20 @@ class Odnoklassniki(ExtractorBase):
8
8
  main_url = "https://odnoklassniki.ru"
9
9
 
10
10
  async def extract(self, url, referer=None) -> ExtractResult:
11
- if referer:
12
- self.httpx.headers.update({"Referer": referer})
13
-
14
- self.httpx.headers.update({
15
- "User-Agent": "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36"
16
- })
17
-
18
11
  if "/video/" in url:
19
12
  url = url.replace("/video/", "/videoembed/")
20
13
 
14
+ headers = {
15
+ "Accept" : "*/*",
16
+ "Connection" : "keep-alive",
17
+ "Sec-Fetch-Dest" : "empty",
18
+ "Sec-Fetch-Mode" : "cors",
19
+ "Sec-Fetch-Site" : "cross-site",
20
+ "Origin" : self.main_url,
21
+ "User-Agent" : "Mozilla/5.0 (X11; Linux x86_64; rv:101.0) Gecko/20100101 Firefox/101.0",
22
+ }
23
+ self.httpx.headers.update(headers)
24
+
21
25
  try:
22
26
  istek = await self.fetch_with_redirects(url)
23
27
  istek.raise_for_status()
@@ -80,8 +84,8 @@ class Odnoklassniki(ExtractorBase):
80
84
  return ExtractResult(
81
85
  name = self.name,
82
86
  url = best_video,
83
- referer = self.main_url,
84
- headers = {},
87
+ referer = referer,
88
+ headers = headers,
85
89
  subtitles = []
86
90
  )
87
91
 
@@ -19,7 +19,6 @@ class PixelDrain(ExtractorBase):
19
19
  download_link = f"{self.main_url}/api/file/{pixel_id}?download"
20
20
  referer_link = f"{self.main_url}/u/{pixel_id}?download"
21
21
 
22
- await self.close()
23
22
  return ExtractResult(
24
23
  name = f"{self.name} - {pixel_id}",
25
24
  url = download_link,
@@ -0,0 +1,62 @@
1
+ # Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
2
+
3
+ from KekikStream.Core import ExtractorBase, ExtractResult, Subtitle
4
+ import re, json
5
+
6
+ class PlayerFilmIzle(ExtractorBase):
7
+ name = "PlayerFilmIzle"
8
+ main_url = "https://player.filmizle.in"
9
+
10
+ async def extract(self, url: str, referer: str = None) -> ExtractResult:
11
+ # Kotlin tarafında referer mainUrl olarak zorlanmış
12
+ ext_ref = self.main_url
13
+ self.httpx.headers.update({"Referer": ext_ref})
14
+
15
+ istek = await self.httpx.get(url)
16
+ video_req = istek.text
17
+
18
+ subtitles = []
19
+ if sub_match := re.search(r'playerjsSubtitle = "([^"]*)"', video_req, re.IGNORE_CASE):
20
+ sub_yakala = sub_match.group(1)
21
+ # Format örneği: [dil]url
22
+ # Kotlin kodunda: subYakala.substringAfter("]") -> url
23
+ # subYakala.substringBefore("]").removePrefix("[") -> lang
24
+ if "]" in sub_yakala:
25
+ sub_lang_raw, sub_url = sub_yakala.split("]", 1)
26
+ sub_lang = sub_lang_raw.replace("[", "")
27
+ subtitles.append(Subtitle(name=sub_lang, url=sub_url))
28
+
29
+ # Data yakalama: FirePlayer|DATA|...
30
+ data_match = re.search(r'FirePlayer\|([^|]+)\|', video_req, re.IGNORE_CASE)
31
+ data_val = data_match.group(1) if data_match else None
32
+
33
+ if not data_val:
34
+ raise ValueError("PlayerFilmIzle: Data bulunamadı")
35
+
36
+ url_post = f"{self.main_url}/player/index.php?data={data_val}&do=getVideo"
37
+
38
+ post_headers = {
39
+ "Referer": ext_ref,
40
+ "X-Requested-With": "XMLHttpRequest"
41
+ }
42
+
43
+ # Kotlin'de post data: "hash" -> data, "r" -> ""
44
+ post_data = {"hash": data_val, "r": ""}
45
+
46
+ response = await self.httpx.post(url_post, data=post_data, headers=post_headers)
47
+ get_url = response.text.replace("\\", "")
48
+
49
+ m3u8_url = ""
50
+ if url_yakala := re.search(r'"securedLink":"([^"]*)"', get_url, re.IGNORE_CASE):
51
+ m3u8_url = url_yakala.group(1)
52
+
53
+ if not m3u8_url:
54
+ raise ValueError("PlayerFilmIzle: M3U8 linki bulunamadı")
55
+
56
+ return ExtractResult(
57
+ name = self.name,
58
+ url = m3u8_url,
59
+ referer = ext_ref,
60
+ headers = dict(self.httpx.headers),
61
+ subtitles = subtitles
62
+ )
@@ -45,7 +45,6 @@ class RapidVid(ExtractorBase):
45
45
  except Exception as hata:
46
46
  raise RuntimeError(f"Extraction failed: {hata}") from hata
47
47
 
48
- await self.close()
49
48
  return ExtractResult(
50
49
  name = self.name,
51
50
  url = decoded_url,
@@ -0,0 +1,58 @@
1
+ # Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
2
+
3
+ from KekikStream.Core import ExtractorBase, ExtractResult
4
+ import re
5
+
6
+ class SetPlay(ExtractorBase):
7
+ name = "SetPlay"
8
+ main_url = "https://setplay.cfd"
9
+
10
+ async def extract(self, url, referer=None) -> ExtractResult:
11
+ ext_ref = referer or ""
12
+
13
+ if referer:
14
+ self.httpx.headers.update({"Referer": referer})
15
+
16
+ istek = await self.httpx.get(url)
17
+ istek.raise_for_status()
18
+
19
+ # videoUrl çıkar
20
+ video_url_match = re.search(r'videoUrl":"([^",]+)"', istek.text)
21
+ if not video_url_match:
22
+ raise ValueError("videoUrl not found")
23
+ video_url = video_url_match[1].replace("\\", "")
24
+
25
+ # videoServer çıkar
26
+ video_server_match = re.search(r'videoServer":"([^",]+)"', istek.text)
27
+ if not video_server_match:
28
+ raise ValueError("videoServer not found")
29
+ video_server = video_server_match[1]
30
+
31
+ # title çıkar (opsiyonel)
32
+ title_match = re.search(r'title":"([^",]+)"', istek.text)
33
+ title_base = title_match[1].split(".")[-1] if title_match else "Unknown"
34
+
35
+ # partKey logic
36
+ from urllib.parse import urlparse, parse_qs
37
+ parsed = urlparse(url)
38
+ params = parse_qs(parsed.query)
39
+ part_key = params.get("partKey", [""])[0]
40
+
41
+ name_suffix = ""
42
+ if "turkcedublaj" in part_key.lower():
43
+ name_suffix = "Dublaj"
44
+ elif "turkcealtyazi" in part_key.lower():
45
+ name_suffix = "Altyazı"
46
+ else:
47
+ name_suffix = title_base
48
+
49
+ # M3U8 link oluştur
50
+ m3u_link = f"{self.main_url}{video_url}?s={video_server}"
51
+
52
+ return ExtractResult(
53
+ name = f"{self.name} - {name_suffix}",
54
+ url = m3u_link,
55
+ referer = url,
56
+ headers = {},
57
+ subtitles = []
58
+ )