KekikStream 0.7.1__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of KekikStream might be problematic. Click here for more details.
- KekikStream/CLI/__init__.py +4 -0
- KekikStream/CLI/pypi_kontrol.py +30 -0
- KekikStream/Core/ExtractorBase.py +42 -0
- KekikStream/Core/ExtractorLoader.py +82 -0
- KekikStream/Core/ExtractorModels.py +19 -0
- KekikStream/Core/MediaHandler.py +142 -0
- KekikStream/Core/PluginBase.py +80 -0
- KekikStream/Core/PluginLoader.py +61 -0
- KekikStream/Core/PluginModels.py +63 -0
- KekikStream/Core/__init__.py +9 -0
- KekikStream/Extractors/CloseLoad.py +31 -0
- KekikStream/Extractors/ContentX.py +80 -0
- KekikStream/Extractors/FourCX.py +7 -0
- KekikStream/Extractors/FourPichive.py +7 -0
- KekikStream/Extractors/FourPlayRu.py +7 -0
- KekikStream/Extractors/HDStreamAble.py +7 -0
- KekikStream/Extractors/Hotlinger.py +7 -0
- KekikStream/Extractors/MailRu.py +40 -0
- KekikStream/Extractors/MixPlayHD.py +42 -0
- KekikStream/Extractors/Odnoklassniki.py +106 -0
- KekikStream/Extractors/OkRuHTTP.py +7 -0
- KekikStream/Extractors/OkRuSSL.py +7 -0
- KekikStream/Extractors/PeaceMakerst.py +57 -0
- KekikStream/Extractors/Pichive.py +7 -0
- KekikStream/Extractors/PixelDrain.py +28 -0
- KekikStream/Extractors/PlayRu.py +7 -0
- KekikStream/Extractors/RapidVid.py +60 -0
- KekikStream/Extractors/SibNet.py +29 -0
- KekikStream/Extractors/Sobreatsesuyp.py +59 -0
- KekikStream/Extractors/TRsTX.py +67 -0
- KekikStream/Extractors/TauVideo.py +34 -0
- KekikStream/Extractors/TurboImgz.py +25 -0
- KekikStream/Extractors/VidMoly.py +85 -0
- KekikStream/Extractors/VidMoxy.py +50 -0
- KekikStream/Extractors/VideoSeyred.py +47 -0
- KekikStream/Managers/ExtractorManager.py +27 -0
- KekikStream/Managers/MediaManager.py +19 -0
- KekikStream/Managers/PluginManager.py +19 -0
- KekikStream/Managers/UIManager.py +49 -0
- KekikStream/Managers/__init__.py +6 -0
- KekikStream/Plugins/DiziBox.py +143 -0
- KekikStream/Plugins/DiziYou.py +127 -0
- KekikStream/Plugins/Dizilla.py +106 -0
- KekikStream/Plugins/FilmMakinesi.py +65 -0
- KekikStream/Plugins/FullHDFilmizlesene.py +78 -0
- KekikStream/Plugins/JetFilmizle.py +92 -0
- KekikStream/Plugins/RecTV.py +113 -0
- KekikStream/Plugins/SezonlukDizi.py +108 -0
- KekikStream/Plugins/SineWix.py +108 -0
- KekikStream/Plugins/UgurFilm.py +75 -0
- KekikStream/__init__.py +255 -0
- KekikStream/__main__.py +6 -0
- KekikStream/requirements.txt +10 -0
- KekikStream-0.7.1.dist-info/LICENSE +674 -0
- KekikStream-0.7.1.dist-info/METADATA +94 -0
- KekikStream-0.7.1.dist-info/RECORD +59 -0
- KekikStream-0.7.1.dist-info/WHEEL +5 -0
- KekikStream-0.7.1.dist-info/entry_points.txt +2 -0
- KekikStream-0.7.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,106 @@
|
|
1
|
+
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
2
|
+
|
3
|
+
from KekikStream.Core import PluginBase, SearchResult, SeriesInfo, Episode
|
4
|
+
from parsel import Selector
|
5
|
+
from json import loads
|
6
|
+
from urllib.parse import urlparse, urlunparse
|
7
|
+
|
8
|
+
class Dizilla(PluginBase):
|
9
|
+
name = "Dizilla"
|
10
|
+
main_url = "https://dizilla10.com"
|
11
|
+
|
12
|
+
async def search(self, query: str) -> list[SearchResult]:
|
13
|
+
ilk_istek = await self.oturum.get(self.main_url)
|
14
|
+
ilk_secici = Selector(ilk_istek.text)
|
15
|
+
cKey = ilk_secici.css("input[name='cKey']::attr(value)").get()
|
16
|
+
cValue = ilk_secici.css("input[name='cValue']::attr(value)").get()
|
17
|
+
|
18
|
+
self.oturum.headers.update({
|
19
|
+
"Accept" : "application/json, text/javascript, */*; q=0.01",
|
20
|
+
"X-Requested-With" : "XMLHttpRequest",
|
21
|
+
"Referer" : f"{self.main_url}/"
|
22
|
+
})
|
23
|
+
self.oturum.cookies.update({
|
24
|
+
"showAllDaFull" : "true",
|
25
|
+
"PHPSESSID" : ilk_istek.cookies.get("PHPSESSID"),
|
26
|
+
})
|
27
|
+
|
28
|
+
arama_istek = await self.oturum.post(
|
29
|
+
url = f"{self.main_url}/bg/searchcontent",
|
30
|
+
data = {
|
31
|
+
"cKey" : cKey,
|
32
|
+
"cValue" : cValue,
|
33
|
+
"searchterm" : query
|
34
|
+
}
|
35
|
+
)
|
36
|
+
arama_veri = arama_istek.json().get("data", {}).get("result", [])
|
37
|
+
|
38
|
+
return [
|
39
|
+
SearchResult(
|
40
|
+
title = veri.get("object_name"),
|
41
|
+
url = self.fix_url(f"{self.main_url}/{veri.get('used_slug')}"),
|
42
|
+
poster = self.fix_url(veri.get("object_poster_url")),
|
43
|
+
)
|
44
|
+
for veri in arama_veri
|
45
|
+
]
|
46
|
+
|
47
|
+
async def url_base_degis(self, eski_url:str, yeni_base:str) -> str:
|
48
|
+
parsed_url = urlparse(eski_url)
|
49
|
+
parsed_yeni_base = urlparse(yeni_base)
|
50
|
+
yeni_url = parsed_url._replace(
|
51
|
+
scheme = parsed_yeni_base.scheme,
|
52
|
+
netloc = parsed_yeni_base.netloc
|
53
|
+
)
|
54
|
+
|
55
|
+
return urlunparse(yeni_url)
|
56
|
+
|
57
|
+
async def load_item(self, url: str) -> SeriesInfo:
|
58
|
+
istek = await self.oturum.get(url)
|
59
|
+
secici = Selector(istek.text)
|
60
|
+
veri = loads(secici.xpath("//script[@type='application/ld+json']/text()").getall()[-1])
|
61
|
+
|
62
|
+
title = veri.get("name")
|
63
|
+
if alt_title := veri.get("alternateName"):
|
64
|
+
title += f" - ({alt_title})"
|
65
|
+
|
66
|
+
poster = self.fix_url(veri.get("image"))
|
67
|
+
description = veri.get("description")
|
68
|
+
year = veri.get("datePublished").split("-")[0]
|
69
|
+
tags = []
|
70
|
+
rating = veri.get("aggregateRating", {}).get("ratingValue")
|
71
|
+
actors = [actor.get("name") for actor in veri.get("actor", []) if actor.get("name")]
|
72
|
+
|
73
|
+
bolumler = []
|
74
|
+
sezonlar = veri.get("containsSeason") if isinstance(veri.get("containsSeason"), list) else [veri.get("containsSeason")]
|
75
|
+
for sezon in sezonlar:
|
76
|
+
for bolum in sezon.get("episode"):
|
77
|
+
bolumler.append(Episode(
|
78
|
+
season = sezon.get("seasonNumber"),
|
79
|
+
episode = bolum.get("episodeNumber"),
|
80
|
+
title = bolum.get("name"),
|
81
|
+
url = await self.url_base_degis(bolum.get("url"), self.main_url),
|
82
|
+
))
|
83
|
+
|
84
|
+
return SeriesInfo(
|
85
|
+
url = url,
|
86
|
+
poster = poster,
|
87
|
+
title = title,
|
88
|
+
description = description,
|
89
|
+
tags = tags,
|
90
|
+
rating = rating,
|
91
|
+
year = year,
|
92
|
+
episodes = bolumler,
|
93
|
+
actors = actors
|
94
|
+
)
|
95
|
+
|
96
|
+
async def load_links(self, url: str) -> list[str]:
|
97
|
+
istek = await self.oturum.get(url)
|
98
|
+
secici = Selector(istek.text)
|
99
|
+
|
100
|
+
iframes = [self.fix_url(secici.css("div#playerLsDizilla iframe::attr(src)").get())]
|
101
|
+
for alternatif in secici.css("a[href*='player']"):
|
102
|
+
alt_istek = await self.oturum.get(self.fix_url(alternatif.css("::attr(href)").get()))
|
103
|
+
alt_secici = Selector(alt_istek.text)
|
104
|
+
iframes.append(self.fix_url(alt_secici.css("div#playerLsDizilla iframe::attr(src)").get()))
|
105
|
+
|
106
|
+
return iframes
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
2
|
+
|
3
|
+
from KekikStream.Core import PluginBase, SearchResult, MovieInfo
|
4
|
+
from parsel import Selector
|
5
|
+
|
6
|
+
class FilmMakinesi(PluginBase):
|
7
|
+
name = "FilmMakinesi"
|
8
|
+
main_url = "https://filmmakinesi.de"
|
9
|
+
|
10
|
+
async def search(self, query: str) -> list[SearchResult]:
|
11
|
+
istek = await self.oturum.get(f"{self.main_url}/?s={query}")
|
12
|
+
secici = Selector(istek.text)
|
13
|
+
|
14
|
+
results = []
|
15
|
+
for article in secici.css("section#film_posts article"):
|
16
|
+
title = article.css("h6 a::text").get()
|
17
|
+
href = article.css("h6 a::attr(href)").get()
|
18
|
+
poster = article.css("img::attr(data-src)").get() or article.css("img::attr(src)").get()
|
19
|
+
|
20
|
+
if title and href:
|
21
|
+
results.append(
|
22
|
+
SearchResult(
|
23
|
+
title = title.strip(),
|
24
|
+
url = self.fix_url(href.strip()),
|
25
|
+
poster = self.fix_url(poster.strip()) if poster else None,
|
26
|
+
)
|
27
|
+
)
|
28
|
+
|
29
|
+
return results
|
30
|
+
|
31
|
+
async def load_item(self, url: str) -> MovieInfo:
|
32
|
+
istek = await self.oturum.get(url)
|
33
|
+
secici = Selector(istek.text)
|
34
|
+
|
35
|
+
title = secici.css("h1.single_h1 a::text").get().strip()
|
36
|
+
poster = secici.css("[property='og:image']::attr(content)").get().strip()
|
37
|
+
description = secici.css("section#film_single article p:last-of-type::text").get().strip()
|
38
|
+
tags = secici.css("dt:contains('Tür:') + dd a::text").get().strip()
|
39
|
+
rating = secici.css("dt:contains('IMDB Puanı:') + dd::text").get().strip()
|
40
|
+
year = secici.css("dt:contains('Yapım Yılı:') + dd a::text").get().strip()
|
41
|
+
actors = secici.css("dt:contains('Oyuncular:') + dd::text").get().strip()
|
42
|
+
duration = secici.css("dt:contains('Film Süresi:') + dd time::attr(datetime)").get().strip()
|
43
|
+
|
44
|
+
duration_minutes = 0
|
45
|
+
if duration and duration.startswith("PT") and duration.endswith("M"):
|
46
|
+
duration_minutes = int(duration[2:-1])
|
47
|
+
|
48
|
+
return MovieInfo(
|
49
|
+
url = url,
|
50
|
+
poster = self.fix_url(poster),
|
51
|
+
title = title,
|
52
|
+
description = description,
|
53
|
+
tags = tags,
|
54
|
+
rating = rating,
|
55
|
+
year = year,
|
56
|
+
actors = actors,
|
57
|
+
duration = duration_minutes
|
58
|
+
)
|
59
|
+
|
60
|
+
async def load_links(self, url: str) -> list[str]:
|
61
|
+
istek = await self.oturum.get(url)
|
62
|
+
secici = Selector(istek.text)
|
63
|
+
|
64
|
+
iframe_src = secici.css("div.player-div iframe::attr(src)").get() or secici.css("div.player-div iframe::attr(data-src)").get()
|
65
|
+
return [self.fix_url(iframe_src)] if iframe_src else []
|
@@ -0,0 +1,78 @@
|
|
1
|
+
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
2
|
+
|
3
|
+
from KekikStream.CLI import konsol
|
4
|
+
from KekikStream.Core import PluginBase, SearchResult, MovieInfo
|
5
|
+
from parsel import Selector
|
6
|
+
from Kekik.Sifreleme import StringCodec
|
7
|
+
import json, re
|
8
|
+
|
9
|
+
class FullHDFilmizlesene(PluginBase):
|
10
|
+
name = "FullHDFilmizlesene"
|
11
|
+
main_url = "https://www.fullhdfilmizlesene.de"
|
12
|
+
|
13
|
+
async def search(self, query: str) -> list[SearchResult]:
|
14
|
+
istek = await self.oturum.get(f"{self.main_url}/arama/{query}")
|
15
|
+
secici = Selector(istek.text)
|
16
|
+
|
17
|
+
results = []
|
18
|
+
for film in secici.css("li.film"):
|
19
|
+
title = film.css("span.film-title::text").get()
|
20
|
+
href = film.css("a::attr(href)").get()
|
21
|
+
poster = film.css("img::attr(data-src)").get()
|
22
|
+
|
23
|
+
if title and href:
|
24
|
+
results.append(
|
25
|
+
SearchResult(
|
26
|
+
title = title.strip(),
|
27
|
+
url = self.fix_url(href.strip()),
|
28
|
+
poster = self.fix_url(poster.strip()) if poster else None,
|
29
|
+
)
|
30
|
+
)
|
31
|
+
|
32
|
+
return results
|
33
|
+
|
34
|
+
async def load_item(self, url: str) -> MovieInfo:
|
35
|
+
istek = await self.oturum.get(url)
|
36
|
+
secici = Selector(istek.text)
|
37
|
+
|
38
|
+
title = secici.xpath("normalize-space(//div[@class='izle-titles'])").get().strip()
|
39
|
+
poster = secici.css("div img::attr(data-src)").get().strip()
|
40
|
+
description = secici.css("div.ozet-ic p::text").get().strip()
|
41
|
+
tags = secici.css("a[rel='category tag']::text").getall()
|
42
|
+
rating = secici.xpath("normalize-space(//div[@class='puanx-puan'])").get().split()[-1]
|
43
|
+
year = secici.css("div.dd a.category::text").get().strip().split()[0]
|
44
|
+
actors = secici.css("div.film-info ul li:nth-child(2) a > span::text").getall()
|
45
|
+
duration = secici.css("span.sure::text").get("0 Dakika").split()[0]
|
46
|
+
|
47
|
+
return MovieInfo(
|
48
|
+
url = url,
|
49
|
+
poster = self.fix_url(poster),
|
50
|
+
title = title,
|
51
|
+
description = description,
|
52
|
+
tags = tags,
|
53
|
+
rating = rating,
|
54
|
+
year = year,
|
55
|
+
actors = actors,
|
56
|
+
duration = duration
|
57
|
+
)
|
58
|
+
|
59
|
+
async def load_links(self, url: str) -> list[str]:
|
60
|
+
istek = await self.oturum.get(url)
|
61
|
+
secici = Selector(istek.text)
|
62
|
+
|
63
|
+
script = secici.xpath("(//script)[1]").get()
|
64
|
+
scx_data = json.loads(re.findall(r"scx = (.*?);", script)[0])
|
65
|
+
scx_keys = list(scx_data.keys())
|
66
|
+
|
67
|
+
link_list = []
|
68
|
+
for key in scx_keys:
|
69
|
+
t = scx_data[key]["sx"]["t"]
|
70
|
+
if isinstance(t, list):
|
71
|
+
link_list.extend(StringCodec.decode(elem) for elem in t)
|
72
|
+
if isinstance(t, dict):
|
73
|
+
link_list.extend(StringCodec.decode(v) for k, v in t.items())
|
74
|
+
|
75
|
+
return [
|
76
|
+
f"https:{link}" if link.startswith("//") else link
|
77
|
+
for link in link_list
|
78
|
+
]
|
@@ -0,0 +1,92 @@
|
|
1
|
+
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
2
|
+
|
3
|
+
from KekikStream.Core import PluginBase, SearchResult, MovieInfo
|
4
|
+
from parsel import Selector
|
5
|
+
|
6
|
+
class JetFilmizle(PluginBase):
|
7
|
+
name = "JetFilmizle"
|
8
|
+
main_url = "https://jetfilmizle.media"
|
9
|
+
|
10
|
+
async def search(self, query: str) -> list[SearchResult]:
|
11
|
+
istek = await self.oturum.post(
|
12
|
+
url = f"{self.main_url}/filmara.php",
|
13
|
+
data = {"s": query},
|
14
|
+
headers = {"Referer": f"{self.main_url}/"}
|
15
|
+
)
|
16
|
+
secici = Selector(istek.text)
|
17
|
+
|
18
|
+
results = []
|
19
|
+
for article in secici.css("article.movie"):
|
20
|
+
title = self.clean_title(article.css("h2 a::text, h3 a::text, h4 a::text, h5 a::text, h6 a::text").get())
|
21
|
+
href = article.css("a::attr(href)").get()
|
22
|
+
poster = article.css("img::attr(data-src)").get() or article.css("img::attr(src)").get()
|
23
|
+
|
24
|
+
if title and href:
|
25
|
+
results.append(
|
26
|
+
SearchResult(
|
27
|
+
title = title.strip(),
|
28
|
+
url = self.fix_url(href.strip()),
|
29
|
+
poster = self.fix_url(poster.strip()) if poster else None,
|
30
|
+
)
|
31
|
+
)
|
32
|
+
|
33
|
+
return results
|
34
|
+
|
35
|
+
async def load_item(self, url: str) -> MovieInfo:
|
36
|
+
istek = await self.oturum.get(url)
|
37
|
+
secici = Selector(istek.text)
|
38
|
+
|
39
|
+
title = self.clean_title(secici.css("div.movie-exp-title::text").get())
|
40
|
+
poster = secici.css("section.movie-exp img::attr(data-src), section.movie-exp img::attr(src)").get().strip()
|
41
|
+
description = secici.css("section.movie-exp p.aciklama::text").get().strip()
|
42
|
+
tags = secici.css("section.movie-exp div.catss a::text").getall()
|
43
|
+
rating = secici.css("section.movie-exp div.imdb_puan span::text").get().strip()
|
44
|
+
year = secici.xpath("//div[@class='yap' and (contains(., 'Vizyon') or contains(., 'Yapım'))]/text()").get().strip()
|
45
|
+
actors = secici.css("div[itemprop='actor'] a span::text").getall()
|
46
|
+
|
47
|
+
return MovieInfo(
|
48
|
+
url = url,
|
49
|
+
poster = self.fix_url(poster),
|
50
|
+
title = title,
|
51
|
+
description = description,
|
52
|
+
tags = tags,
|
53
|
+
rating = rating,
|
54
|
+
year = year,
|
55
|
+
actors = actors
|
56
|
+
)
|
57
|
+
|
58
|
+
async def load_links(self, url: str) -> list[str]:
|
59
|
+
istek = await self.oturum.get(url)
|
60
|
+
secici = Selector(istek.text)
|
61
|
+
|
62
|
+
iframes = []
|
63
|
+
if main_iframe := secici.css("div#movie iframe::attr(data-src), div#movie iframe::attr(data), div#movie iframe::attr(src)").get():
|
64
|
+
iframes.append(self.fix_url(main_iframe))
|
65
|
+
|
66
|
+
for part in secici.css("div.film_part a"):
|
67
|
+
part_href = part.attrib.get("href")
|
68
|
+
if not part_href:
|
69
|
+
continue
|
70
|
+
|
71
|
+
part_istek = await self.oturum.get(part_href)
|
72
|
+
part_secici = Selector(part_istek.text)
|
73
|
+
|
74
|
+
if iframe := part_secici.css("div#movie iframe::attr(data-src), div#movie iframe::attr(data), div#movie iframe::attr(src)").get():
|
75
|
+
iframes.append(self.fix_url(iframe))
|
76
|
+
else:
|
77
|
+
for link in part_secici.css("div#movie p a"):
|
78
|
+
if download_link := link.attrib.get("href"):
|
79
|
+
iframes.append(self.fix_url(download_link))
|
80
|
+
|
81
|
+
processed_iframes = []
|
82
|
+
for iframe in iframes:
|
83
|
+
if "jetv.xyz" in iframe:
|
84
|
+
jetv_istek = await self.oturum.get(iframe)
|
85
|
+
jetv_secici = Selector(jetv_istek.text)
|
86
|
+
|
87
|
+
if jetv_iframe := jetv_secici.css("iframe::attr(src)").get():
|
88
|
+
processed_iframes.append(self.fix_url(jetv_iframe))
|
89
|
+
else:
|
90
|
+
processed_iframes.append(iframe)
|
91
|
+
|
92
|
+
return processed_iframes
|
@@ -0,0 +1,113 @@
|
|
1
|
+
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
2
|
+
|
3
|
+
from KekikStream.CLI import konsol
|
4
|
+
from KekikStream.Core import PluginBase, SearchResult, MovieInfo, Episode, SeriesInfo
|
5
|
+
from KekikStream.Core.ExtractorModels import ExtractResult, Subtitle
|
6
|
+
from httpx import AsyncClient
|
7
|
+
from json import dumps, loads
|
8
|
+
import re
|
9
|
+
|
10
|
+
|
11
|
+
class RecTV(PluginBase):
|
12
|
+
name = "RecTV"
|
13
|
+
main_url = "https://g.prectv15.sbs"
|
14
|
+
|
15
|
+
sw_key = "4F5A9C3D9A86FA54EACEDDD635185/c3c5bd17-e37b-4b94-a944-8a3688a30452"
|
16
|
+
http2 = AsyncClient(http2=True)
|
17
|
+
http2.headers.update({"user-agent": "okhttp/4.12.0"})
|
18
|
+
|
19
|
+
async def search(self, query: str) -> list[SearchResult]:
|
20
|
+
istek = await self.http2.get(f"{self.main_url}/api/search/{query}/{self.sw_key}/")
|
21
|
+
|
22
|
+
kanallar = istek.json().get("channels")
|
23
|
+
kanallar = sorted(kanallar, key=lambda sozluk: sozluk["title"])
|
24
|
+
|
25
|
+
icerikler = istek.json().get("posters")
|
26
|
+
icerikler = sorted(icerikler, key=lambda sozluk: sozluk["title"])
|
27
|
+
|
28
|
+
return [
|
29
|
+
SearchResult(
|
30
|
+
title = veri.get("title"),
|
31
|
+
url = dumps(veri),
|
32
|
+
poster = self.fix_url(veri.get("image")),
|
33
|
+
)
|
34
|
+
for veri in [*kanallar, *icerikler]
|
35
|
+
]
|
36
|
+
|
37
|
+
async def load_item(self, url: str) -> MovieInfo:
|
38
|
+
veri = loads(url)
|
39
|
+
|
40
|
+
match veri.get("type"):
|
41
|
+
case "serie":
|
42
|
+
dizi_istek = await self.http2.get(f"{self.main_url}/api/season/by/serie/{veri.get('id')}/{self.sw_key}/")
|
43
|
+
dizi_veri = dizi_istek.json()
|
44
|
+
|
45
|
+
episodes = []
|
46
|
+
for season in dizi_veri:
|
47
|
+
for episode in season.get("episodes"):
|
48
|
+
ep_model = Episode(
|
49
|
+
season = int(re.search(r"(\d+)\.S", season.get("title")).group(1)) if re.search(r"(\d+)\.S", season.get("title")) else 1,
|
50
|
+
episode = int(re.search(r"Bölüm (\d+)", episode.get("title")).group(1)) if re.search(r"Bölüm (\d+)", episode.get("title")) else 1,
|
51
|
+
title = episode.get("title"),
|
52
|
+
url = self.fix_url(episode.get("sources")[0].get("url")),
|
53
|
+
)
|
54
|
+
|
55
|
+
episodes.append(ep_model)
|
56
|
+
|
57
|
+
self._data[ep_model.url] = {
|
58
|
+
"name" : f"{veri.get('title')} | {ep_model.season}. Sezon {ep_model.episode}. Bölüm - {ep_model.title}",
|
59
|
+
"referer" : "https://twitter.com/",
|
60
|
+
"subtitles" : []
|
61
|
+
}
|
62
|
+
|
63
|
+
return SeriesInfo(
|
64
|
+
url = url,
|
65
|
+
poster = self.fix_url(veri.get("image")),
|
66
|
+
title = veri.get("title"),
|
67
|
+
description = veri.get("description"),
|
68
|
+
tags = [genre.get("title") for genre in veri.get("genres")] if veri.get("genres") else [],
|
69
|
+
rating = veri.get("imdb") or veri.get("rating"),
|
70
|
+
year = veri.get("year"),
|
71
|
+
actors = [],
|
72
|
+
episodes = episodes
|
73
|
+
)
|
74
|
+
case _:
|
75
|
+
return MovieInfo(
|
76
|
+
url = url,
|
77
|
+
poster = self.fix_url(veri.get("image")),
|
78
|
+
title = veri.get("title"),
|
79
|
+
description = veri.get("description"),
|
80
|
+
tags = [genre.get("title") for genre in veri.get("genres")] if veri.get("genres") else [],
|
81
|
+
rating = veri.get("imdb") or veri.get("rating"),
|
82
|
+
year = veri.get("year"),
|
83
|
+
actors = []
|
84
|
+
)
|
85
|
+
|
86
|
+
async def load_links(self, url: str) -> list[str]:
|
87
|
+
try:
|
88
|
+
veri = loads(url)
|
89
|
+
except Exception:
|
90
|
+
return [url]
|
91
|
+
|
92
|
+
videolar = []
|
93
|
+
if veri.get("sources"):
|
94
|
+
for kaynak in veri.get("sources"):
|
95
|
+
video_link = kaynak.get("url")
|
96
|
+
if "otolinkaff" in video_link:
|
97
|
+
continue
|
98
|
+
|
99
|
+
self._data[video_link] = {
|
100
|
+
"ext_name" : self.name,
|
101
|
+
"name" : veri.get("title"),
|
102
|
+
"referer" : "https://twitter.com/",
|
103
|
+
"subtitles" : []
|
104
|
+
}
|
105
|
+
videolar.append(video_link)
|
106
|
+
|
107
|
+
self.media_handler.headers.update({"User-Agent": "googleusercontent"})
|
108
|
+
return videolar
|
109
|
+
|
110
|
+
async def play(self, name: str, url: str, referer: str, subtitles: list[Subtitle]):
|
111
|
+
extract_result = ExtractResult(name=name, url=url, referer=referer, subtitles=subtitles)
|
112
|
+
self.media_handler.title = name
|
113
|
+
self.media_handler.play_media(extract_result)
|
@@ -0,0 +1,108 @@
|
|
1
|
+
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
2
|
+
|
3
|
+
from KekikStream.Core import PluginBase, SearchResult, SeriesInfo, Episode
|
4
|
+
from parsel import Selector
|
5
|
+
|
6
|
+
class SezonlukDizi(PluginBase):
|
7
|
+
name = "SezonlukDizi"
|
8
|
+
main_url = "https://sezonlukdizi6.com"
|
9
|
+
|
10
|
+
async def search(self, query: str) -> list[SearchResult]:
|
11
|
+
istek = await self.oturum.get(f"{self.main_url}/diziler.asp?adi={query}")
|
12
|
+
secici = Selector(istek.text)
|
13
|
+
|
14
|
+
return [
|
15
|
+
SearchResult(
|
16
|
+
title = afis.css("div.description::text").get().strip(),
|
17
|
+
url = self.fix_url(afis.attrib.get("href")),
|
18
|
+
poster = self.fix_url(afis.css("img::attr(data-src)").get()),
|
19
|
+
)
|
20
|
+
for afis in secici.css("div.afis a.column")
|
21
|
+
]
|
22
|
+
|
23
|
+
async def load_item(self, url: str) -> SeriesInfo:
|
24
|
+
istek = await self.oturum.get(url)
|
25
|
+
secici = Selector(istek.text)
|
26
|
+
|
27
|
+
title = secici.css("div.header::text").get().strip()
|
28
|
+
poster = self.fix_url(secici.css("div.image img::attr(data-src)").get().strip())
|
29
|
+
year = secici.css("div.extra span::text").re_first(r"(\d{4})")
|
30
|
+
description = secici.xpath("normalize-space(//span[@id='tartismayorum-konu'])").get()
|
31
|
+
tags = secici.css("div.labels a[href*='tur']::text").getall()
|
32
|
+
rating = secici.css("div.dizipuani a div::text").re_first(r"[\d.,]+")
|
33
|
+
actors = []
|
34
|
+
|
35
|
+
actors_istek = await self.oturum.get(f"{self.main_url}/oyuncular/{url.split('/')[-1]}")
|
36
|
+
actors_secici = Selector(actors_istek.text)
|
37
|
+
actors = [
|
38
|
+
actor.css("div.header::text").get().strip()
|
39
|
+
for actor in actors_secici.css("div.doubling div.ui")
|
40
|
+
]
|
41
|
+
|
42
|
+
episodes_istek = await self.oturum.get(f"{self.main_url}/bolumler/{url.split('/')[-1]}")
|
43
|
+
episodes_secici = Selector(episodes_istek.text)
|
44
|
+
episodes = []
|
45
|
+
|
46
|
+
for sezon in episodes_secici.css("table.unstackable"):
|
47
|
+
for bolum in sezon.css("tbody tr"):
|
48
|
+
ep_name = bolum.css("td:nth-of-type(4) a::text").get().strip()
|
49
|
+
ep_href = self.fix_url(bolum.css("td:nth-of-type(4) a::attr(href)").get())
|
50
|
+
ep_episode = bolum.css("td:nth-of-type(3) a::text").re_first(r"(\d+)")
|
51
|
+
ep_season = bolum.css("td:nth-of-type(2)::text").re_first(r"(\d+)")
|
52
|
+
|
53
|
+
if ep_name and ep_href:
|
54
|
+
episode = Episode(
|
55
|
+
season = ep_season,
|
56
|
+
episode = ep_episode,
|
57
|
+
title = ep_name,
|
58
|
+
url = ep_href,
|
59
|
+
)
|
60
|
+
episodes.append(episode)
|
61
|
+
|
62
|
+
return SeriesInfo(
|
63
|
+
url = url,
|
64
|
+
poster = poster,
|
65
|
+
title = title,
|
66
|
+
description = description,
|
67
|
+
tags = tags,
|
68
|
+
rating = rating,
|
69
|
+
year = year,
|
70
|
+
episodes = episodes,
|
71
|
+
actors = actors
|
72
|
+
)
|
73
|
+
|
74
|
+
async def load_links(self, url: str) -> list[str]:
|
75
|
+
istek = await self.oturum.get(url)
|
76
|
+
secici = Selector(istek.text)
|
77
|
+
|
78
|
+
bid = secici.css("div#dilsec::attr(data-id)").get()
|
79
|
+
if not bid:
|
80
|
+
return []
|
81
|
+
|
82
|
+
links = []
|
83
|
+
for dil, label in [("1", "AltYazı"), ("0", "Dublaj")]:
|
84
|
+
dil_istek = await self.oturum.post(
|
85
|
+
url = f"{self.main_url}/ajax/dataAlternatif2.asp",
|
86
|
+
headers = {"X-Requested-With": "XMLHttpRequest"},
|
87
|
+
data = {"bid": bid, "dil": dil},
|
88
|
+
)
|
89
|
+
|
90
|
+
try:
|
91
|
+
dil_json = dil_istek.json()
|
92
|
+
except Exception:
|
93
|
+
continue
|
94
|
+
|
95
|
+
if dil_json.get("status") == "success":
|
96
|
+
for veri in dil_json.get("data", []):
|
97
|
+
veri_response = await self.oturum.post(
|
98
|
+
url = f"{self.main_url}/ajax/dataEmbed.asp",
|
99
|
+
headers = {"X-Requested-With": "XMLHttpRequest"},
|
100
|
+
data = {"id": veri.get("id")},
|
101
|
+
)
|
102
|
+
secici = Selector(veri_response.text)
|
103
|
+
|
104
|
+
if iframe := secici.css("iframe::attr(src)").get():
|
105
|
+
video_url = self.fix_url(iframe)
|
106
|
+
links.append(video_url)
|
107
|
+
|
108
|
+
return links
|
@@ -0,0 +1,108 @@
|
|
1
|
+
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
2
|
+
|
3
|
+
from KekikStream.Core import PluginBase, SearchResult, MovieInfo, Episode, SeriesInfo
|
4
|
+
from KekikStream.Core.ExtractorModels import ExtractResult, Subtitle
|
5
|
+
|
6
|
+
class SineWix(PluginBase):
|
7
|
+
name = "SineWix"
|
8
|
+
main_url = "https://ythls.kekikakademi.org"
|
9
|
+
|
10
|
+
async def search(self, query: str) -> list[SearchResult]:
|
11
|
+
istek = await self.oturum.get(f"{self.main_url}/sinewix/search/{query}")
|
12
|
+
|
13
|
+
return [
|
14
|
+
SearchResult(
|
15
|
+
title = veri.get("name"),
|
16
|
+
url = f"?type={veri.get('type')}&id={veri.get('id')}",
|
17
|
+
poster = self.fix_url(veri.get("poster_path")),
|
18
|
+
)
|
19
|
+
for veri in istek.json().get("search")
|
20
|
+
]
|
21
|
+
|
22
|
+
async def load_item(self, url: str) -> MovieInfo:
|
23
|
+
item_type = url.split("?type=")[-1].split("&id=")[0]
|
24
|
+
item_id = url.split("&id=")[-1]
|
25
|
+
|
26
|
+
istek = await self.oturum.get(f"{self.main_url}/sinewix/{item_type}/{item_id}")
|
27
|
+
veri = istek.json()
|
28
|
+
|
29
|
+
match item_type:
|
30
|
+
case "movie":
|
31
|
+
org_title = veri.get("title")
|
32
|
+
alt_title = veri.get("original_name") or ""
|
33
|
+
title = f"{org_title} - {alt_title}" if (alt_title and org_title != alt_title) else org_title
|
34
|
+
|
35
|
+
return MovieInfo(
|
36
|
+
url = self.fix_url(f"{self.main_url}/sinewix/{item_type}/{item_id}"),
|
37
|
+
poster = self.fix_url(veri.get("poster_path")),
|
38
|
+
title = title,
|
39
|
+
description = veri.get("overview"),
|
40
|
+
tags = [genre.get("name") for genre in veri.get("genres")],
|
41
|
+
rating = veri.get("vote_average"),
|
42
|
+
year = veri.get("release_date"),
|
43
|
+
actors = [actor.get("name") for actor in veri.get("casterslist")],
|
44
|
+
)
|
45
|
+
case _:
|
46
|
+
org_title = veri.get("name")
|
47
|
+
alt_title = veri.get("original_name") or ""
|
48
|
+
title = f"{org_title} - {alt_title}" if (alt_title and org_title != alt_title) else org_title
|
49
|
+
|
50
|
+
episodes = []
|
51
|
+
for season in veri.get("seasons"):
|
52
|
+
for episode in season.get("episodes"):
|
53
|
+
if not episode.get("videos"):
|
54
|
+
continue
|
55
|
+
|
56
|
+
ep_model = Episode(
|
57
|
+
season = season.get("season_number"),
|
58
|
+
episode = episode.get("episode_number"),
|
59
|
+
title = episode.get("name"),
|
60
|
+
url = self.fix_url(episode.get("videos")[0].get("link")),
|
61
|
+
)
|
62
|
+
|
63
|
+
episodes.append(ep_model)
|
64
|
+
|
65
|
+
self._data[ep_model.url] = {
|
66
|
+
"name" : f"{ep_model.season}. Sezon {ep_model.episode}. Bölüm - {ep_model.title}",
|
67
|
+
"referer" : self.main_url,
|
68
|
+
"subtitles" : []
|
69
|
+
}
|
70
|
+
|
71
|
+
return SeriesInfo(
|
72
|
+
url = self.fix_url(f"{self.main_url}/sinewix/{item_type}/{item_id}"),
|
73
|
+
poster = self.fix_url(veri.get("poster_path")),
|
74
|
+
title = title,
|
75
|
+
description = veri.get("overview"),
|
76
|
+
tags = [genre.get("name") for genre in veri.get("genres")],
|
77
|
+
rating = veri.get("vote_average"),
|
78
|
+
year = veri.get("first_air_date"),
|
79
|
+
actors = [actor.get("name") for actor in veri.get("casterslist")],
|
80
|
+
episodes = episodes,
|
81
|
+
)
|
82
|
+
|
83
|
+
async def load_links(self, url: str) -> list[str]:
|
84
|
+
if not url.startswith(self.main_url):
|
85
|
+
return [url]
|
86
|
+
|
87
|
+
istek = await self.oturum.get(url)
|
88
|
+
veri = istek.json()
|
89
|
+
|
90
|
+
org_title = veri.get("title")
|
91
|
+
alt_title = veri.get("original_name") or ""
|
92
|
+
title = f"{org_title} - {alt_title}" if (alt_title and org_title != alt_title) else org_title
|
93
|
+
|
94
|
+
for video in veri.get("videos"):
|
95
|
+
video_link = video.get("link").split("_blank\">")[-1]
|
96
|
+
self._data[video_link] = {
|
97
|
+
"name" : f"{self.name} | {title}",
|
98
|
+
"ext_name" : self.name,
|
99
|
+
"referer" : self.main_url,
|
100
|
+
"subtitles" : []
|
101
|
+
}
|
102
|
+
|
103
|
+
return list(self._data.keys())
|
104
|
+
|
105
|
+
async def play(self, name: str, url: str, referer: str, subtitles: list[Subtitle]):
|
106
|
+
extract_result = ExtractResult(name=name, url=url, referer=referer, subtitles=subtitles)
|
107
|
+
self.media_handler.title = name
|
108
|
+
self.media_handler.play_media(extract_result)
|