KekikStream 1.3.7__tar.gz → 1.3.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Plugins/HDFilmCehennemi.py +76 -46
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream.egg-info/PKG-INFO +6 -1
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream.egg-info/SOURCES.txt +2 -10
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream.egg-info/entry_points.txt +1 -1
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream.egg-info/requires.txt +5 -0
- kekikstream-1.3.9/KekikStreamAPI/README.md +9 -0
- kekikstream-1.3.7/KekikStreamAPI/basla.py → kekikstream-1.3.9/KekikStreamAPI/__init__.py +1 -1
- {kekikstream-1.3.7 → kekikstream-1.3.9}/PKG-INFO +6 -1
- {kekikstream-1.3.7 → kekikstream-1.3.9}/setup.py +8 -3
- kekikstream-1.3.7/KekikStreamAPI/.github/FUNDING.yml +0 -5
- kekikstream-1.3.7/KekikStreamAPI/.gitignore +0 -166
- kekikstream-1.3.7/KekikStreamAPI/Dockerfile +0 -34
- kekikstream-1.3.7/KekikStreamAPI/README.md +0 -13
- kekikstream-1.3.7/KekikStreamAPI/Tests/Multi.py +0 -64
- kekikstream-1.3.7/KekikStreamAPI/Tests/Single.py +0 -62
- kekikstream-1.3.7/KekikStreamAPI/docker-compose.yml +0 -20
- kekikstream-1.3.7/KekikStreamAPI/requirements.txt +0 -11
- kekikstream-1.3.7/LICENSE +0 -674
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/CLI/__init__.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/CLI/pypi_kontrol.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Core/Extractor/ExtractorBase.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Core/Extractor/ExtractorLoader.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Core/Extractor/ExtractorManager.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Core/Extractor/ExtractorModels.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Core/Media/MediaHandler.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Core/Media/MediaManager.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Core/Plugin/PluginBase.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Core/Plugin/PluginLoader.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Core/Plugin/PluginManager.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Core/Plugin/PluginModels.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Core/UI/UIManager.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Core/__init__.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/CloseLoad.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/ContentX.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/FourCX.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/FourPichive.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/FourPlayRu.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/HDStreamAble.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/Hotlinger.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/MailRu.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/MixPlayHD.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/MolyStream.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/Odnoklassniki.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/OkRuHTTP.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/OkRuSSL.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/PeaceMakerst.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/Pichive.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/PixelDrain.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/PlayRu.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/RapidVid.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/SibNet.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/Sobreatsesuyp.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/TRsTX.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/TauVideo.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/TurboImgz.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/VidMoly.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/VidMolyMe.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/VidMoxy.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Extractors/VideoSeyred.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Helpers/Unpack.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Plugins/DiziBox.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Plugins/DiziYou.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Plugins/Dizilla.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Plugins/FilmMakinesi.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Plugins/FullHDFilmizlesene.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Plugins/JetFilmizle.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Plugins/RecTV.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Plugins/SezonlukDizi.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Plugins/Shorten.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Plugins/SineWix.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/Plugins/UgurFilm.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/__init__.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/__main__.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream/requirements.txt +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream.egg-info/dependency_links.txt +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStream.egg-info/top_level.txt +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/AYAR.yml +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/CLI/__init__.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Core/Modules/_IP_Log.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Core/Modules/_hata.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Core/Modules/_istek.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Core/Motor.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Core/__init__.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Public/API/v1/Libs/__init__.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Public/API/v1/Routers/__init__.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Public/API/v1/Routers/extract.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Public/API/v1/Routers/get_main_page.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Public/API/v1/Routers/get_plugin.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Public/API/v1/Routers/get_plugin_names.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Public/API/v1/Routers/load_item.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Public/API/v1/Routers/load_links.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Public/API/v1/Routers/search.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Public/Home/Routers/__init__.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Public/Home/Routers/ana_sayfa.py +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Public/Home/Static/CSS/stil.css +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Public/Home/Static/JS/bakalim.js +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Public/Home/Static/favicon.ico +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Public/Home/Templates/_html_taban.html +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Public/Home/Templates/index.html +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/KekikStreamAPI/Settings/__init__.py +0 -0
- {kekikstream-1.3.7/KekikStreamAPI → kekikstream-1.3.9}/LICENSE +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/MANIFEST.in +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/README.md +0 -0
- {kekikstream-1.3.7 → kekikstream-1.3.9}/setup.cfg +0 -0
@@ -1,8 +1,9 @@
|
|
1
1
|
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
2
2
|
|
3
|
-
from KekikStream.Core
|
4
|
-
from parsel
|
5
|
-
import
|
3
|
+
from KekikStream.Core import kekik_cache, PluginBase, MainPageResult, SearchResult, MovieInfo, ExtractResult, Subtitle
|
4
|
+
from parsel import Selector
|
5
|
+
from KekikStream.Helpers.Unpack import unpack
|
6
|
+
import random, string, re, base64
|
6
7
|
|
7
8
|
class HDFilmCehennemi(PluginBase):
|
8
9
|
name = "HDFilmCehennemi"
|
@@ -103,51 +104,12 @@ class HDFilmCehennemi(PluginBase):
|
|
103
104
|
actors = actors,
|
104
105
|
duration = duration_minutes
|
105
106
|
)
|
106
|
-
|
107
|
+
|
107
108
|
def generate_random_cookie(self):
|
108
109
|
return "".join(random.choices(string.ascii_letters + string.digits, k=16))
|
109
110
|
|
110
111
|
@kekik_cache(ttl=15*60)
|
111
|
-
async def
|
112
|
-
self._data.clear()
|
113
|
-
|
114
|
-
istek = await self.httpx.get(url)
|
115
|
-
secici = Selector(istek.text)
|
116
|
-
|
117
|
-
lang_code = secici.css("div.alternative-links::attr(data-lang)").get().upper()
|
118
|
-
buttons = secici.css("div.alternative-links > button")
|
119
|
-
|
120
|
-
link_list = []
|
121
|
-
|
122
|
-
for button in buttons:
|
123
|
-
source = button.css("button.alternative-link::text").get().replace("(HDrip Xbet)", "").strip() + " " + lang_code
|
124
|
-
video_id = button.css("button.alternative-link::attr(data-video)").get()
|
125
|
-
|
126
|
-
istek = await self.httpx.get(
|
127
|
-
url = f"{self.main_url}/video/{video_id}/",
|
128
|
-
headers = {
|
129
|
-
"Referer" : f"{self.main_url}/",
|
130
|
-
"X-Requested-With" : "fetch",
|
131
|
-
"authority" : f"{self.main_url}"
|
132
|
-
}
|
133
|
-
)
|
134
|
-
|
135
|
-
data = istek.json().get("data")
|
136
|
-
secici = Selector(data["html"])
|
137
|
-
iframe_url = secici.css("iframe::attr(src)").get() or secici.css("iframe::attr(data-src)").get()
|
138
|
-
|
139
|
-
if "?rapidrame_id=" in iframe_url:
|
140
|
-
# https://hdfilmcehennemi.mobi/video/embed/uQcCR9nhaNz/?rapidrame_id=j4b4kvc0s24l\
|
141
|
-
video_id = iframe_url.split("=")[1]
|
142
|
-
else:
|
143
|
-
# https://www.hdfilmcehennemi.nl/rplayer/j4b4kvc0s24l/
|
144
|
-
video_id = iframe_url.split("/")[-1]
|
145
|
-
|
146
|
-
# print(video_id)
|
147
|
-
if(video_id):
|
148
|
-
break
|
149
|
-
|
150
|
-
# selected_quality: low
|
112
|
+
async def cehennempass(self, video_id: str):
|
151
113
|
istek = await self.httpx.post(
|
152
114
|
url = "https://cehennempass.pw/process_quality_selection.php",
|
153
115
|
headers = {
|
@@ -160,7 +122,6 @@ class HDFilmCehennemi(PluginBase):
|
|
160
122
|
)
|
161
123
|
|
162
124
|
video_url = istek.json().get("download_link")
|
163
|
-
# print(video_url)
|
164
125
|
|
165
126
|
self._data[self.fix_url(video_url)] = {
|
166
127
|
"ext_name" : f"{self.name} | Düşük Kalite",
|
@@ -169,7 +130,6 @@ class HDFilmCehennemi(PluginBase):
|
|
169
130
|
"subtitles" : []
|
170
131
|
}
|
171
132
|
|
172
|
-
# selected_quality: high
|
173
133
|
istek = await self.httpx.post(
|
174
134
|
url = "https://cehennempass.pw/process_quality_selection.php",
|
175
135
|
headers = {
|
@@ -190,6 +150,76 @@ class HDFilmCehennemi(PluginBase):
|
|
190
150
|
"subtitles" : []
|
191
151
|
}
|
192
152
|
|
153
|
+
return None
|
154
|
+
|
155
|
+
@kekik_cache(ttl=15*60)
|
156
|
+
async def invoke_local_source(self, iframe: str, source: str, video_id: str, url: str):
|
157
|
+
self.httpx.headers.update({"Referer": f"{self.main_url}/"})
|
158
|
+
istek = await self.httpx.get(iframe)
|
159
|
+
|
160
|
+
try:
|
161
|
+
eval_func = re.compile(r'\s*(eval\(function[\s\S].*)\s*').findall(istek.text)[0]
|
162
|
+
except Exception:
|
163
|
+
await self.cehennempass(video_id)
|
164
|
+
return None, None
|
165
|
+
|
166
|
+
unpacked = unpack(eval_func)
|
167
|
+
b64_url = re.search(r'file_link=\"(.*)\"\;', unpacked)[1]
|
168
|
+
video_url = base64.b64decode(b64_url).decode("utf-8")
|
169
|
+
|
170
|
+
subtitles = []
|
171
|
+
try:
|
172
|
+
sub_data = istek.text.split("tracks: [")[1].split("]")[0]
|
173
|
+
for sub in re.findall(r'file":"([^"]+)".*?"language":"([^"]+)"', sub_data, flags=re.DOTALL):
|
174
|
+
subtitles.append(Subtitle(
|
175
|
+
name = sub[1].upper(),
|
176
|
+
url = self.fix_url(sub[0].replace("\\", "")),
|
177
|
+
))
|
178
|
+
except Exception:
|
179
|
+
pass
|
180
|
+
|
181
|
+
data = {
|
182
|
+
"ext_name" : f"{self.name} | {source}",
|
183
|
+
"name" : f"{self.name} | {source}",
|
184
|
+
"referer" : url,
|
185
|
+
"subtitles" : subtitles
|
186
|
+
}
|
187
|
+
|
188
|
+
return video_url, data
|
189
|
+
|
190
|
+
@kekik_cache(ttl=15*60)
|
191
|
+
async def load_links(self, url: str) -> list[str]:
|
192
|
+
istek = await self.httpx.get(url)
|
193
|
+
secici = Selector(istek.text)
|
194
|
+
|
195
|
+
for alternatif in secici.css("div.alternative-links"):
|
196
|
+
lang_code = alternatif.css("::attr(data-lang)").get().upper()
|
197
|
+
|
198
|
+
for link in alternatif.css("button.alternative-link"):
|
199
|
+
source = f"{link.css('::text').get().replace('(HDrip Xbet)', '').strip()} {lang_code}"
|
200
|
+
video_id = link.css("::attr(data-video)").get()
|
201
|
+
|
202
|
+
api_get = await self.httpx.get(
|
203
|
+
url = f"{self.main_url}/video/{video_id}/",
|
204
|
+
headers = {
|
205
|
+
"Content-Type" : "application/json",
|
206
|
+
"X-Requested-With" : "fetch",
|
207
|
+
"Referer" : url,
|
208
|
+
},
|
209
|
+
)
|
210
|
+
|
211
|
+
match = re.search(r'data-src=\\"([^"]+)', api_get.text)
|
212
|
+
iframe = match[1].replace("\\", "") if match else None
|
213
|
+
|
214
|
+
if iframe and "?rapidrame_id=" in iframe:
|
215
|
+
iframe = f"{self.main_url}/playerr/{iframe.split('?rapidrame_id=')[1]}"
|
216
|
+
|
217
|
+
video_url, data = await self.invoke_local_source(iframe, source, video_id, url)
|
218
|
+
if not video_url:
|
219
|
+
continue
|
220
|
+
|
221
|
+
self._data[video_url] = data
|
222
|
+
|
193
223
|
return list(self._data.keys())
|
194
224
|
|
195
225
|
async def play(self, name: str, url: str, referer: str, subtitles: list[Subtitle]):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: KekikStream
|
3
|
-
Version: 1.3.
|
3
|
+
Version: 1.3.9
|
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
|
@@ -22,6 +22,11 @@ Requires-Dist: parsel
|
|
22
22
|
Requires-Dist: pydantic
|
23
23
|
Requires-Dist: InquirerPy
|
24
24
|
Requires-Dist: yt-dlp
|
25
|
+
Requires-Dist: fastapi
|
26
|
+
Requires-Dist: Jinja2
|
27
|
+
Requires-Dist: uvicorn
|
28
|
+
Requires-Dist: user_agents
|
29
|
+
Requires-Dist: PyYAML
|
25
30
|
Dynamic: author
|
26
31
|
Dynamic: author-email
|
27
32
|
Dynamic: classifier
|
@@ -65,15 +65,9 @@ KekikStream/Plugins/SezonlukDizi.py
|
|
65
65
|
KekikStream/Plugins/Shorten.py
|
66
66
|
KekikStream/Plugins/SineWix.py
|
67
67
|
KekikStream/Plugins/UgurFilm.py
|
68
|
-
KekikStreamAPI/.gitignore
|
69
68
|
KekikStreamAPI/AYAR.yml
|
70
|
-
KekikStreamAPI/Dockerfile
|
71
|
-
KekikStreamAPI/LICENSE
|
72
69
|
KekikStreamAPI/README.md
|
73
|
-
KekikStreamAPI/
|
74
|
-
KekikStreamAPI/docker-compose.yml
|
75
|
-
KekikStreamAPI/requirements.txt
|
76
|
-
KekikStreamAPI/.github/FUNDING.yml
|
70
|
+
KekikStreamAPI/__init__.py
|
77
71
|
KekikStreamAPI/CLI/__init__.py
|
78
72
|
KekikStreamAPI/Core/Motor.py
|
79
73
|
KekikStreamAPI/Core/__init__.py
|
@@ -96,6 +90,4 @@ KekikStreamAPI/Public/Home/Static/CSS/stil.css
|
|
96
90
|
KekikStreamAPI/Public/Home/Static/JS/bakalim.js
|
97
91
|
KekikStreamAPI/Public/Home/Templates/_html_taban.html
|
98
92
|
KekikStreamAPI/Public/Home/Templates/index.html
|
99
|
-
KekikStreamAPI/Settings/__init__.py
|
100
|
-
KekikStreamAPI/Tests/Multi.py
|
101
|
-
KekikStreamAPI/Tests/Single.py
|
93
|
+
KekikStreamAPI/Settings/__init__.py
|
@@ -1,4 +1,5 @@
|
|
1
1
|
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
2
|
+
|
2
3
|
from pathlib import Path
|
3
4
|
import os, sys
|
4
5
|
|
@@ -9,7 +10,6 @@ sys.path.append(str(proje_dizin))
|
|
9
10
|
from CLI import cikis_yap, hata_yakala
|
10
11
|
from Core import Motor
|
11
12
|
|
12
|
-
# if __name__ == "__main__":
|
13
13
|
def basla():
|
14
14
|
try:
|
15
15
|
Motor.basla()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: KekikStream
|
3
|
-
Version: 1.3.
|
3
|
+
Version: 1.3.9
|
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
|
@@ -22,6 +22,11 @@ Requires-Dist: parsel
|
|
22
22
|
Requires-Dist: pydantic
|
23
23
|
Requires-Dist: InquirerPy
|
24
24
|
Requires-Dist: yt-dlp
|
25
|
+
Requires-Dist: fastapi
|
26
|
+
Requires-Dist: Jinja2
|
27
|
+
Requires-Dist: uvicorn
|
28
|
+
Requires-Dist: user_agents
|
29
|
+
Requires-Dist: PyYAML
|
25
30
|
Dynamic: author
|
26
31
|
Dynamic: author-email
|
27
32
|
Dynamic: classifier
|
@@ -6,7 +6,7 @@ from io import open
|
|
6
6
|
setup(
|
7
7
|
# ? Genel Bilgiler
|
8
8
|
name = "KekikStream",
|
9
|
-
version = "1.3.
|
9
|
+
version = "1.3.9",
|
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"],
|
@@ -33,14 +33,19 @@ setup(
|
|
33
33
|
"parsel",
|
34
34
|
"pydantic",
|
35
35
|
"InquirerPy",
|
36
|
-
"yt-dlp"
|
36
|
+
"yt-dlp",
|
37
|
+
"fastapi",
|
38
|
+
"Jinja2",
|
39
|
+
"uvicorn",
|
40
|
+
"user_agents",
|
41
|
+
"PyYAML"
|
37
42
|
],
|
38
43
|
|
39
44
|
# ? Konsoldan Çalıştırılabilir
|
40
45
|
entry_points = {
|
41
46
|
"console_scripts": [
|
42
47
|
"KekikStream = KekikStream:basla",
|
43
|
-
"KekikStreamAPI = KekikStreamAPI:basla
|
48
|
+
"KekikStreamAPI = KekikStreamAPI:basla"
|
44
49
|
]
|
45
50
|
},
|
46
51
|
|
@@ -1,166 +0,0 @@
|
|
1
|
-
# Byte-compiled / optimized / DLL files
|
2
|
-
__pycache__/
|
3
|
-
*.py[cod]
|
4
|
-
*$py.class
|
5
|
-
|
6
|
-
# C extensions
|
7
|
-
*.so
|
8
|
-
|
9
|
-
# Distribution / packaging
|
10
|
-
.Python
|
11
|
-
build/
|
12
|
-
develop-eggs/
|
13
|
-
dist/
|
14
|
-
downloads/
|
15
|
-
eggs/
|
16
|
-
.eggs/
|
17
|
-
lib/
|
18
|
-
lib64/
|
19
|
-
parts/
|
20
|
-
sdist/
|
21
|
-
var/
|
22
|
-
wheels/
|
23
|
-
share/python-wheels/
|
24
|
-
*.egg-info/
|
25
|
-
.installed.cfg
|
26
|
-
*.egg
|
27
|
-
MANIFEST
|
28
|
-
|
29
|
-
# PyInstaller
|
30
|
-
# Usually these files are written by a python script from a template
|
31
|
-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
32
|
-
*.manifest
|
33
|
-
*.spec
|
34
|
-
|
35
|
-
# Installer logs
|
36
|
-
pip-log.txt
|
37
|
-
pip-delete-this-directory.txt
|
38
|
-
|
39
|
-
# Unit test / coverage reports
|
40
|
-
htmlcov/
|
41
|
-
.tox/
|
42
|
-
.nox/
|
43
|
-
.coverage
|
44
|
-
.coverage.*
|
45
|
-
.cache
|
46
|
-
nosetests.xml
|
47
|
-
coverage.xml
|
48
|
-
*.cover
|
49
|
-
*.py,cover
|
50
|
-
.hypothesis/
|
51
|
-
.pytest_cache/
|
52
|
-
cover/
|
53
|
-
|
54
|
-
# Translations
|
55
|
-
*.mo
|
56
|
-
*.pot
|
57
|
-
|
58
|
-
# Django stuff:
|
59
|
-
*.log
|
60
|
-
local_settings.py
|
61
|
-
db.sqlite3
|
62
|
-
db.sqlite3-journal
|
63
|
-
|
64
|
-
# Flask stuff:
|
65
|
-
instance/
|
66
|
-
.webassets-cache
|
67
|
-
|
68
|
-
# Scrapy stuff:
|
69
|
-
.scrapy
|
70
|
-
|
71
|
-
# Sphinx documentation
|
72
|
-
docs/_build/
|
73
|
-
|
74
|
-
# PyBuilder
|
75
|
-
.pybuilder/
|
76
|
-
target/
|
77
|
-
|
78
|
-
# Jupyter Notebook
|
79
|
-
.ipynb_checkpoints
|
80
|
-
|
81
|
-
# IPython
|
82
|
-
profile_default/
|
83
|
-
ipython_config.py
|
84
|
-
|
85
|
-
# pyenv
|
86
|
-
# For a library or package, you might want to ignore these files since the code is
|
87
|
-
# intended to run in multiple environments; otherwise, check them in:
|
88
|
-
# .python-version
|
89
|
-
|
90
|
-
# pipenv
|
91
|
-
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
92
|
-
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
93
|
-
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
94
|
-
# install all needed dependencies.
|
95
|
-
#Pipfile.lock
|
96
|
-
|
97
|
-
# poetry
|
98
|
-
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
99
|
-
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
100
|
-
# commonly ignored for libraries.
|
101
|
-
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
102
|
-
#poetry.lock
|
103
|
-
|
104
|
-
# pdm
|
105
|
-
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
106
|
-
#pdm.lock
|
107
|
-
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
108
|
-
# in version control.
|
109
|
-
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
110
|
-
.pdm.toml
|
111
|
-
.pdm-python
|
112
|
-
.pdm-build/
|
113
|
-
|
114
|
-
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
115
|
-
__pypackages__/
|
116
|
-
|
117
|
-
# Celery stuff
|
118
|
-
celerybeat-schedule
|
119
|
-
celerybeat.pid
|
120
|
-
|
121
|
-
# SageMath parsed files
|
122
|
-
*.sage.py
|
123
|
-
|
124
|
-
# Environments
|
125
|
-
.env
|
126
|
-
.venv
|
127
|
-
env/
|
128
|
-
venv/
|
129
|
-
ENV/
|
130
|
-
env.bak/
|
131
|
-
venv.bak/
|
132
|
-
|
133
|
-
# Spyder project settings
|
134
|
-
.spyderproject
|
135
|
-
.spyproject
|
136
|
-
|
137
|
-
# Rope project settings
|
138
|
-
.ropeproject
|
139
|
-
|
140
|
-
# mkdocs documentation
|
141
|
-
/site
|
142
|
-
|
143
|
-
# mypy
|
144
|
-
.mypy_cache/
|
145
|
-
.dmypy.json
|
146
|
-
dmypy.json
|
147
|
-
|
148
|
-
# Pyre type checker
|
149
|
-
.pyre/
|
150
|
-
|
151
|
-
# pytype static type analyzer
|
152
|
-
.pytype/
|
153
|
-
|
154
|
-
# Cython debug symbols
|
155
|
-
cython_debug/
|
156
|
-
|
157
|
-
# PyCharm
|
158
|
-
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
159
|
-
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
160
|
-
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
161
|
-
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
162
|
-
#.idea/
|
163
|
-
|
164
|
-
SineWixDB*
|
165
|
-
cookies.txt
|
166
|
-
youtubeCheck.py
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
2
|
-
|
3
|
-
# * Docker İmajı
|
4
|
-
FROM python:3.11.8-slim-bookworm
|
5
|
-
|
6
|
-
# * Çalışma Alanı
|
7
|
-
WORKDIR /usr/src/KekikStreamAPI
|
8
|
-
COPY ./ /usr/src/KekikStreamAPI
|
9
|
-
|
10
|
-
# ? Sistem Kurulumları ve Gereksiz Dosyaların Silinmesi
|
11
|
-
RUN apt-get update -y && \
|
12
|
-
apt-get install --no-install-recommends -y \
|
13
|
-
# git \
|
14
|
-
# ffmpeg \
|
15
|
-
# opus-tools \
|
16
|
-
locales && \
|
17
|
-
sed -i -e 's/# tr_TR.UTF-8 UTF-8/tr_TR.UTF-8 UTF-8/' /etc/locale.gen && \
|
18
|
-
dpkg-reconfigure --frontend=noninteractive locales && \
|
19
|
-
apt-get clean && \
|
20
|
-
rm -rf /var/lib/apt/lists/*
|
21
|
-
|
22
|
-
# * Python Standart Değişkenler
|
23
|
-
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PYTHONIOENCODING="UTF-8"
|
24
|
-
|
25
|
-
# * Dil ve Bölge
|
26
|
-
ENV LANGUAGE="tr_TR.UTF-8" LANG="tr_TR.UTF-8" LC_ALL="tr_TR.UTF-8" TZ="Europe/Istanbul"
|
27
|
-
|
28
|
-
# * Gerekli Paketlerin Yüklenmesi
|
29
|
-
RUN python3 -m pip install --upgrade pip && \
|
30
|
-
python3 -m pip install --no-cache-dir -U setuptools wheel && \
|
31
|
-
python3 -m pip install --no-cache-dir -Ur requirements.txt
|
32
|
-
|
33
|
-
# * Python Çalıştırılması
|
34
|
-
CMD ["python3", "basla.py"]
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# KekikStreamAPI
|
2
|
-
|
3
|
-
> http://127.0.0.1:3310/api/v1
|
4
|
-
|
5
|
-
| Endpoint | Method | Parametreler | Açıklama | Örnek Kullanım |
|
6
|
-
|---------------------|--------|--------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|
|
7
|
-
| `/get_plugin_names` | GET | - | Tüm eklenti isimlerini getirir. | `/get_plugin_names` |
|
8
|
-
| `/get_plugin` | GET | `plugin`: Eklenti adı | Eklenti bilgilerini getirir (ana URL, favicon, açıklama, kategoriler). | `/get_plugin?plugin=Dizilla` |
|
9
|
-
| `/search` | GET | `plugin`: Eklenti adı<br>`query`: Arama sorgusu | Belirtilen eklenti içinde arama yapar ve sonuçları döner. | `/search?plugin=Dizilla&query=film` |
|
10
|
-
| `/get_main_page` | GET | `plugin`: Eklenti adı<br>`page`: Sayfa numarası<br>`encoded_url`: Kategori URL<br>`encoded_category`: Kategori adı | Belirtilen kategori için ana sayfa içerik listesini döner. | `/get_main_page?plugin=Dizilla&page=1&encoded_url=<kategori_url>&encoded_category=<kategori_adı>` |
|
11
|
-
| `/load_item` | GET | `plugin`: Eklenti adı<br>`encoded_url`: İçerik URL'si | Seçilen içeriğin detay bilgilerini getirir. | `/load_item?plugin=Dizilla&encoded_url=<icerik_url>` |
|
12
|
-
| `/load_links` | GET | `plugin`: Eklenti adı<br>`encoded_url`: İçerik ya da bölüm URL'si | İçeriğe ait yayın/bağlantı listesini döner. | `/load_links?plugin=Dizilla&encoded_url=<icerik_url>` |
|
13
|
-
| `/extract` | GET | `encoded_url`: Bağlantı<br>`encoded_referer`: Referer URL (genellikle eklentinin ana URL'si) | Verilen bağlantıdan oynatılabilir linki ekstrakte eder (gerekliyse). | `/extract?encoded_url=<link>&encoded_referer=<ana_url>` |
|
@@ -1,64 +0,0 @@
|
|
1
|
-
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
2
|
-
|
3
|
-
from Kekik.cli import konsol
|
4
|
-
from asyncio import run
|
5
|
-
from httpx import AsyncClient
|
6
|
-
|
7
|
-
async def main():
|
8
|
-
api = "http://127.0.0.1:3310/api/v1"
|
9
|
-
oturum = AsyncClient(timeout=10)
|
10
|
-
|
11
|
-
plugin_names = await oturum.get(f"{api}/get_plugin_names")
|
12
|
-
plugin_names = plugin_names.json().get("result")
|
13
|
-
|
14
|
-
for plugin_name in plugin_names:
|
15
|
-
plugin = await oturum.get(f"{api}/get_plugin?plugin={plugin_name}")
|
16
|
-
plugin = plugin.json().get("result")
|
17
|
-
|
18
|
-
konsol.log(f"[red]main_url » [purple]{plugin.get('main_url')}")
|
19
|
-
konsol.log(f"[red]favicon » [purple]{plugin.get('favicon')}")
|
20
|
-
konsol.log(f"[red]description » [purple]{plugin.get('description')}")
|
21
|
-
|
22
|
-
for url, category in plugin.get("main_page").items():
|
23
|
-
konsol.log(f"[red]Kategori » [purple]{category:<12} » {url}")
|
24
|
-
icerikler = await oturum.get(f"{api}/get_main_page?plugin={plugin_name}&page=1&encoded_url={url}&encoded_category={category}")
|
25
|
-
icerikler = icerikler.json().get("result")
|
26
|
-
if not icerikler:
|
27
|
-
continue
|
28
|
-
|
29
|
-
for icerik in icerikler:
|
30
|
-
konsol.log(icerik)
|
31
|
-
|
32
|
-
detay = await oturum.get(f"{api}/load_item?plugin={plugin_name}&encoded_url={icerik.get('url')}")
|
33
|
-
detay = detay.json().get("result")
|
34
|
-
konsol.log(detay)
|
35
|
-
|
36
|
-
if detay.get("episodes"):
|
37
|
-
konsol.log(f"[red]Dizi » [purple]{detay.get('title')}")
|
38
|
-
bolum = detay.get("episodes")[0]
|
39
|
-
icerik_url = bolum.get("url")
|
40
|
-
else:
|
41
|
-
konsol.log(f"[red]Film » [purple]{detay.get('title')}")
|
42
|
-
icerik_url = detay.get("url")
|
43
|
-
|
44
|
-
icerikler = await oturum.get(f"{api}/load_links?plugin={plugin_name}&encoded_url={icerik_url}")
|
45
|
-
icerikler = icerikler.json()
|
46
|
-
|
47
|
-
for link in icerikler.get("result"):
|
48
|
-
|
49
|
-
if not icerikler.get("must_extract"):
|
50
|
-
konsol.log(f"[red]icerik_link » [purple]{link.get('url')}")
|
51
|
-
konsol.log(link)
|
52
|
-
else:
|
53
|
-
konsol.log(f"[red]icerik_link » [purple]{link}")
|
54
|
-
sonuc = await oturum.get(f"{api}/extract?encoded_url={link}&encoded_referer={plugin.get('main_url')}")
|
55
|
-
sonuc = sonuc.json().get("result")
|
56
|
-
konsol.log(sonuc)
|
57
|
-
|
58
|
-
|
59
|
-
break
|
60
|
-
break
|
61
|
-
break
|
62
|
-
|
63
|
-
if __name__ == "__main__":
|
64
|
-
run(main())
|
@@ -1,62 +0,0 @@
|
|
1
|
-
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
2
|
-
|
3
|
-
from Kekik.cli import konsol
|
4
|
-
from asyncio import run
|
5
|
-
from httpx import AsyncClient
|
6
|
-
|
7
|
-
async def main():
|
8
|
-
api = "http://127.0.0.1:3310/api/v1"
|
9
|
-
oturum = AsyncClient(timeout=10)
|
10
|
-
|
11
|
-
plugin_name = "Dizilla"
|
12
|
-
|
13
|
-
plugin = await oturum.get(f"{api}/get_plugin?plugin={plugin_name}")
|
14
|
-
plugin = plugin.json().get("result")
|
15
|
-
|
16
|
-
konsol.log(f"[red]main_url » [purple]{plugin.get('main_url')}")
|
17
|
-
konsol.log(f"[red]favicon » [purple]{plugin.get('favicon')}")
|
18
|
-
konsol.log(f"[red]description » [purple]{plugin.get('description')}")
|
19
|
-
|
20
|
-
for url, category in plugin.get("main_page").items():
|
21
|
-
konsol.log(f"[red]Kategori » [purple]{category:<12} » {url}")
|
22
|
-
icerikler = await oturum.get(f"{api}/get_main_page?plugin={plugin_name}&page=1&encoded_url={url}&encoded_category={category}")
|
23
|
-
icerikler = icerikler.json().get("result")
|
24
|
-
if not icerikler:
|
25
|
-
continue
|
26
|
-
|
27
|
-
for icerik in icerikler:
|
28
|
-
konsol.log(icerik)
|
29
|
-
|
30
|
-
detay = await oturum.get(f"{api}/load_item?plugin={plugin_name}&encoded_url={icerik.get('url')}")
|
31
|
-
detay = detay.json().get("result")
|
32
|
-
konsol.log(detay)
|
33
|
-
|
34
|
-
if detay.get("episodes"):
|
35
|
-
konsol.log(f"[red]Dizi » [purple]{detay.get('title')}")
|
36
|
-
bolum = detay.get("episodes")[0]
|
37
|
-
icerik_url = bolum.get("url")
|
38
|
-
else:
|
39
|
-
konsol.log(f"[red]Film » [purple]{detay.get('title')}")
|
40
|
-
icerik_url = detay.get("url")
|
41
|
-
|
42
|
-
icerikler = await oturum.get(f"{api}/load_links?plugin={plugin_name}&encoded_url={icerik_url}")
|
43
|
-
icerikler = icerikler.json()
|
44
|
-
|
45
|
-
for link in icerikler.get("result"):
|
46
|
-
|
47
|
-
if not icerikler.get("must_extract"):
|
48
|
-
konsol.log(f"[red]icerik_link » [purple]{link.get('url')}")
|
49
|
-
konsol.log(link)
|
50
|
-
else:
|
51
|
-
konsol.log(f"[red]icerik_link » [purple]{link}")
|
52
|
-
sonuc = await oturum.get(f"{api}/extract?encoded_url={link}&encoded_referer={plugin.get('main_url')}")
|
53
|
-
sonuc = sonuc.json().get("result")
|
54
|
-
konsol.log(sonuc)
|
55
|
-
|
56
|
-
|
57
|
-
break
|
58
|
-
break
|
59
|
-
break
|
60
|
-
|
61
|
-
if __name__ == "__main__":
|
62
|
-
run(main())
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
2
|
-
|
3
|
-
networks:
|
4
|
-
local:
|
5
|
-
driver: bridge
|
6
|
-
|
7
|
-
services:
|
8
|
-
KekikStreamAPI:
|
9
|
-
container_name : KekikStreamAPI
|
10
|
-
image : kekikstream:latest
|
11
|
-
tty : true
|
12
|
-
restart : always
|
13
|
-
build : .
|
14
|
-
|
15
|
-
volumes:
|
16
|
-
- .:/usr/src/KekikStreamAPI
|
17
|
-
networks:
|
18
|
-
- local
|
19
|
-
ports:
|
20
|
-
- 3310:3310
|