KekikStream 1.7.1__py3-none-any.whl → 2.0.2__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/Core/Extractor/ExtractorBase.py +13 -7
- KekikStream/Core/Extractor/ExtractorLoader.py +25 -17
- KekikStream/Core/Extractor/ExtractorManager.py +53 -9
- KekikStream/Core/Extractor/ExtractorModels.py +5 -7
- KekikStream/Core/Extractor/YTDLPCache.py +35 -0
- KekikStream/Core/Media/MediaHandler.py +44 -26
- KekikStream/Core/Media/MediaManager.py +0 -3
- KekikStream/Core/Plugin/PluginBase.py +21 -9
- KekikStream/Core/Plugin/PluginLoader.py +11 -7
- KekikStream/Core/Plugin/PluginModels.py +25 -26
- KekikStream/Core/__init__.py +1 -0
- KekikStream/Extractors/CloseLoad.py +4 -5
- KekikStream/Extractors/ContentX.py +4 -6
- KekikStream/Extractors/ContentX_.py +40 -0
- KekikStream/Extractors/DzenRu.py +38 -0
- KekikStream/Extractors/ExPlay.py +53 -0
- KekikStream/Extractors/FirePlayer.py +60 -0
- KekikStream/Extractors/HDPlayerSystem.py +41 -0
- KekikStream/Extractors/JetTv.py +45 -0
- KekikStream/Extractors/MailRu.py +3 -4
- KekikStream/Extractors/MixPlayHD.py +2 -3
- KekikStream/Extractors/MixTiger.py +57 -0
- KekikStream/Extractors/MolyStream.py +5 -5
- KekikStream/Extractors/Odnoklassniki.py +7 -7
- KekikStream/Extractors/{OkRuHTTP.py → Odnoklassniki_.py} +5 -1
- KekikStream/Extractors/PeaceMakerst.py +4 -5
- KekikStream/Extractors/{HDStreamAble.py → PeaceMakerst_.py} +1 -1
- KekikStream/Extractors/PixelDrain.py +1 -2
- KekikStream/Extractors/PlayerFilmIzle.py +62 -0
- KekikStream/Extractors/RapidVid.py +2 -3
- KekikStream/Extractors/RapidVid_.py +7 -0
- KekikStream/Extractors/SetPlay.py +57 -0
- KekikStream/Extractors/SetPrime.py +45 -0
- KekikStream/Extractors/SibNet.py +2 -3
- KekikStream/Extractors/Sobreatsesuyp.py +4 -5
- KekikStream/Extractors/TRsTX.py +4 -5
- KekikStream/Extractors/TauVideo.py +2 -3
- KekikStream/Extractors/TurboImgz.py +2 -3
- KekikStream/Extractors/TurkeyPlayer.py +34 -0
- KekikStream/Extractors/VidHide.py +72 -0
- KekikStream/Extractors/VidMoly.py +4 -5
- KekikStream/Extractors/{VidMolyMe.py → VidMoly_.py} +1 -1
- KekikStream/Extractors/VidMoxy.py +2 -3
- KekikStream/Extractors/VidPapi.py +89 -0
- KekikStream/Extractors/VideoSeyred.py +3 -4
- KekikStream/Extractors/YTDLP.py +177 -0
- KekikStream/Extractors/YildizKisaFilm.py +41 -0
- KekikStream/Plugins/DiziBox.py +18 -23
- KekikStream/Plugins/DiziPal.py +16 -16
- KekikStream/Plugins/DiziYou.py +48 -23
- KekikStream/Plugins/Dizilla.py +47 -32
- KekikStream/Plugins/FilmBip.py +145 -0
- KekikStream/Plugins/FilmMakinesi.py +6 -8
- KekikStream/Plugins/FilmModu.py +9 -9
- KekikStream/Plugins/FullHDFilm.py +164 -0
- KekikStream/Plugins/FullHDFilmizlesene.py +4 -8
- KekikStream/Plugins/HDFilmCehennemi.py +15 -19
- KekikStream/Plugins/JetFilmizle.py +67 -49
- KekikStream/Plugins/KultFilmler.py +219 -0
- KekikStream/Plugins/RecTV.py +18 -22
- KekikStream/Plugins/RoketDizi.py +232 -0
- KekikStream/Plugins/SelcukFlix.py +309 -0
- KekikStream/Plugins/SezonlukDizi.py +12 -13
- KekikStream/Plugins/SineWix.py +8 -12
- KekikStream/Plugins/Sinefy.py +238 -0
- KekikStream/Plugins/SinemaCX.py +157 -0
- KekikStream/Plugins/Sinezy.py +146 -0
- KekikStream/Plugins/SuperFilmGeldi.py +121 -0
- KekikStream/Plugins/UgurFilm.py +7 -11
- KekikStream/__init__.py +34 -24
- KekikStream/requirements.txt +3 -4
- kekikstream-2.0.2.dist-info/METADATA +309 -0
- kekikstream-2.0.2.dist-info/RECORD +82 -0
- KekikStream/Extractors/FourCX.py +0 -7
- KekikStream/Extractors/FourPichive.py +0 -7
- KekikStream/Extractors/FourPlayRu.py +0 -7
- KekikStream/Extractors/Hotlinger.py +0 -7
- KekikStream/Extractors/OkRuSSL.py +0 -7
- KekikStream/Extractors/Pichive.py +0 -7
- KekikStream/Extractors/PlayRu.py +0 -7
- kekikstream-1.7.1.dist-info/METADATA +0 -109
- kekikstream-1.7.1.dist-info/RECORD +0 -63
- {kekikstream-1.7.1.dist-info → kekikstream-2.0.2.dist-info}/WHEEL +0 -0
- {kekikstream-1.7.1.dist-info → kekikstream-2.0.2.dist-info}/entry_points.txt +0 -0
- {kekikstream-1.7.1.dist-info → kekikstream-2.0.2.dist-info}/licenses/LICENSE +0 -0
- {kekikstream-1.7.1.dist-info → kekikstream-2.0.2.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
|
2
|
+
|
|
3
|
+
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, MovieInfo
|
|
4
|
+
from parsel import Selector
|
|
5
|
+
|
|
6
|
+
class FilmBip(PluginBase):
|
|
7
|
+
name = "FilmBip"
|
|
8
|
+
language = "tr"
|
|
9
|
+
main_url = "https://filmbip.com"
|
|
10
|
+
favicon = f"https://www.google.com/s2/favicons?domain={main_url}&sz=64"
|
|
11
|
+
description = "FilmBip adlı film sitemizde Full HD film izle. Yerli ve yabancı filmleri Türkçe dublaj veya altyazılı şekilde 1080p yüksek kalite film izle"
|
|
12
|
+
|
|
13
|
+
main_page = {
|
|
14
|
+
f"{main_url}/filmler/SAYFA" : "Yeni Filmler",
|
|
15
|
+
f"{main_url}/film/tur/aile/SAYFA" : "Aile",
|
|
16
|
+
f"{main_url}/film/tur/aksiyon/SAYFA" : "Aksiyon",
|
|
17
|
+
f"{main_url}/film/tur/belgesel/SAYFA" : "Belgesel",
|
|
18
|
+
f"{main_url}/film/tur/bilim-kurgu/SAYFA" : "Bilim Kurgu",
|
|
19
|
+
f"{main_url}/film/tur/dram/SAYFA" : "Dram",
|
|
20
|
+
f"{main_url}/film/tur/fantastik/SAYFA" : "Fantastik",
|
|
21
|
+
f"{main_url}/film/tur/gerilim/SAYFA" : "Gerilim",
|
|
22
|
+
f"{main_url}/film/tur/gizem/SAYFA" : "Gizem",
|
|
23
|
+
f"{main_url}/film/tur/komedi/SAYFA" : "Komedi",
|
|
24
|
+
f"{main_url}/film/tur/korku/SAYFA" : "Korku",
|
|
25
|
+
f"{main_url}/film/tur/macera/SAYFA" : "Macera",
|
|
26
|
+
f"{main_url}/film/tur/muzik/SAYFA" : "Müzik",
|
|
27
|
+
f"{main_url}/film/tur/romantik/SAYFA" : "Romantik",
|
|
28
|
+
f"{main_url}/film/tur/savas/SAYFA" : "Savaş",
|
|
29
|
+
f"{main_url}/film/tur/suc/SAYFA" : "Suç",
|
|
30
|
+
f"{main_url}/film/tur/tarih/SAYFA" : "Tarih",
|
|
31
|
+
f"{main_url}/film/tur/vahsi-bati/SAYFA" : "Western",
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
async def get_main_page(self, page: int, url: str, category: str) -> list[MainPageResult]:
|
|
35
|
+
page_url = url.replace("SAYFA", "") if page == 1 else url.replace("SAYFA", str(page))
|
|
36
|
+
page_url = page_url.rstrip("/")
|
|
37
|
+
|
|
38
|
+
istek = await self.httpx.get(page_url)
|
|
39
|
+
secici = Selector(istek.text)
|
|
40
|
+
|
|
41
|
+
results = []
|
|
42
|
+
for veri in secici.css("div.poster-long"):
|
|
43
|
+
img = veri.css("a.block img.lazy")
|
|
44
|
+
title = img.css("::attr(alt)").get()
|
|
45
|
+
href = self.fix_url(veri.css("a.block::attr(href)").get())
|
|
46
|
+
poster = self.fix_url(img.css("::attr(data-src)").get() or img.css("::attr(src)").get())
|
|
47
|
+
|
|
48
|
+
if title and href:
|
|
49
|
+
results.append(MainPageResult(
|
|
50
|
+
category = category,
|
|
51
|
+
title = title,
|
|
52
|
+
url = href,
|
|
53
|
+
poster = poster,
|
|
54
|
+
))
|
|
55
|
+
|
|
56
|
+
return results
|
|
57
|
+
|
|
58
|
+
async def search(self, query: str) -> list[SearchResult]:
|
|
59
|
+
istek = await self.httpx.post(
|
|
60
|
+
url = f"{self.main_url}/search",
|
|
61
|
+
headers = {
|
|
62
|
+
"Accept" : "application/json, text/javascript, */*; q=0.01",
|
|
63
|
+
"X-Requested-With" : "XMLHttpRequest",
|
|
64
|
+
"Content-Type" : "application/x-www-form-urlencoded; charset=UTF-8",
|
|
65
|
+
"Origin" : self.main_url,
|
|
66
|
+
"Referer" : f"{self.main_url}/"
|
|
67
|
+
},
|
|
68
|
+
data = {"query": query}
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
try:
|
|
72
|
+
json_data = istek.json()
|
|
73
|
+
if not json_data.get("success"):
|
|
74
|
+
return []
|
|
75
|
+
|
|
76
|
+
html_content = json_data.get("theme", "")
|
|
77
|
+
except Exception:
|
|
78
|
+
return []
|
|
79
|
+
|
|
80
|
+
secici = Selector(text=html_content)
|
|
81
|
+
|
|
82
|
+
results = []
|
|
83
|
+
for veri in secici.css("li"):
|
|
84
|
+
title = veri.css("a.block.truncate::text").get()
|
|
85
|
+
href = self.fix_url(veri.css("a::attr(href)").get())
|
|
86
|
+
poster = self.fix_url(veri.css("img.lazy::attr(data-src)").get())
|
|
87
|
+
|
|
88
|
+
if title and href:
|
|
89
|
+
results.append(SearchResult(
|
|
90
|
+
title = title.strip(),
|
|
91
|
+
url = href,
|
|
92
|
+
poster = poster,
|
|
93
|
+
))
|
|
94
|
+
|
|
95
|
+
return results
|
|
96
|
+
|
|
97
|
+
async def load_item(self, url: str) -> MovieInfo:
|
|
98
|
+
istek = await self.httpx.get(url)
|
|
99
|
+
secici = Selector(istek.text)
|
|
100
|
+
|
|
101
|
+
title = secici.css("div.page-title h1::text").get()
|
|
102
|
+
poster = self.fix_url(secici.css("meta[property='og:image']::attr(content)").get())
|
|
103
|
+
trailer = secici.css("div.series-profile-trailer::attr(data-yt)").get()
|
|
104
|
+
description = secici.css("div.series-profile-infos-in.article p::text").get() or \
|
|
105
|
+
secici.css("div.series-profile-summary p::text").get()
|
|
106
|
+
|
|
107
|
+
tags = secici.css("div.series-profile-type.tv-show-profile-type a::text").getall()
|
|
108
|
+
|
|
109
|
+
# XPath ile yıl, süre ve puan
|
|
110
|
+
year = secici.xpath("//li[span[contains(text(), 'Yapım yılı')]]/p/text()").re_first(r"(\d{4})")
|
|
111
|
+
duration = secici.xpath("//li[span[contains(text(), 'Süre')]]/p/text()").re_first(r"(\d+)")
|
|
112
|
+
rating = secici.xpath("//li[span[contains(text(), 'IMDB Puanı')]]/p/span/text()").get()
|
|
113
|
+
|
|
114
|
+
actors = secici.css("div.series-profile-cast ul li a img::attr(alt)").getall()
|
|
115
|
+
|
|
116
|
+
return MovieInfo(
|
|
117
|
+
url = url,
|
|
118
|
+
poster = poster,
|
|
119
|
+
title = self.clean_title(title) if title else "",
|
|
120
|
+
description = description.strip() if description else None,
|
|
121
|
+
tags = tags,
|
|
122
|
+
year = year,
|
|
123
|
+
rating = rating,
|
|
124
|
+
duration = int(duration) if duration else None,
|
|
125
|
+
actors = actors,
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
async def load_links(self, url: str) -> list[dict]:
|
|
129
|
+
istek = await self.httpx.get(url)
|
|
130
|
+
secici = Selector(istek.text)
|
|
131
|
+
|
|
132
|
+
results = []
|
|
133
|
+
|
|
134
|
+
for player in secici.css("div#tv-spoox2"):
|
|
135
|
+
iframe = self.fix_url(player.css("iframe::attr(src)").get())
|
|
136
|
+
|
|
137
|
+
if iframe:
|
|
138
|
+
extractor = self.ex_manager.find_extractor(iframe)
|
|
139
|
+
results.append({
|
|
140
|
+
"name" : extractor.name if extractor else "Player",
|
|
141
|
+
"url" : iframe,
|
|
142
|
+
"referer" : f"{self.main_url}/"
|
|
143
|
+
})
|
|
144
|
+
|
|
145
|
+
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
|
|
3
|
+
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, MovieInfo
|
|
4
4
|
from parsel import Selector
|
|
5
5
|
|
|
6
6
|
class FilmMakinesi(PluginBase):
|
|
@@ -34,7 +34,6 @@ class FilmMakinesi(PluginBase):
|
|
|
34
34
|
f"{main_url}/tur/western-fm1/film/" : "Western"
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
#@kekik_cache(ttl=60*60)
|
|
38
37
|
async def get_main_page(self, page: int, url: str, category: str) -> list[MainPageResult]:
|
|
39
38
|
istek = self.cloudscraper.get(f"{url}{'' if page == 1 else f'page/{page}/'}")
|
|
40
39
|
secici = Selector(istek.text)
|
|
@@ -51,9 +50,8 @@ class FilmMakinesi(PluginBase):
|
|
|
51
50
|
for veri in veriler
|
|
52
51
|
]
|
|
53
52
|
|
|
54
|
-
#@kekik_cache(ttl=60*60)
|
|
55
53
|
async def search(self, query: str) -> list[SearchResult]:
|
|
56
|
-
istek = await self.
|
|
54
|
+
istek = await self.httpx.get(f"{self.main_url}/arama/?s={query}")
|
|
57
55
|
secici = Selector(istek.text)
|
|
58
56
|
|
|
59
57
|
results = []
|
|
@@ -73,9 +71,8 @@ class FilmMakinesi(PluginBase):
|
|
|
73
71
|
|
|
74
72
|
return results
|
|
75
73
|
|
|
76
|
-
#@kekik_cache(ttl=60*60)
|
|
77
74
|
async def load_item(self, url: str) -> MovieInfo:
|
|
78
|
-
istek = await self.
|
|
75
|
+
istek = await self.httpx.get(url)
|
|
79
76
|
secici = Selector(istek.text)
|
|
80
77
|
|
|
81
78
|
title = secici.css("h1.title::text").get().strip()
|
|
@@ -86,6 +83,7 @@ class FilmMakinesi(PluginBase):
|
|
|
86
83
|
rating = rating.strip().split()[0]
|
|
87
84
|
year = secici.css("span.date a::text").get().strip()
|
|
88
85
|
actors = secici.css("div.cast-name::text").getall()
|
|
86
|
+
tags = secici.css("div.genre a::text").getall()
|
|
89
87
|
duration = secici.css("div.time::text").get()
|
|
90
88
|
if duration:
|
|
91
89
|
duration = duration.split()[1].strip()
|
|
@@ -95,15 +93,15 @@ class FilmMakinesi(PluginBase):
|
|
|
95
93
|
poster = self.fix_url(poster),
|
|
96
94
|
title = self.clean_title(title),
|
|
97
95
|
description = description,
|
|
96
|
+
tags = tags,
|
|
98
97
|
rating = rating,
|
|
99
98
|
year = year,
|
|
100
99
|
actors = actors,
|
|
101
100
|
duration = duration
|
|
102
101
|
)
|
|
103
102
|
|
|
104
|
-
#@kekik_cache(ttl=15*60)
|
|
105
103
|
async def load_links(self, url: str) -> list[dict]:
|
|
106
|
-
istek = await self.
|
|
104
|
+
istek = await self.httpx.get(url)
|
|
107
105
|
secici = Selector(istek.text)
|
|
108
106
|
|
|
109
107
|
iframe_src = secici.css("iframe::attr(data-src)").get()
|
KekikStream/Plugins/FilmModu.py
CHANGED
|
@@ -41,7 +41,7 @@ class FilmModu(PluginBase):
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
async def get_main_page(self, page: int, url: str, category: str) -> list[MainPageResult]:
|
|
44
|
-
istek = await self.
|
|
44
|
+
istek = await self.httpx.get(url.replace("SAYFA", str(page)))
|
|
45
45
|
secici = Selector(istek.text)
|
|
46
46
|
|
|
47
47
|
return [
|
|
@@ -56,7 +56,7 @@ class FilmModu(PluginBase):
|
|
|
56
56
|
]
|
|
57
57
|
|
|
58
58
|
async def search(self, query: str) -> list[SearchResult]:
|
|
59
|
-
istek = await self.
|
|
59
|
+
istek = await self.httpx.get(f"{self.main_url}/film-ara?term={query}")
|
|
60
60
|
secici = Selector(istek.text)
|
|
61
61
|
|
|
62
62
|
return [
|
|
@@ -70,7 +70,7 @@ class FilmModu(PluginBase):
|
|
|
70
70
|
]
|
|
71
71
|
|
|
72
72
|
async def load_item(self, url: str) -> MovieInfo:
|
|
73
|
-
istek = await self.
|
|
73
|
+
istek = await self.httpx.get(url)
|
|
74
74
|
secici = Selector(istek.text)
|
|
75
75
|
|
|
76
76
|
org_title = secici.css("div.titles h1::text").get()
|
|
@@ -88,7 +88,7 @@ class FilmModu(PluginBase):
|
|
|
88
88
|
)
|
|
89
89
|
|
|
90
90
|
async def load_links(self, url: str) -> list[dict]:
|
|
91
|
-
istek = await self.
|
|
91
|
+
istek = await self.httpx.get(url)
|
|
92
92
|
secici = Selector(istek.text)
|
|
93
93
|
|
|
94
94
|
results = []
|
|
@@ -100,7 +100,7 @@ class FilmModu(PluginBase):
|
|
|
100
100
|
if alt_name == "Fragman" or not alt_link:
|
|
101
101
|
continue
|
|
102
102
|
|
|
103
|
-
alt_istek = await self.
|
|
103
|
+
alt_istek = await self.httpx.get(alt_link)
|
|
104
104
|
alt_text = alt_istek.text
|
|
105
105
|
|
|
106
106
|
vid_id = re.search(r"var videoId = '(.*)'", alt_text)
|
|
@@ -109,7 +109,7 @@ class FilmModu(PluginBase):
|
|
|
109
109
|
if not vid_id or not vid_type:
|
|
110
110
|
continue
|
|
111
111
|
|
|
112
|
-
source_istek = await self.
|
|
112
|
+
source_istek = await self.httpx.get(
|
|
113
113
|
f"{self.main_url}/get-source?movie_id={vid_id[1]}&type={vid_type[1]}"
|
|
114
114
|
)
|
|
115
115
|
source_data = source_istek.json()
|
|
@@ -129,9 +129,9 @@ class FilmModu(PluginBase):
|
|
|
129
129
|
|
|
130
130
|
return results
|
|
131
131
|
|
|
132
|
-
async def play(self,
|
|
133
|
-
extract_result = ExtractResult(
|
|
134
|
-
self.media_handler.title = name
|
|
132
|
+
async def play(self, **kwargs):
|
|
133
|
+
extract_result = ExtractResult(**kwargs)
|
|
134
|
+
self.media_handler.title = kwargs.get("name")
|
|
135
135
|
if self.name not in self.media_handler.title:
|
|
136
136
|
self.media_handler.title = f"{self.name} | {self.media_handler.title}"
|
|
137
137
|
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
|
2
|
+
|
|
3
|
+
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, MovieInfo, ExtractResult, Subtitle
|
|
4
|
+
from parsel import Selector
|
|
5
|
+
import re, base64
|
|
6
|
+
|
|
7
|
+
class FullHDFilm(PluginBase):
|
|
8
|
+
name = "FullHDFilm"
|
|
9
|
+
language = "tr"
|
|
10
|
+
main_url = "https://hdfilm.us"
|
|
11
|
+
favicon = f"https://www.google.com/s2/favicons?domain={main_url}&sz=64"
|
|
12
|
+
description = "Full HD Film izle, Türkçe Dublaj ve Altyazılı filmler."
|
|
13
|
+
|
|
14
|
+
main_page = {
|
|
15
|
+
f"{main_url}/tur/turkce-altyazili-film-izle" : "Altyazılı Filmler",
|
|
16
|
+
f"{main_url}/tur/netflix-filmleri-izle" : "Netflix",
|
|
17
|
+
f"{main_url}/category/aile-filmleri-izle" : "Aile",
|
|
18
|
+
f"{main_url}/category/aksiyon-filmleri-izle" : "Aksiyon",
|
|
19
|
+
f"{main_url}/category/animasyon-filmleri-izle" : "Animasyon",
|
|
20
|
+
f"{main_url}/category/belgesel-filmleri-izle" : "Belgesel",
|
|
21
|
+
f"{main_url}/category/bilim-kurgu-filmleri-izle" : "Bilim-Kurgu",
|
|
22
|
+
f"{main_url}/category/biyografi-filmleri-izle" : "Biyografi",
|
|
23
|
+
f"{main_url}/category/dram-filmleri-izle" : "Dram",
|
|
24
|
+
f"{main_url}/category/fantastik-filmler-izle" : "Fantastik",
|
|
25
|
+
f"{main_url}/category/gerilim-filmleri-izle" : "Gerilim",
|
|
26
|
+
f"{main_url}/category/gizem-filmleri-izle" : "Gizem",
|
|
27
|
+
f"{main_url}/category/komedi-filmleri-izle" : "Komedi",
|
|
28
|
+
f"{main_url}/category/korku-filmleri-izle" : "Korku",
|
|
29
|
+
f"{main_url}/category/macera-filmleri-izle" : "Macera",
|
|
30
|
+
f"{main_url}/category/romantik-filmler-izle" : "Romantik",
|
|
31
|
+
f"{main_url}/category/savas-filmleri-izle" : "Savaş",
|
|
32
|
+
f"{main_url}/category/suc-filmleri-izle" : "Suç",
|
|
33
|
+
f"{main_url}/tur/yerli-film-izle" : "Yerli Film",
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
async def get_main_page(self, page: int, url: str, category: str) -> list[MainPageResult]:
|
|
37
|
+
page_url = url if page == 1 else f"{url}/page/{page}"
|
|
38
|
+
|
|
39
|
+
self.httpx.headers.update({
|
|
40
|
+
"User-Agent" : "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
|
|
41
|
+
"Referer" : f"{self.main_url}/"
|
|
42
|
+
})
|
|
43
|
+
|
|
44
|
+
istek = await self.httpx.get(page_url)
|
|
45
|
+
secici = Selector(istek.text)
|
|
46
|
+
|
|
47
|
+
return [
|
|
48
|
+
MainPageResult(
|
|
49
|
+
category = category,
|
|
50
|
+
title = veri.css("img::attr(alt)").get(),
|
|
51
|
+
url = self.fix_url(veri.css("a::attr(href)").get()),
|
|
52
|
+
poster = self.fix_url(veri.css("img::attr(src)").get()),
|
|
53
|
+
)
|
|
54
|
+
for veri in secici.css("div.movie-poster")
|
|
55
|
+
if veri.css("img::attr(alt)").get()
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
async def search(self, query: str) -> list[SearchResult]:
|
|
59
|
+
istek = await self.httpx.get(f"{self.main_url}/?s={query}")
|
|
60
|
+
secici = Selector(istek.text)
|
|
61
|
+
|
|
62
|
+
return [
|
|
63
|
+
SearchResult(
|
|
64
|
+
title = veri.css("img::attr(alt)").get(),
|
|
65
|
+
url = self.fix_url(veri.css("a::attr(href)").get()),
|
|
66
|
+
poster = self.fix_url(veri.css("img::attr(src)").get()),
|
|
67
|
+
)
|
|
68
|
+
for veri in secici.css("div.movie-poster")
|
|
69
|
+
if veri.css("img::attr(alt)").get()
|
|
70
|
+
]
|
|
71
|
+
|
|
72
|
+
async def load_item(self, url: str) -> MovieInfo:
|
|
73
|
+
istek = await self.httpx.get(url)
|
|
74
|
+
secici = Selector(istek.text)
|
|
75
|
+
|
|
76
|
+
title = secici.css("h1::text").get()
|
|
77
|
+
poster = self.fix_url(secici.css("div.poster img::attr(src)").get())
|
|
78
|
+
description = secici.css("div#details div.text::text").get() or \
|
|
79
|
+
secici.css("div#details div::text").get()
|
|
80
|
+
|
|
81
|
+
actors_text = secici.css("div.oyuncular.info::text").get()
|
|
82
|
+
if actors_text:
|
|
83
|
+
actors_text = actors_text.replace("Oyuncular:", "").strip()
|
|
84
|
+
actors = [a.strip() for a in actors_text.split(",")]
|
|
85
|
+
else:
|
|
86
|
+
actors = []
|
|
87
|
+
|
|
88
|
+
year = secici.css("div.yayin-tarihi.info::text").re_first(r"(\d{4})")
|
|
89
|
+
tags = secici.css("div.tur.info a::text").getall()
|
|
90
|
+
rating = secici.css("div.imdb::text").re_first(r"IMDb\s*([\d\.]+)")
|
|
91
|
+
|
|
92
|
+
# Açıklama usually above .others
|
|
93
|
+
description = secici.xpath("//div[contains(@class, 'others')]/preceding-sibling::div[1]//text()").getall()
|
|
94
|
+
description = "".join(description).strip() if description else None
|
|
95
|
+
|
|
96
|
+
return MovieInfo(
|
|
97
|
+
url = url,
|
|
98
|
+
poster = poster,
|
|
99
|
+
title = self.clean_title(title) if title else "",
|
|
100
|
+
description = description,
|
|
101
|
+
tags = tags,
|
|
102
|
+
year = year,
|
|
103
|
+
actors = actors,
|
|
104
|
+
rating = rating.strip() if rating else None,
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
def _get_iframe(self, source_code: str) -> str:
|
|
108
|
+
"""Base64 kodlu iframe'i çözümle"""
|
|
109
|
+
match = re.search(r'<script[^>]*>(PCEtLWJhc2xpazp[^<]*)</script>', source_code)
|
|
110
|
+
if not match:
|
|
111
|
+
return ""
|
|
112
|
+
|
|
113
|
+
try:
|
|
114
|
+
decoded_html = base64.b64decode(match[1]).decode("utf-8")
|
|
115
|
+
iframe_match = re.search(r'<iframe[^>]+src=["\']([^"\']+)["\']', decoded_html)
|
|
116
|
+
return self.fix_url(iframe_match[1]) if iframe_match else ""
|
|
117
|
+
except Exception:
|
|
118
|
+
return ""
|
|
119
|
+
|
|
120
|
+
def _extract_subtitle_url(self, source_code: str) -> str | None:
|
|
121
|
+
"""playerjsSubtitle değişkeninden .srt URL çıkar"""
|
|
122
|
+
patterns = [
|
|
123
|
+
r'var playerjsSubtitle = "\[Türkçe\](https?://[^\s"]+?\.srt)";',
|
|
124
|
+
r'var playerjsSubtitle = "(https?://[^\s"]+?\.srt)";',
|
|
125
|
+
r'subtitle:\s*"(https?://[^\s"]+?\.srt)"',
|
|
126
|
+
]
|
|
127
|
+
|
|
128
|
+
for pattern in patterns:
|
|
129
|
+
if match := re.search(pattern, source_code):
|
|
130
|
+
return match[1]
|
|
131
|
+
|
|
132
|
+
return None
|
|
133
|
+
|
|
134
|
+
async def load_links(self, url: str) -> list[dict]:
|
|
135
|
+
self.httpx.headers.update({
|
|
136
|
+
"User-Agent" : "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
|
|
137
|
+
"Referer" : self.main_url
|
|
138
|
+
})
|
|
139
|
+
|
|
140
|
+
istek = await self.httpx.get(url)
|
|
141
|
+
source_code = istek.text
|
|
142
|
+
|
|
143
|
+
# Ana sayfadan altyazı URL'sini çek
|
|
144
|
+
subtitle_url = self._extract_subtitle_url(source_code)
|
|
145
|
+
|
|
146
|
+
# Iframe'den altyazı URL'sini çek
|
|
147
|
+
iframe_src = self._get_iframe(source_code)
|
|
148
|
+
|
|
149
|
+
if not subtitle_url and iframe_src:
|
|
150
|
+
iframe_istek = await self.httpx.get(iframe_src)
|
|
151
|
+
subtitle_url = self._extract_subtitle_url(iframe_istek.text)
|
|
152
|
+
|
|
153
|
+
results = []
|
|
154
|
+
|
|
155
|
+
if iframe_src:
|
|
156
|
+
extractor = self.ex_manager.find_extractor(iframe_src)
|
|
157
|
+
results.append({
|
|
158
|
+
"name" : extractor.name if extractor else "FullHDFilm Player",
|
|
159
|
+
"url" : iframe_src,
|
|
160
|
+
"referer" : self.main_url,
|
|
161
|
+
"subtitles" : [Subtitle(name="Türkçe", url=subtitle_url)] if subtitle_url else []
|
|
162
|
+
})
|
|
163
|
+
|
|
164
|
+
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
|
|
3
|
+
from KekikStream.Core import PluginBase, MainPageResult, SearchResult, MovieInfo
|
|
4
4
|
from parsel import Selector
|
|
5
5
|
from Kekik.Sifreleme import StringCodec
|
|
6
6
|
import json, re
|
|
@@ -40,7 +40,6 @@ class FullHDFilmizlesene(PluginBase):
|
|
|
40
40
|
f"{main_url}/filmizle/yerli-filmler-hd-izle/" : "Yerli Filmler"
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
#@kekik_cache(ttl=60*60)
|
|
44
43
|
async def get_main_page(self, page: int, url: str, category: str) -> list[MainPageResult]:
|
|
45
44
|
istek = self.cloudscraper.get(f"{url}{page}")
|
|
46
45
|
secici = Selector(istek.text)
|
|
@@ -55,9 +54,8 @@ class FullHDFilmizlesene(PluginBase):
|
|
|
55
54
|
for veri in secici.css("li.film")
|
|
56
55
|
]
|
|
57
56
|
|
|
58
|
-
#@kekik_cache(ttl=60*60)
|
|
59
57
|
async def search(self, query: str) -> list[SearchResult]:
|
|
60
|
-
istek = await self.
|
|
58
|
+
istek = await self.httpx.get(f"{self.main_url}/arama/{query}")
|
|
61
59
|
secici = Selector(istek.text)
|
|
62
60
|
|
|
63
61
|
results = []
|
|
@@ -77,9 +75,8 @@ class FullHDFilmizlesene(PluginBase):
|
|
|
77
75
|
|
|
78
76
|
return results
|
|
79
77
|
|
|
80
|
-
#@kekik_cache(ttl=60*60)
|
|
81
78
|
async def load_item(self, url: str) -> MovieInfo:
|
|
82
|
-
istek = await self.
|
|
79
|
+
istek = await self.httpx.get(url)
|
|
83
80
|
secici = Selector(istek.text)
|
|
84
81
|
|
|
85
82
|
title = secici.xpath("normalize-space(//div[@class='izle-titles'])").get().strip()
|
|
@@ -103,9 +100,8 @@ class FullHDFilmizlesene(PluginBase):
|
|
|
103
100
|
duration = duration
|
|
104
101
|
)
|
|
105
102
|
|
|
106
|
-
#@kekik_cache(ttl=15*60)
|
|
107
103
|
async def load_links(self, url: str) -> list[dict]:
|
|
108
|
-
istek = await self.
|
|
104
|
+
istek = await self.httpx.get(url)
|
|
109
105
|
secici = Selector(istek.text)
|
|
110
106
|
|
|
111
107
|
script = secici.xpath("(//script)[1]").get()
|
|
@@ -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
|
|
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
6
|
import random, string, re
|
|
@@ -11,6 +11,8 @@ class HDFilmCehennemi(PluginBase):
|
|
|
11
11
|
main_url = "https://www.hdfilmcehennemi.ws"
|
|
12
12
|
favicon = f"https://www.google.com/s2/favicons?domain={main_url}&sz=64"
|
|
13
13
|
description = "Türkiye'nin en hızlı hd film izleme sitesi"
|
|
14
|
+
|
|
15
|
+
|
|
14
16
|
|
|
15
17
|
main_page = {
|
|
16
18
|
f"{main_url}" : "Yeni Eklenen Filmler",
|
|
@@ -29,9 +31,8 @@ class HDFilmCehennemi(PluginBase):
|
|
|
29
31
|
f"{main_url}/tur/romantik-filmleri-izle-1" : "Romantik Filmleri"
|
|
30
32
|
}
|
|
31
33
|
|
|
32
|
-
#@kekik_cache(ttl=60*60)
|
|
33
34
|
async def get_main_page(self, page: int, url: str, category: str) -> list[MainPageResult]:
|
|
34
|
-
istek = await self.
|
|
35
|
+
istek = await self.httpx.get(f"{url}", follow_redirects=True)
|
|
35
36
|
secici = Selector(istek.text)
|
|
36
37
|
|
|
37
38
|
return [
|
|
@@ -44,9 +45,8 @@ class HDFilmCehennemi(PluginBase):
|
|
|
44
45
|
for veri in secici.css("div.section-content a.poster")
|
|
45
46
|
]
|
|
46
47
|
|
|
47
|
-
#@kekik_cache(ttl=60*60)
|
|
48
48
|
async def search(self, query: str) -> list[SearchResult]:
|
|
49
|
-
istek = await self.
|
|
49
|
+
istek = await self.httpx.get(
|
|
50
50
|
url = f"{self.main_url}/search/?q={query}",
|
|
51
51
|
headers = {
|
|
52
52
|
"Referer" : f"{self.main_url}/",
|
|
@@ -73,9 +73,8 @@ class HDFilmCehennemi(PluginBase):
|
|
|
73
73
|
|
|
74
74
|
return results
|
|
75
75
|
|
|
76
|
-
#@kekik_cache(ttl=60*60)
|
|
77
76
|
async def load_item(self, url: str) -> MovieInfo:
|
|
78
|
-
istek = await self.
|
|
77
|
+
istek = await self.httpx.get(url, headers = {"Referer": f"{self.main_url}/"})
|
|
79
78
|
secici = Selector(istek.text)
|
|
80
79
|
|
|
81
80
|
title = secici.css("h1.section-title::text").get().strip()
|
|
@@ -108,11 +107,10 @@ class HDFilmCehennemi(PluginBase):
|
|
|
108
107
|
def generate_random_cookie(self):
|
|
109
108
|
return "".join(random.choices(string.ascii_letters + string.digits, k=16))
|
|
110
109
|
|
|
111
|
-
#@kekik_cache(ttl=15*60)
|
|
112
110
|
async def cehennempass(self, video_id: str) -> list[dict]:
|
|
113
111
|
results = []
|
|
114
112
|
|
|
115
|
-
istek = await self.
|
|
113
|
+
istek = await self.httpx.post(
|
|
116
114
|
url = "https://cehennempass.pw/process_quality_selection.php",
|
|
117
115
|
headers = {
|
|
118
116
|
"Referer" : f"https://cehennempass.pw/download/{video_id}",
|
|
@@ -129,7 +127,7 @@ class HDFilmCehennemi(PluginBase):
|
|
|
129
127
|
"referer" : f"https://cehennempass.pw/download/{video_id}"
|
|
130
128
|
})
|
|
131
129
|
|
|
132
|
-
istek = await self.
|
|
130
|
+
istek = await self.httpx.post(
|
|
133
131
|
url = "https://cehennempass.pw/process_quality_selection.php",
|
|
134
132
|
headers = {
|
|
135
133
|
"Referer" : f"https://cehennempass.pw/download/{video_id}",
|
|
@@ -148,10 +146,9 @@ class HDFilmCehennemi(PluginBase):
|
|
|
148
146
|
|
|
149
147
|
return results
|
|
150
148
|
|
|
151
|
-
#@kekik_cache(ttl=15*60)
|
|
152
149
|
async def invoke_local_source(self, iframe: str, source: str, url: str):
|
|
153
|
-
self.
|
|
154
|
-
istek = await self.
|
|
150
|
+
self.httpx.headers.update({"Referer": f"{self.main_url}/"})
|
|
151
|
+
istek = await self.httpx.get(iframe)
|
|
155
152
|
|
|
156
153
|
try:
|
|
157
154
|
eval_func = re.compile(r'\s*(eval\(function[\s\S].*)\s*').findall(istek.text)[0]
|
|
@@ -179,9 +176,8 @@ class HDFilmCehennemi(PluginBase):
|
|
|
179
176
|
"subtitles" : subtitles
|
|
180
177
|
}]
|
|
181
178
|
|
|
182
|
-
#@kekik_cache(ttl=15*60)
|
|
183
179
|
async def load_links(self, url: str) -> list[dict]:
|
|
184
|
-
istek = await self.
|
|
180
|
+
istek = await self.httpx.get(url)
|
|
185
181
|
secici = Selector(istek.text)
|
|
186
182
|
|
|
187
183
|
results = []
|
|
@@ -192,7 +188,7 @@ class HDFilmCehennemi(PluginBase):
|
|
|
192
188
|
source = f"{link.css('::text').get().replace('(HDrip Xbet)', '').strip()} {lang_code}"
|
|
193
189
|
video_id = link.css("::attr(data-video)").get()
|
|
194
190
|
|
|
195
|
-
api_get = await self.
|
|
191
|
+
api_get = await self.httpx.get(
|
|
196
192
|
url = f"{self.main_url}/video/{video_id}/",
|
|
197
193
|
headers = {
|
|
198
194
|
"Content-Type" : "application/json",
|
|
@@ -216,9 +212,9 @@ class HDFilmCehennemi(PluginBase):
|
|
|
216
212
|
|
|
217
213
|
return results
|
|
218
214
|
|
|
219
|
-
async def play(self,
|
|
220
|
-
extract_result = ExtractResult(
|
|
221
|
-
self.media_handler.title = name
|
|
215
|
+
async def play(self, **kwargs):
|
|
216
|
+
extract_result = ExtractResult(**kwargs)
|
|
217
|
+
self.media_handler.title = kwargs.get("name")
|
|
222
218
|
if self.name not in self.media_handler.title:
|
|
223
219
|
self.media_handler.title = f"{self.name} | {self.media_handler.title}"
|
|
224
220
|
|