KekikStream 2.1.0__tar.gz → 2.1.9__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.
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Core/Plugin/PluginBase.py +20 -21
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/CloseLoad.py +17 -2
- kekikstream-2.1.9/KekikStream/Extractors/Filemoon.py +78 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/MixTiger.py +5 -5
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/RapidVid.py +15 -5
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/VidHide.py +11 -2
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/BelgeselX.py +7 -7
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/DiziBox.py +2 -2
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/DiziPal.py +8 -8
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/DiziYou.py +8 -8
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/Dizilla.py +2 -2
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/FilmBip.py +2 -2
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/FilmMakinesi.py +26 -14
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/FilmModu.py +8 -8
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/FullHDFilm.py +81 -22
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/FullHDFilmizlesene.py +2 -2
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/HDFilmCehennemi.py +83 -72
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/JetFilmizle.py +2 -2
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/KultFilmler.py +10 -9
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/RecTV.py +15 -15
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/RoketDizi.py +2 -2
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/SelcukFlix.py +68 -44
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/SetFilmIzle.py +21 -21
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/SezonlukDizi.py +19 -2
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/SineWix.py +13 -13
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/Sinefy.py +6 -6
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/SinemaCX.py +31 -22
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/Sinezy.py +2 -2
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/SuperFilmGeldi.py +30 -19
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Plugins/UgurFilm.py +2 -2
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/__init__.py +15 -15
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream.egg-info/PKG-INFO +5 -3
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream.egg-info/SOURCES.txt +1 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/PKG-INFO +5 -3
- {kekikstream-2.1.0 → kekikstream-2.1.9}/README.md +4 -2
- {kekikstream-2.1.0 → kekikstream-2.1.9}/setup.py +1 -1
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/CLI/__init__.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/CLI/pypi_kontrol.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Core/Extractor/ExtractorBase.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Core/Extractor/ExtractorLoader.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Core/Extractor/ExtractorManager.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Core/Extractor/ExtractorModels.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Core/Extractor/YTDLPCache.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Core/Media/MediaHandler.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Core/Media/MediaManager.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Core/Plugin/PluginLoader.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Core/Plugin/PluginManager.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Core/Plugin/PluginModels.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Core/UI/UIManager.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Core/__init__.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/ContentX.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/DonilasPlay.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/DzenRu.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/ExPlay.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/HDPlayerSystem.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/JetTv.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/MailRu.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/MixPlayHD.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/MolyStream.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/Odnoklassniki.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/PeaceMakerst.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/PixelDrain.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/PlayerFilmIzle.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/SetPlay.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/SetPrime.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/SibNet.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/Sobreatsesuyp.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/TRsTX.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/TauVideo.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/TurboImgz.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/TurkeyPlayer.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/VCTPlay.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/VidMoly.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/VidMoxy.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/VidPapi.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/VideoSeyred.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/YTDLP.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/Extractors/YildizKisaFilm.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/__main__.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream/requirements.txt +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream.egg-info/dependency_links.txt +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream.egg-info/entry_points.txt +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream.egg-info/requires.txt +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/KekikStream.egg-info/top_level.txt +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/LICENSE +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/MANIFEST.in +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.9}/setup.cfg +0 -0
|
@@ -4,7 +4,7 @@ from ...CLI import konsol
|
|
|
4
4
|
from abc import ABC, abstractmethod
|
|
5
5
|
from cloudscraper import CloudScraper
|
|
6
6
|
from httpx import AsyncClient
|
|
7
|
-
from .PluginModels import MainPageResult, SearchResult, MovieInfo
|
|
7
|
+
from .PluginModels import MainPageResult, SearchResult, MovieInfo, SeriesInfo
|
|
8
8
|
from ..Media.MediaHandler import MediaHandler
|
|
9
9
|
from ..Extractor.ExtractorManager import ExtractorManager
|
|
10
10
|
from ..Extractor.ExtractorModels import ExtractResult
|
|
@@ -55,31 +55,31 @@ class PluginBase(ABC):
|
|
|
55
55
|
pass
|
|
56
56
|
|
|
57
57
|
@abstractmethod
|
|
58
|
-
async def load_item(self, url: str) -> MovieInfo:
|
|
58
|
+
async def load_item(self, url: str) -> MovieInfo | SeriesInfo:
|
|
59
59
|
"""Bir medya öğesi hakkında detaylı bilgi döndürür."""
|
|
60
60
|
pass
|
|
61
61
|
|
|
62
62
|
@abstractmethod
|
|
63
|
-
async def load_links(self, url: str) -> list[
|
|
63
|
+
async def load_links(self, url: str) -> list[ExtractResult]:
|
|
64
64
|
"""
|
|
65
65
|
Bir medya öğesi için oynatma bağlantılarını döndürür.
|
|
66
|
-
|
|
66
|
+
|
|
67
67
|
Args:
|
|
68
68
|
url: Medya URL'si
|
|
69
|
-
|
|
69
|
+
|
|
70
70
|
Returns:
|
|
71
|
-
|
|
71
|
+
ExtractResult listesi, her biri şu alanları içerir:
|
|
72
72
|
- url (str, zorunlu): Video URL'si
|
|
73
73
|
- name (str, zorunlu): Gösterim adı (tüm bilgileri içerir)
|
|
74
74
|
- referer (str, opsiyonel): Referer header
|
|
75
|
-
- subtitles (list, opsiyonel): Altyazı listesi
|
|
76
|
-
|
|
75
|
+
- subtitles (list[Subtitle], opsiyonel): Altyazı listesi
|
|
76
|
+
|
|
77
77
|
Example:
|
|
78
78
|
[
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
ExtractResult(
|
|
80
|
+
url="https://example.com/video.m3u8",
|
|
81
|
+
name="HDFilmCehennemi | 1080p TR Dublaj"
|
|
82
|
+
)
|
|
83
83
|
]
|
|
84
84
|
"""
|
|
85
85
|
pass
|
|
@@ -97,7 +97,7 @@ class PluginBase(ABC):
|
|
|
97
97
|
|
|
98
98
|
return f"https:{url}" if url.startswith("//") else urljoin(self.main_url, url)
|
|
99
99
|
|
|
100
|
-
async def extract(self, url: str, referer: str = None, prefix: str | None = None) ->
|
|
100
|
+
async def extract(self, url: str, referer: str = None, prefix: str | None = None) -> ExtractResult | None:
|
|
101
101
|
"""
|
|
102
102
|
Extractor ile video URL'sini çıkarır.
|
|
103
103
|
|
|
@@ -107,8 +107,8 @@ class PluginBase(ABC):
|
|
|
107
107
|
prefix: İsmin başına eklenecek opsiyonel etiket (örn: "Türkçe Dublaj")
|
|
108
108
|
|
|
109
109
|
Returns:
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
ExtractResult: Extractor sonucu (name prefix ile birleştirilmiş) veya None
|
|
111
|
+
|
|
112
112
|
Extractor bulunamadığında veya hata oluştuğunda uyarı verir.
|
|
113
113
|
"""
|
|
114
114
|
if referer is None:
|
|
@@ -121,13 +121,12 @@ class PluginBase(ABC):
|
|
|
121
121
|
|
|
122
122
|
try:
|
|
123
123
|
data = await extractor.extract(url, referer=referer)
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
|
|
126
125
|
# prefix varsa name'e ekle
|
|
127
|
-
if prefix and
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
return
|
|
126
|
+
if prefix and data.name:
|
|
127
|
+
data.name = f"{prefix} | {data.name}"
|
|
128
|
+
|
|
129
|
+
return data
|
|
131
130
|
except Exception as hata:
|
|
132
131
|
konsol.log(f"[red][!] {self.name} » Extractor hatası ({extractor.name}): {hata}")
|
|
133
132
|
return None
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
|
2
2
|
|
|
3
|
-
from KekikStream.Core import ExtractorBase, ExtractResult
|
|
3
|
+
from KekikStream.Core import ExtractorBase, ExtractResult, Subtitle
|
|
4
4
|
from Kekik.Sifreleme import Packer, StreamDecoder
|
|
5
|
+
from parsel import Selector
|
|
5
6
|
import re
|
|
6
7
|
|
|
7
8
|
class CloseLoadExtractor(ExtractorBase):
|
|
@@ -15,12 +16,26 @@ class CloseLoadExtractor(ExtractorBase):
|
|
|
15
16
|
istek = await self.httpx.get(url)
|
|
16
17
|
istek.raise_for_status()
|
|
17
18
|
|
|
19
|
+
# Video URL'sini çıkar
|
|
18
20
|
eval_func = re.compile(r'\s*(eval\(function[\s\S].*)\s*').findall(istek.text)[0]
|
|
19
21
|
m3u_link = StreamDecoder.extract_stream_url(Packer.unpack(eval_func))
|
|
20
22
|
|
|
23
|
+
# Subtitle'ları parse et (Kotlin referansı: track elementleri)
|
|
24
|
+
subtitles = []
|
|
25
|
+
secici = Selector(istek.text)
|
|
26
|
+
for track in secici.css("track"):
|
|
27
|
+
raw_src = track.css("::attr(src)").get() or ""
|
|
28
|
+
raw_src = raw_src.strip()
|
|
29
|
+
label = track.css("::attr(label)").get() or track.css("::attr(srclang)").get() or "Altyazı"
|
|
30
|
+
|
|
31
|
+
if raw_src:
|
|
32
|
+
full_url = raw_src if raw_src.startswith("http") else f"{self.main_url}{raw_src}"
|
|
33
|
+
subtitles.append(Subtitle(name=label, url=full_url))
|
|
34
|
+
|
|
21
35
|
return ExtractResult(
|
|
22
36
|
name = self.name,
|
|
23
37
|
url = m3u_link,
|
|
24
38
|
referer = self.main_url,
|
|
25
|
-
subtitles =
|
|
39
|
+
subtitles = subtitles
|
|
26
40
|
)
|
|
41
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
from parsel import Selector
|
|
6
|
+
import re
|
|
7
|
+
|
|
8
|
+
class Filemoon(ExtractorBase):
|
|
9
|
+
name = "Filemoon"
|
|
10
|
+
main_url = "https://filemoon.to"
|
|
11
|
+
|
|
12
|
+
# Filemoon'un farklı domainlerini destekle
|
|
13
|
+
supported_domains = [
|
|
14
|
+
"filemoon.to",
|
|
15
|
+
"filemoon.in",
|
|
16
|
+
"filemoon.sx",
|
|
17
|
+
"filemoon.nl",
|
|
18
|
+
"filemoon.com"
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
def can_handle_url(self, url: str) -> bool:
|
|
22
|
+
return any(domain in url for domain in self.supported_domains)
|
|
23
|
+
|
|
24
|
+
async def extract(self, url: str, referer: str = None) -> ExtractResult:
|
|
25
|
+
headers = {
|
|
26
|
+
"Referer" : url,
|
|
27
|
+
"Sec-Fetch-Dest" : "iframe",
|
|
28
|
+
"Sec-Fetch-Mode" : "navigate",
|
|
29
|
+
"Sec-Fetch-Site" : "cross-site",
|
|
30
|
+
}
|
|
31
|
+
self.httpx.headers.update(headers)
|
|
32
|
+
|
|
33
|
+
# İlk sayfayı al
|
|
34
|
+
istek = await self.httpx.get(url)
|
|
35
|
+
response = istek.text
|
|
36
|
+
secici = Selector(response)
|
|
37
|
+
|
|
38
|
+
# Eğer iframe varsa, iframe'e git
|
|
39
|
+
iframe_src = secici.css("iframe::attr(src)").get()
|
|
40
|
+
if iframe_src:
|
|
41
|
+
iframe_url = self.fix_url(iframe_src)
|
|
42
|
+
self.httpx.headers.update({
|
|
43
|
+
"Accept-Language" : "en-US,en;q=0.5",
|
|
44
|
+
"Sec-Fetch-Dest" : "iframe"
|
|
45
|
+
})
|
|
46
|
+
istek = await self.httpx.get(iframe_url)
|
|
47
|
+
response = istek.text
|
|
48
|
+
|
|
49
|
+
# Packed script'i bul ve unpack et
|
|
50
|
+
m3u8_url = None
|
|
51
|
+
|
|
52
|
+
if Packer.detect_packed(response):
|
|
53
|
+
try:
|
|
54
|
+
unpacked = Packer.unpack(response)
|
|
55
|
+
# sources:[{file:"..." pattern'ını ara
|
|
56
|
+
if match := re.search(r'sources:\s*\[\s*\{\s*file:\s*"([^"]+)"', unpacked):
|
|
57
|
+
m3u8_url = match.group(1)
|
|
58
|
+
elif match := re.search(r'file:\s*"([^"]*?\.m3u8[^"]*)"', unpacked):
|
|
59
|
+
m3u8_url = match.group(1)
|
|
60
|
+
except Exception:
|
|
61
|
+
pass
|
|
62
|
+
|
|
63
|
+
# Fallback: Doğrudan response'ta ara
|
|
64
|
+
if not m3u8_url:
|
|
65
|
+
if match := re.search(r'sources:\s*\[\s*\{\s*file:\s*"([^"]+)"', response):
|
|
66
|
+
m3u8_url = match.group(1)
|
|
67
|
+
elif match := re.search(r'file:\s*"([^"]*?\.m3u8[^"]*)"', response):
|
|
68
|
+
m3u8_url = match.group(1)
|
|
69
|
+
|
|
70
|
+
if not m3u8_url:
|
|
71
|
+
raise ValueError(f"Filemoon: Video URL bulunamadı. {url}")
|
|
72
|
+
|
|
73
|
+
return ExtractResult(
|
|
74
|
+
name = self.name,
|
|
75
|
+
url = self.fix_url(m3u8_url),
|
|
76
|
+
referer = f"{self.main_url}/",
|
|
77
|
+
subtitles = []
|
|
78
|
+
)
|
|
@@ -37,16 +37,15 @@ class MixTiger(ExtractorBase):
|
|
|
37
37
|
if not m3u_link:
|
|
38
38
|
raise ValueError("Video URL not found in response")
|
|
39
39
|
|
|
40
|
-
# Recursive extraction check
|
|
40
|
+
# Recursive extraction check - başka extractor kullanılabilir mi?
|
|
41
41
|
try:
|
|
42
42
|
from KekikStream.Core.Extractor.ExtractorManager import ExtractorManager
|
|
43
|
-
# Import inside method to avoid circular dependency
|
|
44
43
|
manager = ExtractorManager()
|
|
45
44
|
if nested_extractor := manager.find_extractor(m3u_link):
|
|
46
|
-
#
|
|
47
|
-
return await nested_extractor.extract(m3u_link, referer=
|
|
45
|
+
# Nested extractor ile çıkar
|
|
46
|
+
return await nested_extractor.extract(m3u_link, referer=ext_ref)
|
|
48
47
|
except Exception:
|
|
49
|
-
#
|
|
48
|
+
# Recursive extraction başarısız olursa standart sonucu döndür
|
|
50
49
|
pass
|
|
51
50
|
|
|
52
51
|
return ExtractResult(
|
|
@@ -55,3 +54,4 @@ class MixTiger(ExtractorBase):
|
|
|
55
54
|
referer = None if "disk.yandex" in m3u_link else ext_ref,
|
|
56
55
|
subtitles = []
|
|
57
56
|
)
|
|
57
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
|
2
2
|
|
|
3
3
|
from KekikStream.Core import ExtractorBase, ExtractResult, Subtitle
|
|
4
|
-
from Kekik.Sifreleme import Packer, HexCodec
|
|
4
|
+
from Kekik.Sifreleme import Packer, HexCodec, StreamDecoder
|
|
5
5
|
import re, base64
|
|
6
6
|
|
|
7
7
|
class RapidVid(ExtractorBase):
|
|
@@ -39,15 +39,25 @@ class RapidVid(ExtractorBase):
|
|
|
39
39
|
subtitles.append(Subtitle(name=decoded_lang, url=sub_url.replace("\\", "")))
|
|
40
40
|
|
|
41
41
|
try:
|
|
42
|
+
decoded_url = None
|
|
43
|
+
|
|
44
|
+
# Method 1: file": "..." pattern (HexCodec)
|
|
42
45
|
if extracted_value := re.search(r'file": "(.*)",', istek.text):
|
|
43
46
|
escaped_hex = extracted_value[1]
|
|
44
47
|
decoded_url = HexCodec.decode(escaped_hex)
|
|
45
|
-
else:
|
|
46
|
-
av_encoded = re.search(r"av\('([^']+)'\)", istek.text)
|
|
47
|
-
if not av_encoded:
|
|
48
|
-
raise ValueError("AV encoding not found.")
|
|
49
48
|
|
|
49
|
+
# Method 2: av('...') pattern
|
|
50
|
+
elif av_encoded := re.search(r"av\('([^']+)'\)", istek.text):
|
|
50
51
|
decoded_url = self.decode_secret(av_encoded[1])
|
|
52
|
+
|
|
53
|
+
# Method 3: Packed script with dc_* function (StreamDecoder)
|
|
54
|
+
elif Packer.detect_packed(istek.text):
|
|
55
|
+
unpacked = Packer.unpack(istek.text)
|
|
56
|
+
decoded_url = StreamDecoder.extract_stream_url(unpacked)
|
|
57
|
+
|
|
58
|
+
if not decoded_url:
|
|
59
|
+
raise ValueError("No valid video URL pattern found.")
|
|
60
|
+
|
|
51
61
|
except Exception as hata:
|
|
52
62
|
raise RuntimeError(f"Extraction failed: {hata}") from hata
|
|
53
63
|
|
|
@@ -9,6 +9,12 @@ class VidHide(ExtractorBase):
|
|
|
9
9
|
name = "VidHide"
|
|
10
10
|
main_url = "https://vidhidepro.com"
|
|
11
11
|
|
|
12
|
+
# Birden fazla domain destekle
|
|
13
|
+
supported_domains = ["vidhidepro.com", "vidhide.com", "rubyvidhub.com"]
|
|
14
|
+
|
|
15
|
+
def can_handle_url(self, url: str) -> bool:
|
|
16
|
+
return any(domain in url for domain in self.supported_domains)
|
|
17
|
+
|
|
12
18
|
def get_embed_url(self, url: str) -> str:
|
|
13
19
|
if "/d/" in url:
|
|
14
20
|
return url.replace("/d/", "/v/")
|
|
@@ -20,6 +26,9 @@ class VidHide(ExtractorBase):
|
|
|
20
26
|
return url.replace("/f/", "/v/")
|
|
21
27
|
|
|
22
28
|
async def extract(self, url: str, referer: str = None) -> ExtractResult:
|
|
29
|
+
# Dinamik base URL kullan
|
|
30
|
+
base_url = self.get_base_url(url)
|
|
31
|
+
|
|
23
32
|
if referer:
|
|
24
33
|
self.httpx.headers.update({"Referer": referer})
|
|
25
34
|
|
|
@@ -27,7 +36,7 @@ class VidHide(ExtractorBase):
|
|
|
27
36
|
"Sec-Fetch-Dest" : "empty",
|
|
28
37
|
"Sec-Fetch-Mode" : "cors",
|
|
29
38
|
"Sec-Fetch-Site" : "cross-site",
|
|
30
|
-
"Origin" :
|
|
39
|
+
"Origin" : base_url,
|
|
31
40
|
})
|
|
32
41
|
|
|
33
42
|
embed_url = self.get_embed_url(url)
|
|
@@ -66,7 +75,7 @@ class VidHide(ExtractorBase):
|
|
|
66
75
|
return ExtractResult(
|
|
67
76
|
name = self.name,
|
|
68
77
|
url = self.fix_url(m3u8_url),
|
|
69
|
-
referer = f"{
|
|
78
|
+
referer = f"{base_url}/",
|
|
70
79
|
user_agent = self.httpx.headers.get("User-Agent", ""),
|
|
71
80
|
subtitles = []
|
|
72
81
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
|
2
2
|
|
|
3
|
-
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, SeriesInfo, Episode
|
|
3
|
+
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, SeriesInfo, Episode, ExtractResult
|
|
4
4
|
from parsel import Selector
|
|
5
5
|
import re
|
|
6
6
|
|
|
@@ -164,7 +164,7 @@ class BelgeselX(PluginBase):
|
|
|
164
164
|
episodes = episodes
|
|
165
165
|
)
|
|
166
166
|
|
|
167
|
-
async def load_links(self, url: str) -> list[
|
|
167
|
+
async def load_links(self, url: str) -> list[ExtractResult]:
|
|
168
168
|
istek = await self.httpx.get(url)
|
|
169
169
|
text = istek.text
|
|
170
170
|
|
|
@@ -187,10 +187,10 @@ class BelgeselX(PluginBase):
|
|
|
187
187
|
source_name = "Google" if quality == "FULL" else self.name
|
|
188
188
|
quality_str = "1080p" if quality == "FULL" else quality
|
|
189
189
|
|
|
190
|
-
links.append(
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
190
|
+
links.append(ExtractResult(
|
|
191
|
+
url = video_url,
|
|
192
|
+
name = f"{source_name} | {quality_str}",
|
|
193
|
+
referer = url
|
|
194
|
+
))
|
|
195
195
|
|
|
196
196
|
return links
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
|
2
2
|
|
|
3
|
-
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, SeriesInfo, Episode
|
|
3
|
+
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, SeriesInfo, Episode, ExtractResult
|
|
4
4
|
from Kekik.Sifreleme import CryptoJS
|
|
5
5
|
from parsel import Selector
|
|
6
6
|
import re, urllib.parse, base64, contextlib, asyncio, time
|
|
@@ -174,7 +174,7 @@ class DiziBox(PluginBase):
|
|
|
174
174
|
|
|
175
175
|
return results
|
|
176
176
|
|
|
177
|
-
async def load_links(self, url: str) -> list[
|
|
177
|
+
async def load_links(self, url: str) -> list[ExtractResult]:
|
|
178
178
|
istek = await self.httpx.get(url)
|
|
179
179
|
secici = Selector(istek.text)
|
|
180
180
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
|
2
2
|
|
|
3
|
-
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, MovieInfo, SeriesInfo, Episode, Subtitle
|
|
3
|
+
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, MovieInfo, SeriesInfo, Episode, Subtitle, ExtractResult
|
|
4
4
|
from parsel import Selector
|
|
5
5
|
import re
|
|
6
6
|
|
|
@@ -177,7 +177,7 @@ class DiziPal(PluginBase):
|
|
|
177
177
|
duration = duration,
|
|
178
178
|
)
|
|
179
179
|
|
|
180
|
-
async def load_links(self, url: str) -> list[
|
|
180
|
+
async def load_links(self, url: str) -> list[ExtractResult]:
|
|
181
181
|
# Reset headers to get HTML response
|
|
182
182
|
self.httpx.headers.update({
|
|
183
183
|
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
|
|
@@ -220,12 +220,12 @@ class DiziPal(PluginBase):
|
|
|
220
220
|
sub_url = sub_text.replace(f"[{lang}]", "")
|
|
221
221
|
subtitles.append(Subtitle(name=lang, url=self.fix_url(sub_url)))
|
|
222
222
|
|
|
223
|
-
results.append(
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
223
|
+
results.append(ExtractResult(
|
|
224
|
+
name = self.name,
|
|
225
|
+
url = m3u_link,
|
|
226
|
+
referer = f"{self.main_url}/",
|
|
227
|
+
subtitles = subtitles
|
|
228
|
+
))
|
|
229
229
|
else:
|
|
230
230
|
# Extractor'a yönlendir
|
|
231
231
|
data = await self.extract(iframe)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
|
2
2
|
|
|
3
|
-
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, SeriesInfo, Episode, Subtitle
|
|
3
|
+
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, SeriesInfo, Episode, Subtitle, ExtractResult
|
|
4
4
|
from parsel import Selector
|
|
5
5
|
import re
|
|
6
6
|
|
|
@@ -123,7 +123,7 @@ class DiziYou(PluginBase):
|
|
|
123
123
|
actors = actors
|
|
124
124
|
)
|
|
125
125
|
|
|
126
|
-
async def load_links(self, url: str) -> list[
|
|
126
|
+
async def load_links(self, url: str) -> list[ExtractResult]:
|
|
127
127
|
istek = await self.httpx.get(url)
|
|
128
128
|
secici = Selector(istek.text)
|
|
129
129
|
|
|
@@ -179,11 +179,11 @@ class DiziYou(PluginBase):
|
|
|
179
179
|
|
|
180
180
|
results = []
|
|
181
181
|
for stream in stream_urls:
|
|
182
|
-
results.append(
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
182
|
+
results.append(ExtractResult(
|
|
183
|
+
url = stream.get("url"),
|
|
184
|
+
name = f"{stream.get('dil')}",
|
|
185
|
+
referer = url,
|
|
186
|
+
subtitles = subtitles
|
|
187
|
+
))
|
|
188
188
|
|
|
189
189
|
return results
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
|
2
2
|
|
|
3
|
-
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, SeriesInfo, Episode
|
|
3
|
+
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, SeriesInfo, Episode, ExtractResult
|
|
4
4
|
from parsel import Selector
|
|
5
5
|
from json import loads
|
|
6
6
|
from urllib.parse import urlparse, urlunparse
|
|
@@ -170,7 +170,7 @@ class Dizilla(PluginBase):
|
|
|
170
170
|
actors = actors
|
|
171
171
|
)
|
|
172
172
|
|
|
173
|
-
async def load_links(self, url: str) -> list[
|
|
173
|
+
async def load_links(self, url: str) -> list[ExtractResult]:
|
|
174
174
|
istek = await self.httpx.get(url)
|
|
175
175
|
secici = Selector(istek.text)
|
|
176
176
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
|
2
2
|
|
|
3
|
-
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, MovieInfo
|
|
3
|
+
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, MovieInfo, ExtractResult
|
|
4
4
|
from parsel import Selector
|
|
5
5
|
|
|
6
6
|
class FilmBip(PluginBase):
|
|
@@ -125,7 +125,7 @@ class FilmBip(PluginBase):
|
|
|
125
125
|
actors = actors,
|
|
126
126
|
)
|
|
127
127
|
|
|
128
|
-
async def load_links(self, url: str) -> list[
|
|
128
|
+
async def load_links(self, url: str) -> list[ExtractResult]:
|
|
129
129
|
istek = await self.httpx.get(url)
|
|
130
130
|
secici = Selector(istek.text)
|
|
131
131
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
|
2
2
|
|
|
3
|
-
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, MovieInfo
|
|
3
|
+
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, MovieInfo, ExtractResult
|
|
4
4
|
from parsel import Selector
|
|
5
5
|
|
|
6
6
|
class FilmMakinesi(PluginBase):
|
|
@@ -75,18 +75,22 @@ class FilmMakinesi(PluginBase):
|
|
|
75
75
|
istek = await self.httpx.get(url)
|
|
76
76
|
secici = Selector(istek.text)
|
|
77
77
|
|
|
78
|
-
title = secici.css("h1.title::text").get()
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
title = secici.css("h1.title::text").get()
|
|
79
|
+
title = title.strip() if title else ""
|
|
80
|
+
poster = secici.css("img.cover-img::attr(src)").get()
|
|
81
|
+
poster = poster.strip() if poster else ""
|
|
82
|
+
description = secici.css("div.info-description p::text").get()
|
|
83
|
+
description = description.strip() if description else ""
|
|
81
84
|
rating = secici.css("div.score::text").get()
|
|
82
85
|
if rating:
|
|
83
86
|
rating = rating.strip().split()[0]
|
|
84
|
-
year = secici.css("span.date a::text").get()
|
|
87
|
+
year = secici.css("span.date a::text").get()
|
|
88
|
+
year = year.strip() if year else ""
|
|
85
89
|
actors = secici.css("div.cast-name::text").getall()
|
|
86
90
|
tags = secici.css("div.genre a::text").getall()
|
|
87
91
|
duration = secici.css("div.time::text").get()
|
|
88
92
|
if duration:
|
|
89
|
-
duration = duration.split()[1].strip()
|
|
93
|
+
duration = duration.split()[1].strip() if len(duration.split()) > 1 else ""
|
|
90
94
|
|
|
91
95
|
return MovieInfo(
|
|
92
96
|
url = url,
|
|
@@ -100,20 +104,28 @@ class FilmMakinesi(PluginBase):
|
|
|
100
104
|
duration = duration
|
|
101
105
|
)
|
|
102
106
|
|
|
103
|
-
async def load_links(self, url: str) -> list[
|
|
107
|
+
async def load_links(self, url: str) -> list[ExtractResult]:
|
|
104
108
|
istek = await self.httpx.get(url)
|
|
105
109
|
secici = Selector(istek.text)
|
|
106
110
|
|
|
107
|
-
|
|
111
|
+
response = []
|
|
108
112
|
|
|
109
|
-
|
|
113
|
+
# Video parts linklerini ve etiketlerini al
|
|
110
114
|
for link in secici.css("div.video-parts a[data-video_url]"):
|
|
111
|
-
|
|
115
|
+
video_url = link.attrib.get("data-video_url")
|
|
116
|
+
label = link.css("::text").get() or ""
|
|
117
|
+
label = label.strip()
|
|
112
118
|
|
|
113
|
-
|
|
114
|
-
for link in all_links:
|
|
115
|
-
data = await self.extract(link)
|
|
119
|
+
data = await self.extract(video_url, prefix=label.split()[0] if label else None)
|
|
116
120
|
if data:
|
|
117
121
|
response.append(data)
|
|
118
122
|
|
|
119
|
-
|
|
123
|
+
# Eğer video-parts yoksa iframe kullan
|
|
124
|
+
if not response:
|
|
125
|
+
iframe_src = secici.css("iframe::attr(data-src)").get()
|
|
126
|
+
if iframe_src:
|
|
127
|
+
data = await self.extract(iframe_src)
|
|
128
|
+
if data:
|
|
129
|
+
response.append(data)
|
|
130
|
+
|
|
131
|
+
return response
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
|
2
2
|
|
|
3
|
-
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, MovieInfo, Subtitle
|
|
3
|
+
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, MovieInfo, Subtitle, ExtractResult
|
|
4
4
|
from parsel import Selector
|
|
5
5
|
import re
|
|
6
6
|
|
|
@@ -87,7 +87,7 @@ class FilmModu(PluginBase):
|
|
|
87
87
|
actors = [a.css("span::text").get() for a in secici.css("a[itemprop='actor']")],
|
|
88
88
|
)
|
|
89
89
|
|
|
90
|
-
async def load_links(self, url: str) -> list[
|
|
90
|
+
async def load_links(self, url: str) -> list[ExtractResult]:
|
|
91
91
|
istek = await self.httpx.get(url)
|
|
92
92
|
secici = Selector(istek.text)
|
|
93
93
|
|
|
@@ -124,11 +124,11 @@ class FilmModu(PluginBase):
|
|
|
124
124
|
subtitle_url = None
|
|
125
125
|
|
|
126
126
|
for source in source_data.get("sources", []):
|
|
127
|
-
results.append(
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
127
|
+
results.append(ExtractResult(
|
|
128
|
+
name = f"{self.name} | {alt_name} | {source.get('label', 'Bilinmiyor')}",
|
|
129
|
+
url = self.fix_url(source["src"]),
|
|
130
|
+
referer = f"{self.main_url}/",
|
|
131
|
+
subtitles = [Subtitle(name="Türkçe", url=subtitle_url)] if subtitle_url else []
|
|
132
|
+
))
|
|
133
133
|
|
|
134
134
|
return results
|