KekikStream 2.0.3__py3-none-any.whl → 2.0.8__py3-none-any.whl
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/Extractors/ContentX.py +13 -0
- KekikStream/Extractors/DonilasPlay.py +86 -0
- KekikStream/Extractors/Odnoklassniki.py +6 -0
- KekikStream/Extractors/PeaceMakerst.py +6 -0
- KekikStream/Extractors/RapidVid.py +6 -0
- KekikStream/Extractors/SetPlay.py +7 -1
- KekikStream/Extractors/VCTPlay.py +41 -0
- KekikStream/Extractors/VidMoly.py +52 -30
- KekikStream/Extractors/YTDLP.py +87 -53
- KekikStream/Plugins/BelgeselX.py +204 -0
- KekikStream/Plugins/Dizilla.py +22 -14
- KekikStream/Plugins/FilmMakinesi.py +1 -1
- KekikStream/Plugins/FilmModu.py +6 -2
- KekikStream/Plugins/FullHDFilmizlesene.py +1 -1
- KekikStream/Plugins/HDFilmCehennemi.py +83 -8
- KekikStream/Plugins/JetFilmizle.py +1 -1
- KekikStream/Plugins/KultFilmler.py +1 -1
- KekikStream/Plugins/RoketDizi.py +17 -24
- KekikStream/Plugins/SelcukFlix.py +51 -52
- KekikStream/Plugins/SetFilmIzle.py +259 -0
- KekikStream/Plugins/SezonlukDizi.py +28 -7
- KekikStream/Plugins/Sinefy.py +11 -8
- KekikStream/Plugins/SinemaCX.py +3 -7
- KekikStream/Plugins/SuperFilmGeldi.py +1 -1
- KekikStream/Plugins/UgurFilm.py +1 -1
- {kekikstream-2.0.3.dist-info → kekikstream-2.0.8.dist-info}/METADATA +1 -1
- {kekikstream-2.0.3.dist-info → kekikstream-2.0.8.dist-info}/RECORD +31 -32
- KekikStream/Extractors/ContentX_.py +0 -40
- KekikStream/Extractors/Odnoklassniki_.py +0 -11
- KekikStream/Extractors/PeaceMakerst_.py +0 -7
- KekikStream/Extractors/RapidVid_.py +0 -7
- KekikStream/Extractors/VidMoly_.py +0 -7
- {kekikstream-2.0.3.dist-info → kekikstream-2.0.8.dist-info}/WHEEL +0 -0
- {kekikstream-2.0.3.dist-info → kekikstream-2.0.8.dist-info}/entry_points.txt +0 -0
- {kekikstream-2.0.3.dist-info → kekikstream-2.0.8.dist-info}/licenses/LICENSE +0 -0
- {kekikstream-2.0.3.dist-info → kekikstream-2.0.8.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
|
2
|
+
|
|
3
|
+
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, SeriesInfo, Episode
|
|
4
|
+
from parsel import Selector
|
|
5
|
+
import re
|
|
6
|
+
|
|
7
|
+
class BelgeselX(PluginBase):
|
|
8
|
+
name = "BelgeselX"
|
|
9
|
+
language = "tr"
|
|
10
|
+
main_url = "https://belgeselx.com"
|
|
11
|
+
favicon = f"https://www.google.com/s2/favicons?domain={main_url}&sz=64"
|
|
12
|
+
description = "2022 yılında son çıkan belgeselleri belgeselx.com'da izle. En yeni belgeseller, türkçe altyazılı yada dublaj olarak 1080p kalitesinde hd belgesel izle."
|
|
13
|
+
|
|
14
|
+
main_page = {
|
|
15
|
+
f"{main_url}/konu/turk-tarihi-belgeselleri&page=" : "Türk Tarihi",
|
|
16
|
+
f"{main_url}/konu/tarih-belgeselleri&page=" : "Tarih",
|
|
17
|
+
f"{main_url}/konu/seyehat-belgeselleri&page=" : "Seyahat",
|
|
18
|
+
f"{main_url}/konu/seri-belgeseller&page=" : "Seri",
|
|
19
|
+
f"{main_url}/konu/savas-belgeselleri&page=" : "Savaş",
|
|
20
|
+
f"{main_url}/konu/sanat-belgeselleri&page=" : "Sanat",
|
|
21
|
+
f"{main_url}/konu/psikoloji-belgeselleri&page=" : "Psikoloji",
|
|
22
|
+
f"{main_url}/konu/polisiye-belgeselleri&page=" : "Polisiye",
|
|
23
|
+
f"{main_url}/konu/otomobil-belgeselleri&page=" : "Otomobil",
|
|
24
|
+
f"{main_url}/konu/nazi-belgeselleri&page=" : "Nazi",
|
|
25
|
+
f"{main_url}/konu/muhendislik-belgeselleri&page=" : "Mühendislik",
|
|
26
|
+
f"{main_url}/konu/kultur-din-belgeselleri&page=" : "Kültür Din",
|
|
27
|
+
f"{main_url}/konu/kozmik-belgeseller&page=" : "Kozmik",
|
|
28
|
+
f"{main_url}/konu/hayvan-belgeselleri&page=" : "Hayvan",
|
|
29
|
+
f"{main_url}/konu/eski-tarih-belgeselleri&page=" : "Eski Tarih",
|
|
30
|
+
f"{main_url}/konu/egitim-belgeselleri&page=" : "Eğitim",
|
|
31
|
+
f"{main_url}/konu/dunya-belgeselleri&page=" : "Dünya",
|
|
32
|
+
f"{main_url}/konu/doga-belgeselleri&page=" : "Doğa",
|
|
33
|
+
f"{main_url}/konu/bilim-belgeselleri&page=" : "Bilim"
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@staticmethod
|
|
37
|
+
def _to_title_case(text: str) -> str:
|
|
38
|
+
"""Türkçe için title case dönüşümü."""
|
|
39
|
+
return " ".join(
|
|
40
|
+
word.lower().replace("i", "İ").capitalize() if word.lower().startswith("i") else word.capitalize()
|
|
41
|
+
for word in text.split()
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
async def get_main_page(self, page: int, url: str, category: str) -> list[MainPageResult]:
|
|
45
|
+
istek = self.cloudscraper.get(f"{url}{page}")
|
|
46
|
+
secici = Selector(istek.text)
|
|
47
|
+
|
|
48
|
+
results = []
|
|
49
|
+
for item in secici.css("div.gen-movie-contain > div.gen-info-contain > div.gen-movie-info"):
|
|
50
|
+
title = item.css("div.gen-movie-info > h3 a::text").get()
|
|
51
|
+
href = item.css("div.gen-movie-info > h3 a::attr(href)").get()
|
|
52
|
+
parent = item.xpath("../../..")
|
|
53
|
+
poster = parent.css("div.gen-movie-img > img::attr(src)").get()
|
|
54
|
+
|
|
55
|
+
if title and href:
|
|
56
|
+
results.append(MainPageResult(
|
|
57
|
+
category = category,
|
|
58
|
+
title = self._to_title_case(title.strip()),
|
|
59
|
+
url = self.fix_url(href),
|
|
60
|
+
poster = self.fix_url(poster) if poster else None
|
|
61
|
+
))
|
|
62
|
+
|
|
63
|
+
return results
|
|
64
|
+
|
|
65
|
+
async def search(self, query: str) -> list[SearchResult]:
|
|
66
|
+
# Google Custom Search API kullanıyor
|
|
67
|
+
cx = "016376594590146270301:iwmy65ijgrm"
|
|
68
|
+
|
|
69
|
+
token_resp = self.cloudscraper.get(f"https://cse.google.com/cse.js?cx={cx}")
|
|
70
|
+
token_text = token_resp.text
|
|
71
|
+
|
|
72
|
+
cse_lib_match = re.search(r'cselibVersion": "(.*)"', token_text)
|
|
73
|
+
cse_tok_match = re.search(r'cse_token": "(.*)"', token_text)
|
|
74
|
+
|
|
75
|
+
if not cse_lib_match or not cse_tok_match:
|
|
76
|
+
return []
|
|
77
|
+
|
|
78
|
+
cse_lib = cse_lib_match.group(1)
|
|
79
|
+
cse_tok = cse_tok_match.group(1)
|
|
80
|
+
|
|
81
|
+
search_url = (
|
|
82
|
+
f"https://cse.google.com/cse/element/v1?"
|
|
83
|
+
f"rsz=filtered_cse&num=100&hl=tr&source=gcsc&cselibv={cse_lib}&cx={cx}"
|
|
84
|
+
f"&q={query}&safe=off&cse_tok={cse_tok}&sort=&exp=cc%2Capo&oq={query}"
|
|
85
|
+
f"&callback=google.search.cse.api9969&rurl=https%3A%2F%2Fbelgeselx.com%2F"
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
resp = self.cloudscraper.get(search_url)
|
|
89
|
+
resp_text = resp.text
|
|
90
|
+
|
|
91
|
+
titles = re.findall(r'"titleNoFormatting": "(.*?)"', resp_text)
|
|
92
|
+
urls = re.findall(r'"url": "(.*?)"', resp_text)
|
|
93
|
+
images = re.findall(r'"ogImage": "(.*?)"', resp_text)
|
|
94
|
+
|
|
95
|
+
results = []
|
|
96
|
+
for i, title in enumerate(titles):
|
|
97
|
+
url_val = urls[i] if i < len(urls) else None
|
|
98
|
+
poster = images[i] if i < len(images) else None
|
|
99
|
+
|
|
100
|
+
if not url_val or "diziresimleri" not in url_val:
|
|
101
|
+
# URL'den belgesel linkini oluştur
|
|
102
|
+
if poster and "diziresimleri" in poster:
|
|
103
|
+
file_name = poster.rsplit("/", 1)[-1]
|
|
104
|
+
file_name = re.sub(r"\.(jpe?g|png|webp)$", "", file_name)
|
|
105
|
+
url_val = f"{self.main_url}/belgeseldizi/{file_name}"
|
|
106
|
+
else:
|
|
107
|
+
continue
|
|
108
|
+
|
|
109
|
+
clean_title = title.split("İzle")[0].strip()
|
|
110
|
+
results.append(SearchResult(
|
|
111
|
+
title = self._to_title_case(clean_title),
|
|
112
|
+
url = url_val,
|
|
113
|
+
poster = poster
|
|
114
|
+
))
|
|
115
|
+
|
|
116
|
+
return results
|
|
117
|
+
|
|
118
|
+
async def load_item(self, url: str) -> SeriesInfo:
|
|
119
|
+
istek = await self.httpx.get(url)
|
|
120
|
+
secici = Selector(istek.text)
|
|
121
|
+
|
|
122
|
+
title = secici.css("h2.gen-title::text").get()
|
|
123
|
+
poster = secici.css("div.gen-tv-show-top img::attr(src)").get()
|
|
124
|
+
description = secici.css("div.gen-single-tv-show-info p::text").get()
|
|
125
|
+
|
|
126
|
+
tags = []
|
|
127
|
+
for tag_link in secici.css("div.gen-socail-share a[href*='belgeselkanali']"):
|
|
128
|
+
tag_href = tag_link.css("::attr(href)").get()
|
|
129
|
+
if tag_href:
|
|
130
|
+
tag_name = tag_href.rsplit("/", 1)[-1].replace("-", " ")
|
|
131
|
+
tags.append(self._to_title_case(tag_name))
|
|
132
|
+
|
|
133
|
+
episodes = []
|
|
134
|
+
counter = 0
|
|
135
|
+
for ep_item in secici.css("div.gen-movie-contain"):
|
|
136
|
+
ep_name = ep_item.css("div.gen-movie-info h3 a::text").get()
|
|
137
|
+
ep_href = ep_item.css("div.gen-movie-info h3 a::attr(href)").get()
|
|
138
|
+
|
|
139
|
+
if not ep_name or not ep_href:
|
|
140
|
+
continue
|
|
141
|
+
|
|
142
|
+
season_text = ep_item.css("div.gen-single-meta-holder ul li::text").get() or ""
|
|
143
|
+
episode_match = re.search(r"Bölüm (\d+)", season_text)
|
|
144
|
+
season_match = re.search(r"Sezon (\d+)", season_text)
|
|
145
|
+
|
|
146
|
+
ep_episode = int(episode_match.group(1)) if episode_match else counter
|
|
147
|
+
ep_season = int(season_match.group(1)) if season_match else 1
|
|
148
|
+
|
|
149
|
+
counter += 1
|
|
150
|
+
|
|
151
|
+
episodes.append(Episode(
|
|
152
|
+
season = ep_season,
|
|
153
|
+
episode = ep_episode,
|
|
154
|
+
title = ep_name.strip(),
|
|
155
|
+
url = self.fix_url(ep_href)
|
|
156
|
+
))
|
|
157
|
+
|
|
158
|
+
return SeriesInfo(
|
|
159
|
+
url = url,
|
|
160
|
+
poster = self.fix_url(poster) if poster else None,
|
|
161
|
+
title = self._to_title_case(title.strip()) if title else None,
|
|
162
|
+
description = description.strip() if description else None,
|
|
163
|
+
tags = tags,
|
|
164
|
+
episodes = episodes
|
|
165
|
+
)
|
|
166
|
+
|
|
167
|
+
async def load_links(self, url: str) -> list[dict]:
|
|
168
|
+
istek = await self.httpx.get(url)
|
|
169
|
+
text = istek.text
|
|
170
|
+
|
|
171
|
+
# fnc_addWatch div'inden data-episode ID'sini al
|
|
172
|
+
ep_match = re.search(r'<div[^>]*class=["\'][^"\']*fnc_addWatch[^"\']*["\'][^>]*data-episode=["\'](\d+)["\']', text)
|
|
173
|
+
if not ep_match:
|
|
174
|
+
return []
|
|
175
|
+
|
|
176
|
+
episode_id = ep_match.group(1)
|
|
177
|
+
iframe_url = f"{self.main_url}/video/data/new4.php?id={episode_id}"
|
|
178
|
+
|
|
179
|
+
iframe_resp = await self.httpx.get(iframe_url, headers={"Referer": url})
|
|
180
|
+
iframe_text = iframe_resp.text
|
|
181
|
+
|
|
182
|
+
links = []
|
|
183
|
+
for match in re.finditer(r'file:"([^"]+)", label: "([^"]+)"', iframe_text):
|
|
184
|
+
video_url = match.group(1)
|
|
185
|
+
quality = match.group(2)
|
|
186
|
+
|
|
187
|
+
source_name = "Google" if quality == "FULL" else self.name
|
|
188
|
+
quality_str = "1080p" if quality == "FULL" else quality
|
|
189
|
+
|
|
190
|
+
links.append({
|
|
191
|
+
"url" : video_url,
|
|
192
|
+
"name" : f"{source_name} | {quality_str}",
|
|
193
|
+
"referer" : url
|
|
194
|
+
})
|
|
195
|
+
|
|
196
|
+
return links
|
|
197
|
+
|
|
198
|
+
async def play(self, **kwargs):
|
|
199
|
+
extract_result = ExtractResult(**kwargs)
|
|
200
|
+
self.media_handler.title = kwargs.get("name")
|
|
201
|
+
if self.name not in self.media_handler.title:
|
|
202
|
+
self.media_handler.title = f"{self.name} | {self.media_handler.title}"
|
|
203
|
+
|
|
204
|
+
self.media_handler.play_media(extract_result)
|
KekikStream/Plugins/Dizilla.py
CHANGED
|
@@ -179,17 +179,25 @@ class Dizilla(PluginBase):
|
|
|
179
179
|
decrypted = await self.decrypt_response(secure_data)
|
|
180
180
|
results = decrypted.get("RelatedResults", {}).get("getEpisodeSources", {}).get("result", [])
|
|
181
181
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
182
|
+
if not results:
|
|
183
|
+
return []
|
|
184
|
+
|
|
185
|
+
# Get first source (matching Kotlin)
|
|
186
|
+
first_result = results[0]
|
|
187
|
+
source_content = first_result.get("source_content", "")
|
|
188
|
+
|
|
189
|
+
# Clean the source_content string (matching Kotlin: .replace("\"", "").replace("\\", ""))
|
|
190
|
+
cleaned_source = source_content.replace('"', '').replace('\\', '')
|
|
191
|
+
|
|
192
|
+
# Parse cleaned HTML
|
|
193
|
+
iframe_src = Selector(cleaned_source).css("iframe::attr(src)").get()
|
|
194
|
+
iframe_url = self.fix_url(iframe_src)
|
|
195
|
+
|
|
196
|
+
if not iframe_url:
|
|
197
|
+
return []
|
|
198
|
+
|
|
199
|
+
extractor = self.ex_manager.find_extractor(iframe_url)
|
|
200
|
+
return [{
|
|
201
|
+
"url" : iframe_url,
|
|
202
|
+
"name" : f"{extractor.name if extractor else 'Main Player'} | {first_result.get('language_name', 'Unknown')}",
|
|
203
|
+
}]
|
|
@@ -8,7 +8,7 @@ class FilmMakinesi(PluginBase):
|
|
|
8
8
|
language = "tr"
|
|
9
9
|
main_url = "https://filmmakinesi.to"
|
|
10
10
|
favicon = f"https://www.google.com/s2/favicons?domain={main_url}&sz=64"
|
|
11
|
-
description = "Film Makinesi
|
|
11
|
+
description = "Film Makinesi ile en yeni ve güncel filmleri Full HD kalite farkı ile izleyebilirsiniz. Film izle denildiğinde akla gelen en kaliteli film sitesi."
|
|
12
12
|
|
|
13
13
|
main_page = {
|
|
14
14
|
f"{main_url}/filmler-1/" : "Son Filmler",
|
KekikStream/Plugins/FilmModu.py
CHANGED
|
@@ -9,7 +9,7 @@ class FilmModu(PluginBase):
|
|
|
9
9
|
language = "tr"
|
|
10
10
|
main_url = "https://www.filmmodu.ws"
|
|
11
11
|
favicon = f"https://www.google.com/s2/favicons?domain={main_url}&sz=64"
|
|
12
|
-
description = "
|
|
12
|
+
description = "Film modun geldiyse yüksek kalitede yeni filmleri izle, 1080p izleyebileceğiniz reklamsız tek film sitesi."
|
|
13
13
|
|
|
14
14
|
main_page = {
|
|
15
15
|
f"{main_url}/hd-film-kategori/4k-film-izle?page=SAYFA" : "4K",
|
|
@@ -91,9 +91,13 @@ class FilmModu(PluginBase):
|
|
|
91
91
|
istek = await self.httpx.get(url)
|
|
92
92
|
secici = Selector(istek.text)
|
|
93
93
|
|
|
94
|
+
alternates = secici.css("div.alternates a")
|
|
95
|
+
if not alternates:
|
|
96
|
+
return [] # No alternates available
|
|
97
|
+
|
|
94
98
|
results = []
|
|
95
99
|
|
|
96
|
-
for alternatif in
|
|
100
|
+
for alternatif in alternates:
|
|
97
101
|
alt_link = self.fix_url(alternatif.css("::attr(href)").get())
|
|
98
102
|
alt_name = alternatif.css("::text").get()
|
|
99
103
|
|
|
@@ -10,7 +10,7 @@ class FullHDFilmizlesene(PluginBase):
|
|
|
10
10
|
language = "tr"
|
|
11
11
|
main_url = "https://www.fullhdfilmizlesene.tv"
|
|
12
12
|
favicon = f"https://www.google.com/s2/favicons?domain={main_url}&sz=64"
|
|
13
|
-
description = "
|
|
13
|
+
description = "Türkiye'nin ilk ve lider HD film izleme platformu, kaliteli ve sorunsuz hizmetiyle sinema keyfini zirveye taşır."
|
|
14
14
|
|
|
15
15
|
main_page = {
|
|
16
16
|
f"{main_url}/en-cok-izlenen-hd-filmler/" : "En Çok izlenen Filmler",
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, MovieInfo, ExtractResult, Subtitle
|
|
4
4
|
from parsel import Selector
|
|
5
5
|
from Kekik.Sifreleme import Packer, StreamDecoder
|
|
6
|
-
import random, string, re
|
|
6
|
+
import random, string, re, base64
|
|
7
7
|
|
|
8
8
|
class HDFilmCehennemi(PluginBase):
|
|
9
9
|
name = "HDFilmCehennemi"
|
|
10
10
|
language = "tr"
|
|
11
11
|
main_url = "https://www.hdfilmcehennemi.ws"
|
|
12
12
|
favicon = f"https://www.google.com/s2/favicons?domain={main_url}&sz=64"
|
|
13
|
-
description = "Türkiye'nin en hızlı hd film izleme sitesi"
|
|
13
|
+
description = "Türkiye'nin en hızlı hd film izleme sitesi. Tek ve gerçek hdfilmcehennemi sitesi."
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -146,17 +146,85 @@ class HDFilmCehennemi(PluginBase):
|
|
|
146
146
|
|
|
147
147
|
return results
|
|
148
148
|
|
|
149
|
+
def hdch_decode(self, value_parts: list[str]) -> str:
|
|
150
|
+
"""
|
|
151
|
+
HDFilmCehennemi için özel decoder.
|
|
152
|
+
JavaScript sırası: join -> reverse -> atob -> atob -> shift_back
|
|
153
|
+
"""
|
|
154
|
+
try:
|
|
155
|
+
# 1. Parçaları birleştir
|
|
156
|
+
joined = ''.join(value_parts)
|
|
157
|
+
|
|
158
|
+
# 2. Ters çevir (REV)
|
|
159
|
+
result = StreamDecoder._reverse(joined)
|
|
160
|
+
|
|
161
|
+
# 3. İlk base64 decode (B64D)
|
|
162
|
+
result = StreamDecoder._base64_decode(result)
|
|
163
|
+
if result is None:
|
|
164
|
+
return ""
|
|
165
|
+
|
|
166
|
+
# 4. İkinci base64 decode (B64D) - JavaScript'te iki kez atob yapılıyor!
|
|
167
|
+
result = StreamDecoder._base64_decode(result)
|
|
168
|
+
if result is None:
|
|
169
|
+
return ""
|
|
170
|
+
|
|
171
|
+
# 5. Shift back (SHF)
|
|
172
|
+
result = StreamDecoder._shift_back(result)
|
|
173
|
+
|
|
174
|
+
return result
|
|
175
|
+
except Exception:
|
|
176
|
+
return ""
|
|
177
|
+
|
|
178
|
+
def extract_hdch_url(self, unpacked: str) -> str:
|
|
179
|
+
"""HDFilmCehennemi unpacked script'ten video URL'sini çıkar"""
|
|
180
|
+
# 1) Decode fonksiyonunun adını bul: function <NAME>(value_parts)
|
|
181
|
+
match_fn = re.search(r'function\s+(\w+)\s*\(\s*value_parts\s*\)', unpacked)
|
|
182
|
+
if not match_fn:
|
|
183
|
+
return ""
|
|
184
|
+
|
|
185
|
+
fn_name = match_fn.group(1)
|
|
186
|
+
|
|
187
|
+
# 2) Bu fonksiyonun array ile çağrıldığı yeri bul: <NAME>([ ... ])
|
|
188
|
+
array_call_regex = re.compile(rf'{re.escape(fn_name)}\(\s*\[(.*?)\]\s*\)', re.DOTALL)
|
|
189
|
+
match_call = array_call_regex.search(unpacked)
|
|
190
|
+
if not match_call:
|
|
191
|
+
return ""
|
|
192
|
+
|
|
193
|
+
array_body = match_call.group(1)
|
|
194
|
+
|
|
195
|
+
# 3) Array içindeki string parçalarını topla
|
|
196
|
+
parts = re.findall(r'["\']([^"\']+)["\']', array_body)
|
|
197
|
+
if not parts:
|
|
198
|
+
return ""
|
|
199
|
+
|
|
200
|
+
# 4) Özel decoder ile çöz
|
|
201
|
+
return self.hdch_decode(parts)
|
|
202
|
+
|
|
149
203
|
async def invoke_local_source(self, iframe: str, source: str, url: str):
|
|
150
|
-
self.httpx.headers.update({
|
|
204
|
+
self.httpx.headers.update({
|
|
205
|
+
"Referer": f"{self.main_url}/",
|
|
206
|
+
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:137.0) Gecko/20100101 Firefox/137.0"
|
|
207
|
+
})
|
|
151
208
|
istek = await self.httpx.get(iframe)
|
|
152
209
|
|
|
210
|
+
if not istek.text:
|
|
211
|
+
return await self.cehennempass(iframe.split("/")[-1])
|
|
212
|
+
|
|
213
|
+
# eval(function...) içeren packed script bul
|
|
214
|
+
eval_match = re.search(r'(eval\(function[\s\S]+)', istek.text)
|
|
215
|
+
if not eval_match:
|
|
216
|
+
return await self.cehennempass(iframe.split("/")[-1])
|
|
217
|
+
|
|
153
218
|
try:
|
|
154
|
-
|
|
219
|
+
unpacked = Packer.unpack(eval_match.group(1))
|
|
155
220
|
except Exception:
|
|
156
221
|
return await self.cehennempass(iframe.split("/")[-1])
|
|
157
222
|
|
|
158
|
-
|
|
159
|
-
video_url =
|
|
223
|
+
# HDFilmCehennemi özel decoder ile video URL'sini çıkar
|
|
224
|
+
video_url = self.extract_hdch_url(unpacked)
|
|
225
|
+
|
|
226
|
+
if not video_url:
|
|
227
|
+
return await self.cehennempass(iframe.split("/")[-1])
|
|
160
228
|
|
|
161
229
|
subtitles = []
|
|
162
230
|
try:
|
|
@@ -200,8 +268,15 @@ class HDFilmCehennemi(PluginBase):
|
|
|
200
268
|
match = re.search(r'data-src=\\\"([^"]+)', api_get.text)
|
|
201
269
|
iframe = match[1].replace("\\", "") if match else None
|
|
202
270
|
|
|
203
|
-
if
|
|
204
|
-
|
|
271
|
+
if not iframe:
|
|
272
|
+
continue
|
|
273
|
+
|
|
274
|
+
# mobi URL'si varsa direkt kullan (query string'i kaldır)
|
|
275
|
+
if "mobi" in iframe:
|
|
276
|
+
iframe = iframe.split("?")[0] # rapidrame_id query param'ı kaldır
|
|
277
|
+
# mobi değilse ve rapidrame varsa rplayer kullan
|
|
278
|
+
elif "rapidrame" in iframe and "?rapidrame_id=" in iframe:
|
|
279
|
+
iframe = f"{self.main_url}/rplayer/{iframe.split('?rapidrame_id=')[1]}"
|
|
205
280
|
|
|
206
281
|
video_data_list = await self.invoke_local_source(iframe, source, url)
|
|
207
282
|
if not video_data_list:
|
|
@@ -8,7 +8,7 @@ class JetFilmizle(PluginBase):
|
|
|
8
8
|
language = "tr"
|
|
9
9
|
main_url = "https://jetfilmizle.website"
|
|
10
10
|
favicon = f"https://www.google.com/s2/favicons?domain={main_url}&sz=64"
|
|
11
|
-
description = "
|
|
11
|
+
description = "Film izle, Yerli, Yabancı film izle, Türkçe dublaj, alt yazılı seçenekleriyle ödül almış filmleri Full HD kalitesiyle ve jetfilmizle hızıyla donmadan ücretsizce izleyebilirsiniz."
|
|
12
12
|
|
|
13
13
|
main_page = {
|
|
14
14
|
f"{main_url}/page/" : "Son Filmler",
|
|
@@ -9,7 +9,7 @@ class KultFilmler(PluginBase):
|
|
|
9
9
|
language = "tr"
|
|
10
10
|
main_url = "https://kultfilmler.net"
|
|
11
11
|
favicon = f"https://www.google.com/s2/favicons?domain={main_url}&sz=64"
|
|
12
|
-
description = "Kült
|
|
12
|
+
description = "Kült Filmler özenle en iyi filmleri derler ve iyi bir altyazılı film izleme deneyimi sunmayı amaçlar. Reklamsız 1080P Altyazılı Film izle..."
|
|
13
13
|
|
|
14
14
|
main_page = {
|
|
15
15
|
f"{main_url}/category/aile-filmleri-izle" : "Aile",
|
KekikStream/Plugins/RoketDizi.py
CHANGED
|
@@ -185,6 +185,7 @@ class RoketDizi(PluginBase):
|
|
|
185
185
|
# secureData içindeki RelatedResults -> getEpisodeSources -> result dizisini al
|
|
186
186
|
sources = decoded_json.get("RelatedResults", {}).get("getEpisodeSources", {}).get("result", [])
|
|
187
187
|
|
|
188
|
+
seen_urls = set()
|
|
188
189
|
results = []
|
|
189
190
|
for source in sources:
|
|
190
191
|
source_content = source.get("source_content", "")
|
|
@@ -195,35 +196,27 @@ class RoketDizi(PluginBase):
|
|
|
195
196
|
continue
|
|
196
197
|
|
|
197
198
|
iframe_url = iframe_match.group(1)
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
199
|
+
|
|
200
|
+
# Fix URL protocol
|
|
201
|
+
if not iframe_url.startswith("http"):
|
|
202
|
+
if iframe_url.startswith("//"):
|
|
203
|
+
iframe_url = "https:" + iframe_url
|
|
204
|
+
else:
|
|
205
|
+
iframe_url = "https://" + iframe_url
|
|
206
|
+
|
|
207
|
+
iframe_url = self.fix_url(iframe_url)
|
|
208
|
+
|
|
209
|
+
# Deduplicate
|
|
210
|
+
if iframe_url in seen_urls:
|
|
211
|
+
continue
|
|
212
|
+
seen_urls.add(iframe_url)
|
|
203
213
|
|
|
204
214
|
# Check extractor
|
|
205
215
|
extractor = self.ex_manager.find_extractor(iframe_url)
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
# Metadata'dan bilgileri al
|
|
209
|
-
source_name = source.get("source_name", "")
|
|
210
|
-
language_name = source.get("language_name", "")
|
|
211
|
-
quality_name = source.get("quality_name", "")
|
|
212
|
-
|
|
213
|
-
# İsmi oluştur
|
|
214
|
-
name_parts = []
|
|
215
|
-
if source_name:
|
|
216
|
-
name_parts.append(source_name)
|
|
217
|
-
if ext_name:
|
|
218
|
-
name_parts.append(ext_name)
|
|
219
|
-
if language_name:
|
|
220
|
-
name_parts.append(language_name)
|
|
221
|
-
if quality_name:
|
|
222
|
-
name_parts.append(quality_name)
|
|
223
|
-
|
|
216
|
+
|
|
224
217
|
results.append({
|
|
225
218
|
"url" : iframe_url,
|
|
226
|
-
"name" :
|
|
219
|
+
"name" : extractor.name if extractor else "Player"
|
|
227
220
|
})
|
|
228
221
|
|
|
229
222
|
return results
|
|
@@ -9,7 +9,7 @@ class SelcukFlix(PluginBase):
|
|
|
9
9
|
lang = "tr"
|
|
10
10
|
main_url = "https://selcukflix.net"
|
|
11
11
|
favicon = f"https://www.google.com/s2/favicons?domain={main_url}&sz=64"
|
|
12
|
-
description = "Selcukflix
|
|
12
|
+
description = "Selcukflix'te her türden en yeni ve en popüler dizi ve filmleri izlemenin keyfini çıkarın. Aksiyondan romantiğe, bilim kurgudan dramaya, geniş kütüphanemizde herkes için bir şey var."
|
|
13
13
|
|
|
14
14
|
main_page = {
|
|
15
15
|
f"{main_url}/tum-bolumler" : "Yeni Eklenen Bölümler",
|
|
@@ -240,60 +240,59 @@ class SelcukFlix(PluginBase):
|
|
|
240
240
|
sel = Selector(resp.text)
|
|
241
241
|
|
|
242
242
|
next_data = sel.css("script#__NEXT_DATA__::text").get()
|
|
243
|
-
if not next_data:
|
|
243
|
+
if not next_data:
|
|
244
|
+
return []
|
|
244
245
|
|
|
245
246
|
try:
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
247
|
+
data = json.loads(next_data)
|
|
248
|
+
secure_data = data["props"]["pageProps"]["secureData"]
|
|
249
|
+
raw_data = base64.b64decode(secure_data.replace('"', ''))
|
|
250
|
+
|
|
251
|
+
# Try UTF-8 first, fallback to ISO-8859-1 (matching Kotlin)
|
|
252
|
+
try:
|
|
253
|
+
decoded_str = raw_data.decode('utf-8')
|
|
254
|
+
except UnicodeDecodeError:
|
|
255
|
+
decoded_str = raw_data.decode('iso-8859-1')
|
|
253
256
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
"name": extractor.name if extractor else "Iframe"
|
|
294
|
-
})
|
|
295
|
-
|
|
296
|
-
return results
|
|
257
|
+
content_details = json.loads(decoded_str)
|
|
258
|
+
related_data = content_details.get("relatedData", {})
|
|
259
|
+
|
|
260
|
+
source_content = None
|
|
261
|
+
|
|
262
|
+
# Check if Series (episode) or Movie
|
|
263
|
+
if "/dizi/" in url:
|
|
264
|
+
if related_data.get("episodeSources", {}).get("state"):
|
|
265
|
+
res = related_data["episodeSources"].get("result", [])
|
|
266
|
+
if res:
|
|
267
|
+
source_content = res[0].get("sourceContent")
|
|
268
|
+
else:
|
|
269
|
+
# Movie
|
|
270
|
+
if related_data.get("movieParts", {}).get("state"):
|
|
271
|
+
movie_parts = related_data["movieParts"].get("result", [])
|
|
272
|
+
if movie_parts:
|
|
273
|
+
first_part_id = movie_parts[0].get("id")
|
|
274
|
+
# RelatedResults -> getMoviePartSourcesById_ID
|
|
275
|
+
rr = content_details.get("RelatedResults", {})
|
|
276
|
+
key = f"getMoviePartSourcesById_{first_part_id}"
|
|
277
|
+
if key in rr:
|
|
278
|
+
res = rr[key].get("result", [])
|
|
279
|
+
if res:
|
|
280
|
+
source_content = res[0].get("source_content")
|
|
281
|
+
|
|
282
|
+
if source_content:
|
|
283
|
+
iframe_sel = Selector(source_content)
|
|
284
|
+
iframe_src = iframe_sel.css("iframe::attr(src)").get()
|
|
285
|
+
if iframe_src:
|
|
286
|
+
iframe_src = self.fix_url(iframe_src)
|
|
287
|
+
extractor = self.ex_manager.find_extractor(iframe_src)
|
|
288
|
+
|
|
289
|
+
if extractor: # Only return if extractor found
|
|
290
|
+
return [{
|
|
291
|
+
"url" : iframe_src,
|
|
292
|
+
"name" : extractor.name
|
|
293
|
+
}]
|
|
294
|
+
|
|
295
|
+
return []
|
|
297
296
|
|
|
298
297
|
except Exception:
|
|
299
298
|
return []
|