KekikStream 0.8.7__tar.gz → 0.8.8__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Plugins/DiziYou.py +1 -1
- kekikstream-0.8.8/KekikStream/Plugins/Shorten.py +214 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Plugins/SineWix.py +2 -1
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream.egg-info/PKG-INFO +1 -1
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream.egg-info/SOURCES.txt +1 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/PKG-INFO +1 -1
- {kekikstream-0.8.7 → kekikstream-0.8.8}/setup.py +1 -1
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/CLI/__init__.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/CLI/pypi_kontrol.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Core/Extractor/ExtractorBase.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Core/Extractor/ExtractorLoader.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Core/Extractor/ExtractorManager.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Core/Extractor/ExtractorModels.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Core/Media/MediaHandler.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Core/Media/MediaManager.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Core/Plugin/PluginBase.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Core/Plugin/PluginLoader.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Core/Plugin/PluginManager.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Core/Plugin/PluginModels.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Core/UI/UIManager.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Core/__init__.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/CloseLoad.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/ContentX.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/FourCX.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/FourPichive.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/FourPlayRu.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/HDStreamAble.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/Hotlinger.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/MailRu.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/MixPlayHD.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/Odnoklassniki.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/OkRuHTTP.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/OkRuSSL.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/PeaceMakerst.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/Pichive.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/PixelDrain.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/PlayRu.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/RapidVid.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/SibNet.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/Sobreatsesuyp.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/TRsTX.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/TauVideo.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/TurboImgz.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/VidMoly.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/VidMoxy.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Extractors/VideoSeyred.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Plugins/DiziBox.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Plugins/Dizilla.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Plugins/FilmMakinesi.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Plugins/FullHDFilmizlesene.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Plugins/JetFilmizle.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Plugins/RecTV.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Plugins/SezonlukDizi.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/Plugins/UgurFilm.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/__init__.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/__main__.py +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream/requirements.txt +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream.egg-info/dependency_links.txt +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream.egg-info/entry_points.txt +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream.egg-info/requires.txt +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/KekikStream.egg-info/top_level.txt +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/LICENSE +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/MANIFEST.in +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/README.md +0 -0
- {kekikstream-0.8.7 → kekikstream-0.8.8}/setup.cfg +0 -0
@@ -113,8 +113,8 @@ class DiziYou(PluginBase):
|
|
113
113
|
|
114
114
|
for stream in stream_urls:
|
115
115
|
self._data[stream.get("url")] = {
|
116
|
-
"name" : f"{self.name} | {stream.get('dil')} | {item_title}",
|
117
116
|
"ext_name" : f"{self.name} | {stream.get('dil')}",
|
117
|
+
"name" : f"{self.name} | {stream.get('dil')} | {item_title}",
|
118
118
|
"referer" : url,
|
119
119
|
"subtitles" : subtitles
|
120
120
|
}
|
@@ -0,0 +1,214 @@
|
|
1
|
+
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
2
|
+
|
3
|
+
from KekikStream.Core import PluginBase, SearchResult, MovieInfo, Episode, SeriesInfo, ExtractResult, Subtitle
|
4
|
+
|
5
|
+
from Kekik.unicode_tr import unicode_tr
|
6
|
+
import re, json, base64
|
7
|
+
|
8
|
+
async def extract_next_f_push_data(source_code):
|
9
|
+
"""
|
10
|
+
Kaynak kod içerisindeki self.__next_f.push(...) çağrılarını yakalayıp,
|
11
|
+
içlerindeki key-value bilgilerini tek bir sözlükte birleştirir.
|
12
|
+
"""
|
13
|
+
# self.__next_f.push( ... ) içindeki array'i yakalayan regex (DOTALL ile çok satırlı aramalarda)
|
14
|
+
pattern = r"self\.__next_f\.push\(\s*(\[[\s\S]*?\])\s*\)"
|
15
|
+
matches = re.findall(pattern, source_code, re.DOTALL)
|
16
|
+
|
17
|
+
combined = {}
|
18
|
+
|
19
|
+
for match in matches:
|
20
|
+
try:
|
21
|
+
# Yakalanan array'i JSON olarak ayrıştırıyoruz
|
22
|
+
arr = json.loads(match)
|
23
|
+
except json.JSONDecodeError as e:
|
24
|
+
print("JSON ayrıştırma hatası:", e)
|
25
|
+
continue
|
26
|
+
|
27
|
+
# Eğer push çağrısı iki elemanlı ve ikinci eleman string ise işleme alalım.
|
28
|
+
if isinstance(arr, list) and len(arr) == 2 and isinstance(arr[1], str):
|
29
|
+
data_str = arr[1]
|
30
|
+
# String içerisindeki satırları ayırıyoruz
|
31
|
+
for line in data_str.splitlines():
|
32
|
+
line = line.strip()
|
33
|
+
if not line:
|
34
|
+
continue
|
35
|
+
# Beklenen format: key:değer şeklinde
|
36
|
+
if ':' in line:
|
37
|
+
key, value = line.split(':', 1)
|
38
|
+
key = key.strip()
|
39
|
+
value = value.strip()
|
40
|
+
|
41
|
+
# Eğer değer HL[...] veya I[...] gibi bir formatta ise
|
42
|
+
m = re.match(r'^(HL|I)(\[[\s\S]*\])$', value)
|
43
|
+
if m:
|
44
|
+
prefix = m.group(1)
|
45
|
+
json_part = m.group(2)
|
46
|
+
try:
|
47
|
+
parsed_val = json.loads(json_part)
|
48
|
+
value = {prefix: parsed_val}
|
49
|
+
except json.JSONDecodeError:
|
50
|
+
# Ayrıştırılamazsa orijinal değeri bırakıyoruz.
|
51
|
+
pass
|
52
|
+
else:
|
53
|
+
# Değerin tamamı [ ... ] veya { ... } şeklinde ise JSON ayrıştırmayı deniyoruz.
|
54
|
+
if (value.startswith('[') and value.endswith(']')) or (value.startswith('{') and value.endswith('}')):
|
55
|
+
try:
|
56
|
+
value = json.loads(value)
|
57
|
+
except json.JSONDecodeError:
|
58
|
+
pass
|
59
|
+
# Eğer aynı anahtar daha önce varsa üzerine yazar.
|
60
|
+
combined[key] = value
|
61
|
+
# Eğer push çağrısı farklı bir formatta ise (örneğin [0] veya [2, null]),
|
62
|
+
# ihtiyaca göre burada ek işleme yapabilirsiniz.
|
63
|
+
|
64
|
+
return combined
|
65
|
+
|
66
|
+
class Shorten(PluginBase):
|
67
|
+
name = "Shorten"
|
68
|
+
main_url = "http://localhost:8080"
|
69
|
+
token = None
|
70
|
+
|
71
|
+
async def __giris(self):
|
72
|
+
await self.oturum.get("https://shorten.com/tr", follow_redirects=True)
|
73
|
+
|
74
|
+
self.token = await self.oturum.get("https://shorten.com/api/session")
|
75
|
+
self.token = self.token.json().get("token")
|
76
|
+
|
77
|
+
self.oturum.headers.update({"Authorization": f"Bearer {self.token}"})
|
78
|
+
|
79
|
+
async def raw_diziler(self):
|
80
|
+
if not self.token:
|
81
|
+
await self.__giris()
|
82
|
+
|
83
|
+
veriler = await self.oturum.get("https://api.shorten.watch/api/series/you-might-like?page=1&per_page=100")
|
84
|
+
veriler = veriler.json()
|
85
|
+
|
86
|
+
return [
|
87
|
+
{
|
88
|
+
"title" : unicode_tr(veri.get("title")).title(),
|
89
|
+
"slug" : veri.get("slug"),
|
90
|
+
} for veri in veriler.get("data")
|
91
|
+
]
|
92
|
+
|
93
|
+
async def raw_bolumler(self, slug):
|
94
|
+
if not self.token:
|
95
|
+
await self.__giris()
|
96
|
+
|
97
|
+
istek = await self.oturum.get(f"https://shorten.com/tr/series/{slug}", follow_redirects=True)
|
98
|
+
veriler = await extract_next_f_push_data(istek.text)
|
99
|
+
veriler = veriler["8"][-1]["children"][-2][-1]["children"][-1]["data"]
|
100
|
+
return [
|
101
|
+
{
|
102
|
+
"number" : veri.get("number"),
|
103
|
+
"hash" : veri.get("hash")
|
104
|
+
} for veri in veriler.get("episodes")
|
105
|
+
]
|
106
|
+
|
107
|
+
async def bolumler(self, slug):
|
108
|
+
if not self.token:
|
109
|
+
await self.__giris()
|
110
|
+
|
111
|
+
raw_req = await self.raw_bolumler(slug)
|
112
|
+
number, _hash = raw_req[0].values()
|
113
|
+
|
114
|
+
istek = await self.oturum.get(f"https://shorten.com/tr/series/{slug}/episode-{number}-{_hash}", follow_redirects=True)
|
115
|
+
veriler = await extract_next_f_push_data(istek.text)
|
116
|
+
veriler = veriler["b"][3]["children"][1][3]["children"][3]["children"][3]["children"][-1]
|
117
|
+
|
118
|
+
for index, video in enumerate(veriler["videos"]):
|
119
|
+
copy = veriler["data"]["episodes"][index].copy()
|
120
|
+
for key in copy.keys():
|
121
|
+
del veriler["data"]["episodes"][index][key]
|
122
|
+
|
123
|
+
for sub in copy.get("subtitles"):
|
124
|
+
for sil in ["id", "format", "sub_id"]:
|
125
|
+
del sub[sil]
|
126
|
+
sub["url"] = f"https://cdn.shorten.watch/{sub['url']}"
|
127
|
+
|
128
|
+
token = base64.b64decode(video["hashHls"]).decode("utf-8")
|
129
|
+
token = json.loads(token).get("GetPlayInfoToken")
|
130
|
+
veriler["data"]["episodes"][index] = {
|
131
|
+
"number" : copy.get("number"),
|
132
|
+
"image" : copy.get("cover_image"),
|
133
|
+
"hls" : f"https://api.ramsan.tr/shorten/m3u/proxy/?{token}",
|
134
|
+
"subtitles" : copy.get("subtitles")
|
135
|
+
}
|
136
|
+
|
137
|
+
veriler["data"]["episode"] = veriler["data"]["episode"]["total"]
|
138
|
+
del veriler["data"]["is_favorite"]
|
139
|
+
|
140
|
+
veriler["data"]["title"] = unicode_tr(veriler["data"]["title"]).title()
|
141
|
+
|
142
|
+
return veriler["data"]
|
143
|
+
|
144
|
+
async def search(self, query: str) -> list[SearchResult]:
|
145
|
+
veriler = await self.raw_diziler()
|
146
|
+
|
147
|
+
return [
|
148
|
+
SearchResult(
|
149
|
+
title = veri.get("title"),
|
150
|
+
url = veri.get("slug"),
|
151
|
+
poster = "",
|
152
|
+
)
|
153
|
+
for veri in veriler
|
154
|
+
]
|
155
|
+
|
156
|
+
async def load_item(self, url: str) -> MovieInfo:
|
157
|
+
veri = await self.bolumler(url)
|
158
|
+
|
159
|
+
episodes = []
|
160
|
+
for episode in veri.get("episodes"):
|
161
|
+
episode["name"] = veri["title"]
|
162
|
+
|
163
|
+
ep_model = Episode(
|
164
|
+
season = 1,
|
165
|
+
episode = episode.get("number"),
|
166
|
+
title = f"{episode.get('number')}. Bölüm",
|
167
|
+
url = json.dumps(episode),
|
168
|
+
)
|
169
|
+
|
170
|
+
episodes.append(ep_model)
|
171
|
+
subtitles = [
|
172
|
+
Subtitle(
|
173
|
+
name = subtitle.get("language"),
|
174
|
+
url = subtitle.get("url"),
|
175
|
+
)
|
176
|
+
for subtitle in episode.get("subtitles")
|
177
|
+
]
|
178
|
+
|
179
|
+
self._data[ep_model.url] = {
|
180
|
+
"ext_name" : self.name,
|
181
|
+
"name" : f"{ep_model.title}",
|
182
|
+
"referer" : "https://shorten.com/tr",
|
183
|
+
"subtitles" : subtitles
|
184
|
+
}
|
185
|
+
|
186
|
+
return SeriesInfo(
|
187
|
+
url = url,
|
188
|
+
poster = veri.get("image"),
|
189
|
+
title = veri.get("title"),
|
190
|
+
description = veri.get("description"),
|
191
|
+
tags = [genre.get("static_key") for genre in veri.get("categories")],
|
192
|
+
rating = 0,
|
193
|
+
year = 0,
|
194
|
+
actors = [],
|
195
|
+
episodes = episodes,
|
196
|
+
)
|
197
|
+
|
198
|
+
async def load_links(self, url: str) -> list[str]:
|
199
|
+
return [url]
|
200
|
+
|
201
|
+
async def play(self, name: str, url: str, referer: str, subtitles: list[Subtitle]):
|
202
|
+
veri = json.loads(url)
|
203
|
+
name = veri.get("name")
|
204
|
+
url = veri.get("hls")
|
205
|
+
subtitles = [
|
206
|
+
Subtitle(
|
207
|
+
name = subtitle.get("language"),
|
208
|
+
url = subtitle.get("url"),
|
209
|
+
)
|
210
|
+
for subtitle in veri.get("subtitles")
|
211
|
+
]
|
212
|
+
extract_result = ExtractResult(name=name, url=url, referer=referer, subtitles=subtitles)
|
213
|
+
self.media_handler.title = name
|
214
|
+
self.media_handler.play_media(extract_result)
|
@@ -62,6 +62,7 @@ class SineWix(PluginBase):
|
|
62
62
|
episodes.append(ep_model)
|
63
63
|
|
64
64
|
self._data[ep_model.url] = {
|
65
|
+
"ext_name" : self.name,
|
65
66
|
"name" : f"{ep_model.season}. Sezon {ep_model.episode}. Bölüm - {ep_model.title}",
|
66
67
|
"referer" : self.main_url,
|
67
68
|
"subtitles" : []
|
@@ -93,8 +94,8 @@ class SineWix(PluginBase):
|
|
93
94
|
for video in veri.get("videos"):
|
94
95
|
video_link = video.get("link").split("_blank\">")[-1]
|
95
96
|
self._data[video_link] = {
|
96
|
-
"name" : f"{self.name} | {title}",
|
97
97
|
"ext_name" : self.name,
|
98
|
+
"name" : f"{self.name} | {title}",
|
98
99
|
"referer" : self.main_url,
|
99
100
|
"subtitles" : []
|
100
101
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: KekikStream
|
3
|
-
Version: 0.8.
|
3
|
+
Version: 0.8.8
|
4
4
|
Summary: terminal üzerinden medya içeriği aramanızı ve VLC/MPV gibi popüler medya oynatıcılar aracılığıyla doğrudan izlemenizi sağlayan modüler ve genişletilebilir bir bıdı bıdı
|
5
5
|
Home-page: https://github.com/keyiflerolsun/KekikStream
|
6
6
|
Author: keyiflerolsun
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: KekikStream
|
3
|
-
Version: 0.8.
|
3
|
+
Version: 0.8.8
|
4
4
|
Summary: terminal üzerinden medya içeriği aramanızı ve VLC/MPV gibi popüler medya oynatıcılar aracılığıyla doğrudan izlemenizi sağlayan modüler ve genişletilebilir bir bıdı bıdı
|
5
5
|
Home-page: https://github.com/keyiflerolsun/KekikStream
|
6
6
|
Author: keyiflerolsun
|
@@ -6,7 +6,7 @@ from io import open
|
|
6
6
|
setup(
|
7
7
|
# ? Genel Bilgiler
|
8
8
|
name = "KekikStream",
|
9
|
-
version = "0.8.
|
9
|
+
version = "0.8.8",
|
10
10
|
url = "https://github.com/keyiflerolsun/KekikStream",
|
11
11
|
description = "terminal üzerinden medya içeriği aramanızı ve VLC/MPV gibi popüler medya oynatıcılar aracılığıyla doğrudan izlemenizi sağlayan modüler ve genişletilebilir bir bıdı bıdı",
|
12
12
|
keywords = ["KekikStream", "KekikAkademi", "keyiflerolsun"],
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|