KekikStream 2.1.0__tar.gz → 2.1.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.
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Core/Plugin/PluginBase.py +20 -21
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/CloseLoad.py +17 -2
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/MixTiger.py +5 -5
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/BelgeselX.py +7 -7
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/DiziBox.py +2 -2
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/DiziPal.py +8 -8
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/DiziYou.py +8 -8
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/Dizilla.py +2 -2
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/FilmBip.py +2 -2
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/FilmMakinesi.py +26 -14
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/FilmModu.py +8 -8
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/FullHDFilm.py +81 -22
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/FullHDFilmizlesene.py +2 -2
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/HDFilmCehennemi.py +83 -72
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/JetFilmizle.py +2 -2
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/KultFilmler.py +10 -9
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/RecTV.py +15 -15
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/RoketDizi.py +2 -2
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/SelcukFlix.py +68 -44
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/SetFilmIzle.py +21 -21
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/SezonlukDizi.py +2 -2
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/SineWix.py +13 -13
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/Sinefy.py +6 -6
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/SinemaCX.py +31 -22
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/Sinezy.py +2 -2
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/SuperFilmGeldi.py +30 -19
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Plugins/UgurFilm.py +2 -2
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/__init__.py +15 -15
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream.egg-info/PKG-INFO +5 -3
- {kekikstream-2.1.0 → kekikstream-2.1.7}/PKG-INFO +5 -3
- {kekikstream-2.1.0 → kekikstream-2.1.7}/README.md +4 -2
- {kekikstream-2.1.0 → kekikstream-2.1.7}/setup.py +1 -1
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/CLI/__init__.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/CLI/pypi_kontrol.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Core/Extractor/ExtractorBase.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Core/Extractor/ExtractorLoader.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Core/Extractor/ExtractorManager.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Core/Extractor/ExtractorModels.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Core/Extractor/YTDLPCache.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Core/Media/MediaHandler.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Core/Media/MediaManager.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Core/Plugin/PluginLoader.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Core/Plugin/PluginManager.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Core/Plugin/PluginModels.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Core/UI/UIManager.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Core/__init__.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/ContentX.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/DonilasPlay.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/DzenRu.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/ExPlay.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/HDPlayerSystem.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/JetTv.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/MailRu.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/MixPlayHD.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/MolyStream.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/Odnoklassniki.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/PeaceMakerst.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/PixelDrain.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/PlayerFilmIzle.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/RapidVid.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/SetPlay.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/SetPrime.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/SibNet.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/Sobreatsesuyp.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/TRsTX.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/TauVideo.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/TurboImgz.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/TurkeyPlayer.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/VCTPlay.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/VidHide.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/VidMoly.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/VidMoxy.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/VidPapi.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/VideoSeyred.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/YTDLP.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/Extractors/YildizKisaFilm.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/__main__.py +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream/requirements.txt +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream.egg-info/SOURCES.txt +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream.egg-info/dependency_links.txt +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream.egg-info/entry_points.txt +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream.egg-info/requires.txt +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/KekikStream.egg-info/top_level.txt +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/LICENSE +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/MANIFEST.in +0 -0
- {kekikstream-2.1.0 → kekikstream-2.1.7}/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
|
+
|
|
@@ -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,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
|
|
@@ -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, ExtractResult, Subtitle
|
|
3
|
+
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, MovieInfo, SeriesInfo, Episode, ExtractResult, Subtitle
|
|
4
4
|
from parsel import Selector
|
|
5
5
|
import re, base64
|
|
6
6
|
|
|
@@ -14,23 +14,29 @@ class FullHDFilm(PluginBase):
|
|
|
14
14
|
main_page = {
|
|
15
15
|
f"{main_url}/tur/turkce-altyazili-film-izle" : "Altyazılı Filmler",
|
|
16
16
|
f"{main_url}/tur/netflix-filmleri-izle" : "Netflix",
|
|
17
|
+
f"{main_url}/tur/yerli-film-izle" : "Yerli Film",
|
|
17
18
|
f"{main_url}/category/aile-filmleri-izle" : "Aile",
|
|
18
19
|
f"{main_url}/category/aksiyon-filmleri-izle" : "Aksiyon",
|
|
19
20
|
f"{main_url}/category/animasyon-filmleri-izle" : "Animasyon",
|
|
20
21
|
f"{main_url}/category/belgesel-filmleri-izle" : "Belgesel",
|
|
21
|
-
f"{main_url}/category/bilim-kurgu-filmleri-izle" : "Bilim
|
|
22
|
+
f"{main_url}/category/bilim-kurgu-filmleri-izle" : "Bilim Kurgu",
|
|
22
23
|
f"{main_url}/category/biyografi-filmleri-izle" : "Biyografi",
|
|
23
24
|
f"{main_url}/category/dram-filmleri-izle" : "Dram",
|
|
24
25
|
f"{main_url}/category/fantastik-filmler-izle" : "Fantastik",
|
|
25
26
|
f"{main_url}/category/gerilim-filmleri-izle" : "Gerilim",
|
|
26
27
|
f"{main_url}/category/gizem-filmleri-izle" : "Gizem",
|
|
28
|
+
f"{main_url}/category/kisa" : "Kısa",
|
|
27
29
|
f"{main_url}/category/komedi-filmleri-izle" : "Komedi",
|
|
28
30
|
f"{main_url}/category/korku-filmleri-izle" : "Korku",
|
|
29
31
|
f"{main_url}/category/macera-filmleri-izle" : "Macera",
|
|
32
|
+
f"{main_url}/category/muzik" : "Müzik",
|
|
33
|
+
f"{main_url}/category/muzikal-filmleri-izle" : "Müzikal",
|
|
30
34
|
f"{main_url}/category/romantik-filmler-izle" : "Romantik",
|
|
31
35
|
f"{main_url}/category/savas-filmleri-izle" : "Savaş",
|
|
36
|
+
f"{main_url}/category/spor-filmleri-izle" : "Spor",
|
|
32
37
|
f"{main_url}/category/suc-filmleri-izle" : "Suç",
|
|
33
|
-
f"{main_url}/
|
|
38
|
+
f"{main_url}/category/tarih-filmleri-izle" : "Tarih",
|
|
39
|
+
f"{main_url}/category/western-filmleri-izle" : "Western",
|
|
34
40
|
}
|
|
35
41
|
|
|
36
42
|
async def get_main_page(self, page: int, url: str, category: str) -> list[MainPageResult]:
|
|
@@ -69,14 +75,13 @@ class FullHDFilm(PluginBase):
|
|
|
69
75
|
if veri.css("img::attr(alt)").get()
|
|
70
76
|
]
|
|
71
77
|
|
|
72
|
-
async def load_item(self, url: str) -> MovieInfo:
|
|
78
|
+
async def load_item(self, url: str) -> MovieInfo | SeriesInfo:
|
|
73
79
|
istek = await self.httpx.get(url)
|
|
74
80
|
secici = Selector(istek.text)
|
|
75
81
|
|
|
76
|
-
title = secici.css("h1::text").get()
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
secici.css("div#details div::text").get()
|
|
82
|
+
title = secici.css("h1::text").get() or ""
|
|
83
|
+
title = title.strip() if title else ""
|
|
84
|
+
poster = self.fix_url(secici.css("div.poster img::attr(src)").get() or "")
|
|
80
85
|
|
|
81
86
|
actors_text = secici.css("div.oyuncular.info::text").get()
|
|
82
87
|
if actors_text:
|
|
@@ -89,20 +94,72 @@ class FullHDFilm(PluginBase):
|
|
|
89
94
|
tags = secici.css("div.tur.info a::text").getall()
|
|
90
95
|
rating = secici.css("div.imdb::text").re_first(r"IMDb\s*([\d\.]+)")
|
|
91
96
|
|
|
92
|
-
#
|
|
97
|
+
# Description
|
|
93
98
|
description = secici.xpath("//div[contains(@class, 'others')]/preceding-sibling::div[1]//text()").getall()
|
|
94
99
|
description = "".join(description).strip() if description else None
|
|
95
100
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
# Kotlin referansı: URL'de -dizi kontrolü veya tags içinde "dizi" kontrolü
|
|
102
|
+
is_series = "-dizi" in url.lower() or any("dizi" in tag.lower() for tag in tags)
|
|
103
|
+
|
|
104
|
+
if is_series:
|
|
105
|
+
episodes = []
|
|
106
|
+
part_elements = secici.css("li.psec")
|
|
107
|
+
part_names = secici.css("li.psec a::text").getall()
|
|
108
|
+
|
|
109
|
+
# pdata değerlerini çıkar
|
|
110
|
+
pdata_matches = re.findall(r"pdata\['([^']+)'\]\s*=\s*'([^']+)'", istek.text)
|
|
111
|
+
|
|
112
|
+
for idx, (part_id, part_name) in enumerate(zip([el.css("::attr(id)").get() for el in part_elements], part_names)):
|
|
113
|
+
if not part_name:
|
|
114
|
+
continue
|
|
115
|
+
|
|
116
|
+
part_name = part_name.strip()
|
|
117
|
+
|
|
118
|
+
# Fragman'ları atla
|
|
119
|
+
if "fragman" in part_name.lower() or (part_id and "fragman" in part_id.lower()):
|
|
120
|
+
continue
|
|
121
|
+
|
|
122
|
+
# Sezon ve bölüm numarası çıkar
|
|
123
|
+
sz_match = re.search(r'(\d+)\s*sezon', part_id.lower() if part_id else "")
|
|
124
|
+
ep_match = re.search(r'^(\d+)\.', part_name)
|
|
125
|
+
|
|
126
|
+
sz_num = int(sz_match.group(1)) if sz_match else 1
|
|
127
|
+
ep_num = int(ep_match.group(1)) if ep_match else idx + 1
|
|
128
|
+
|
|
129
|
+
# pdata'dan video URL'si çık (varsa)
|
|
130
|
+
video_url = url # Varsayılan olarak ana URL kullan
|
|
131
|
+
if idx < len(pdata_matches):
|
|
132
|
+
video_url = pdata_matches[idx][1] if pdata_matches[idx][1] else url
|
|
133
|
+
|
|
134
|
+
episodes.append(Episode(
|
|
135
|
+
season = sz_num,
|
|
136
|
+
episode = ep_num,
|
|
137
|
+
title = f"{sz_num}. Sezon {ep_num}. Bölüm",
|
|
138
|
+
url = url # Bölüm URL'leri load_links'te işlenecek
|
|
139
|
+
))
|
|
140
|
+
|
|
141
|
+
return SeriesInfo(
|
|
142
|
+
url = url,
|
|
143
|
+
poster = poster,
|
|
144
|
+
title = self.clean_title(title) if title else "",
|
|
145
|
+
description = description,
|
|
146
|
+
tags = tags,
|
|
147
|
+
year = year,
|
|
148
|
+
actors = actors,
|
|
149
|
+
rating = rating.strip() if rating else None,
|
|
150
|
+
episodes = episodes
|
|
151
|
+
)
|
|
152
|
+
else:
|
|
153
|
+
return MovieInfo(
|
|
154
|
+
url = url,
|
|
155
|
+
poster = poster,
|
|
156
|
+
title = self.clean_title(title) if title else "",
|
|
157
|
+
description = description,
|
|
158
|
+
tags = tags,
|
|
159
|
+
year = year,
|
|
160
|
+
actors = actors,
|
|
161
|
+
rating = rating.strip() if rating else None,
|
|
162
|
+
)
|
|
106
163
|
|
|
107
164
|
def _get_iframe(self, source_code: str) -> str:
|
|
108
165
|
"""Base64 kodlu iframe'i çözümle"""
|
|
@@ -131,7 +188,7 @@ class FullHDFilm(PluginBase):
|
|
|
131
188
|
|
|
132
189
|
return None
|
|
133
190
|
|
|
134
|
-
async def load_links(self, url: str) -> list[
|
|
191
|
+
async def load_links(self, url: str) -> list[ExtractResult]:
|
|
135
192
|
self.httpx.headers.update({
|
|
136
193
|
"User-Agent" : "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
|
|
137
194
|
"Referer" : self.main_url
|
|
@@ -155,7 +212,9 @@ class FullHDFilm(PluginBase):
|
|
|
155
212
|
if iframe_src:
|
|
156
213
|
data = await self.extract(iframe_src)
|
|
157
214
|
if data:
|
|
158
|
-
|
|
159
|
-
|
|
215
|
+
# ExtractResult objesi immutable, yeni bir kopya oluştur
|
|
216
|
+
subtitles = [Subtitle(name="Türkçe", url=subtitle_url)] if subtitle_url else []
|
|
217
|
+
updated_data = data.model_copy(update={"subtitles": subtitles}) if subtitles else data
|
|
218
|
+
results.append(updated_data)
|
|
160
219
|
|
|
161
220
|
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, MovieInfo
|
|
3
|
+
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, MovieInfo, ExtractResult
|
|
4
4
|
from parsel import Selector
|
|
5
5
|
from Kekik.Sifreleme import StringCodec
|
|
6
6
|
import json, re
|
|
@@ -100,7 +100,7 @@ class FullHDFilmizlesene(PluginBase):
|
|
|
100
100
|
duration = duration
|
|
101
101
|
)
|
|
102
102
|
|
|
103
|
-
async def load_links(self, url: str) -> list[
|
|
103
|
+
async def load_links(self, url: str) -> list[ExtractResult]:
|
|
104
104
|
istek = await self.httpx.get(url)
|
|
105
105
|
secici = Selector(istek.text)
|
|
106
106
|
|