KekikStream 1.0.5__tar.gz → 1.0.7__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Core/Plugin/PluginModels.py +10 -1
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Plugins/DiziBox.py +1 -1
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Plugins/Dizilla.py +1 -1
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Plugins/RecTV.py +2 -2
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/__init__.py +61 -47
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream.egg-info/PKG-INFO +1 -1
- {kekikstream-1.0.5 → kekikstream-1.0.7}/PKG-INFO +1 -1
- {kekikstream-1.0.5 → kekikstream-1.0.7}/setup.py +1 -1
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/CLI/__init__.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/CLI/pypi_kontrol.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Core/Extractor/ExtractorBase.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Core/Extractor/ExtractorLoader.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Core/Extractor/ExtractorManager.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Core/Extractor/ExtractorModels.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Core/Media/MediaHandler.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Core/Media/MediaManager.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Core/Plugin/PluginBase.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Core/Plugin/PluginLoader.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Core/Plugin/PluginManager.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Core/UI/UIManager.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Core/__init__.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/CloseLoad.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/ContentX.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/FourCX.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/FourPichive.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/FourPlayRu.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/HDStreamAble.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/Hotlinger.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/MailRu.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/MixPlayHD.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/MolyStream.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/Odnoklassniki.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/OkRuHTTP.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/OkRuSSL.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/PeaceMakerst.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/Pichive.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/PixelDrain.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/PlayRu.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/RapidVid.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/SibNet.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/Sobreatsesuyp.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/TRsTX.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/TauVideo.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/TurboImgz.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/VidMoly.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/VidMolyMe.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/VidMoxy.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Extractors/VideoSeyred.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Plugins/DiziYou.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Plugins/FilmMakinesi.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Plugins/FullHDFilmizlesene.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Plugins/JetFilmizle.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Plugins/SezonlukDizi.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Plugins/Shorten.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Plugins/SineWix.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/Plugins/UgurFilm.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/__main__.py +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream/requirements.txt +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream.egg-info/SOURCES.txt +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream.egg-info/dependency_links.txt +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream.egg-info/entry_points.txt +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream.egg-info/requires.txt +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/KekikStream.egg-info/top_level.txt +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/LICENSE +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/MANIFEST.in +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/README.md +0 -0
- {kekikstream-1.0.5 → kekikstream-1.0.7}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
2
2
|
|
3
|
-
from pydantic import BaseModel, field_validator
|
3
|
+
from pydantic import BaseModel, field_validator, model_validator
|
4
4
|
from typing import List, Optional
|
5
5
|
|
6
6
|
|
@@ -40,6 +40,15 @@ class Episode(BaseModel):
|
|
40
40
|
title : Optional[str] = None
|
41
41
|
url : Optional[str] = None
|
42
42
|
|
43
|
+
@model_validator(mode="after")
|
44
|
+
def check_title(self) -> "Episode":
|
45
|
+
if not self.title:
|
46
|
+
self.title = ""
|
47
|
+
|
48
|
+
if any(keyword in self.title.lower() for keyword in ["bölüm", "sezon", "episode"]):
|
49
|
+
self.title = ""
|
50
|
+
|
51
|
+
return self
|
43
52
|
|
44
53
|
class SeriesInfo(BaseModel):
|
45
54
|
url : Optional[str] = None
|
@@ -9,7 +9,7 @@ import re
|
|
9
9
|
|
10
10
|
class RecTV(PluginBase):
|
11
11
|
name = "RecTV"
|
12
|
-
main_url = "https://
|
12
|
+
main_url = "https://c.prectv30.sbs"
|
13
13
|
|
14
14
|
sw_key = "4F5A9C3D9A86FA54EACEDDD635185/c3c5bd17-e37b-4b94-a944-8a3688a30452"
|
15
15
|
http2 = AsyncClient(http2=True)
|
@@ -50,7 +50,7 @@ class RecTV(PluginBase):
|
|
50
50
|
ep_model = Episode(
|
51
51
|
season = int(re.search(r"(\d+)\.S", season.get("title")).group(1)) if re.search(r"(\d+)\.S", season.get("title")) else 1,
|
52
52
|
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,
|
53
|
-
title = "",
|
53
|
+
title = episode.get("title"),
|
54
54
|
url = self.fix_url(episode.get("sources")[0].get("url")),
|
55
55
|
)
|
56
56
|
|
@@ -18,6 +18,13 @@ class KekikStream:
|
|
18
18
|
self.secilen_sonuc = None
|
19
19
|
self.dizi = False
|
20
20
|
|
21
|
+
def _temizle_ve_baslik_goster(self, baslik: str):
|
22
|
+
"""
|
23
|
+
Konsolu temizler ve verilen başlıkla bir kural (separator) gösterir.
|
24
|
+
"""
|
25
|
+
self.arayuz_yonetici.clear_console()
|
26
|
+
konsol.rule(baslik)
|
27
|
+
|
21
28
|
async def baslat(self):
|
22
29
|
"""
|
23
30
|
Uygulamayı başlatır: konsolu temizler, başlığı gösterir ve eklenti seçimiyle devam eder.
|
@@ -33,12 +40,12 @@ class KekikStream:
|
|
33
40
|
# Program kapanırken tüm eklentileri kapat
|
34
41
|
await self.eklentiler_yonetici.close_plugins()
|
35
42
|
|
36
|
-
def
|
37
|
-
""
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
43
|
+
async def bi_bolum_daha(self):
|
44
|
+
self._temizle_ve_baslik_goster(f"[bold cyan]{self.suanki_eklenti.name} » Bi Bölüm Daha?[/bold cyan]")
|
45
|
+
return await self.sonuc_detaylari_goster(self.secilen_sonuc)
|
46
|
+
|
47
|
+
async def icerik_bitti(self):
|
48
|
+
return await self.bi_bolum_daha() if self.dizi else await self.baslat()
|
42
49
|
|
43
50
|
async def sonuc_bulunamadi(self):
|
44
51
|
"""
|
@@ -168,7 +175,7 @@ class KekikStream:
|
|
168
175
|
choices = secenekler
|
169
176
|
)
|
170
177
|
|
171
|
-
async def
|
178
|
+
async def __medya_bilgisi_yukle(self, url: str, deneme: int = 3):
|
172
179
|
"""
|
173
180
|
Belirtilen URL için medya bilgilerini, belirlenen deneme sayısı kadar yüklemeye çalışır.
|
174
181
|
"""
|
@@ -194,7 +201,7 @@ class KekikStream:
|
|
194
201
|
else:
|
195
202
|
url = secilen_sonuc
|
196
203
|
|
197
|
-
medya_bilgi = await self.
|
204
|
+
medya_bilgi = await self.__medya_bilgisi_yukle(url)
|
198
205
|
if not medya_bilgi:
|
199
206
|
return await self.sonuc_bulunamadi()
|
200
207
|
|
@@ -238,22 +245,19 @@ class KekikStream:
|
|
238
245
|
konsol.print("[bold red]Hiçbir bağlantı bulunamadı![/bold red]")
|
239
246
|
return await self.sonuc_bulunamadi()
|
240
247
|
|
248
|
+
# Doğrudan oynatma seçeneği
|
249
|
+
if hasattr(self.suanki_eklenti, "play") and callable(getattr(self.suanki_eklenti, "play", None)):
|
250
|
+
return await self.direkt_oynat(baglantilar)
|
251
|
+
|
241
252
|
# Bağlantıları çıkarıcılarla eşleştir
|
242
253
|
haritalama = self.cikaricilar_yonetici.map_links_to_extractors(baglantilar)
|
243
|
-
play_fonksiyonu_var = hasattr(self.suanki_eklenti, "play") and callable(getattr(self.suanki_eklenti, "play", None))
|
244
|
-
# ! DEBUG
|
245
|
-
# konsol.print(baglantilar)
|
246
254
|
|
247
255
|
# Uygun çıkarıcı kontrolü
|
248
|
-
if not haritalama
|
256
|
+
if not haritalama:
|
249
257
|
konsol.print("[bold red]Hiçbir Extractor bulunamadı![/bold red]")
|
250
258
|
konsol.print(baglantilar)
|
251
259
|
return await self.sonuc_bulunamadi()
|
252
260
|
|
253
|
-
# Doğrudan oynatma seçeneği
|
254
|
-
if not haritalama:
|
255
|
-
return await self.direkt_oynat(baglantilar)
|
256
|
-
|
257
261
|
# Kullanıcı seçenekleri
|
258
262
|
secim = await self.arayuz_yonetici.select_from_list(
|
259
263
|
message = "Ne yapmak istersiniz?",
|
@@ -267,7 +271,7 @@ class KekikStream:
|
|
267
271
|
choices = [{"name": cikarici_adi, "value": link} for link, cikarici_adi in haritalama.items()]
|
268
272
|
)
|
269
273
|
if secilen_link:
|
270
|
-
await self.
|
274
|
+
await self.extractor_ile_oynat(secilen_link)
|
271
275
|
|
272
276
|
case "Tüm Eklentilerde Ara":
|
273
277
|
await self.tum_eklentilerde_arama()
|
@@ -286,28 +290,23 @@ class KekikStream:
|
|
286
290
|
for key, value in self.suanki_eklenti._data.items() if key in baglantilar
|
287
291
|
]
|
288
292
|
)
|
289
|
-
if secilen_link:
|
290
|
-
await self.
|
293
|
+
if not secilen_link:
|
294
|
+
return await self.icerik_bitti()
|
295
|
+
|
296
|
+
data = self.suanki_eklenti._data.get(secilen_link, {})
|
297
|
+
await self.suanki_eklenti.play(
|
298
|
+
name = data.get("name"),
|
299
|
+
url = secilen_link,
|
300
|
+
referer = data.get("referer"),
|
301
|
+
subtitles = data.get("subtitles")
|
302
|
+
)
|
291
303
|
|
292
|
-
|
293
|
-
self._temizle_ve_baslik_goster(f"[bold cyan]{self.suanki_eklenti.name} » Bi Bölüm Daha?[/bold cyan]")
|
294
|
-
return await self.sonuc_detaylari_goster(self.secilen_sonuc)
|
304
|
+
return await self.icerik_bitti()
|
295
305
|
|
296
|
-
async def
|
306
|
+
async def extractor_ile_oynat(self, secilen_link: str):
|
297
307
|
"""
|
298
308
|
Seçilen bağlantıya göre medya oynatma işlemini gerçekleştirir.
|
299
309
|
"""
|
300
|
-
if hasattr(self.suanki_eklenti, "play") and callable(self.suanki_eklenti.play):
|
301
|
-
data = self.suanki_eklenti._data.get(secilen_link, {})
|
302
|
-
|
303
|
-
await self.suanki_eklenti.play(
|
304
|
-
name = data.get("name"),
|
305
|
-
url = secilen_link,
|
306
|
-
referer = data.get("referer"),
|
307
|
-
subtitles = data.get("subtitles")
|
308
|
-
)
|
309
|
-
return await self.bi_bolum_daha() if self.dizi else await self.baslat()
|
310
|
-
|
311
310
|
# Uygun çıkarıcıyı bul
|
312
311
|
cikarici: ExtractorBase = self.cikaricilar_yonetici.find_extractor(secilen_link)
|
313
312
|
if not cikarici:
|
@@ -320,25 +319,40 @@ class KekikStream:
|
|
320
319
|
konsol.print(f"[bold red]{cikarici.name} » hata oluştu: {hata}[/bold red]")
|
321
320
|
return await self.sonuc_bulunamadi()
|
322
321
|
|
323
|
-
|
322
|
+
secilen_data = await self.__baglanti_secimi_yap(extract_data)
|
323
|
+
if not secilen_data:
|
324
|
+
return
|
325
|
+
|
326
|
+
self.__medya_ayarla(secilen_data)
|
327
|
+
self.medya_yonetici.play_media(secilen_data)
|
328
|
+
|
329
|
+
await self.icerik_bitti()
|
330
|
+
|
331
|
+
async def __baglanti_secimi_yap(self, extract_data):
|
332
|
+
"""
|
333
|
+
Birden fazla bağlantı varsa seçim yapar.
|
334
|
+
"""
|
324
335
|
if isinstance(extract_data, list):
|
325
|
-
|
336
|
+
return await self.arayuz_yonetici.select_from_list(
|
326
337
|
message = "Birden fazla bağlantı bulundu, lütfen birini seçin:",
|
327
338
|
choices = [{"name": data.name, "value": data} for data in extract_data]
|
328
339
|
)
|
329
|
-
|
330
|
-
secilen_data = extract_data
|
340
|
+
return extract_data
|
331
341
|
|
332
|
-
|
333
|
-
|
334
|
-
|
342
|
+
def __medya_ayarla(self, secilen_data):
|
343
|
+
"""
|
344
|
+
Medya bilgilerini ayarlar.
|
345
|
+
"""
|
346
|
+
self.medya_yonetici.set_headers(secilen_data.headers)
|
335
347
|
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
self.medya_yonetici.
|
340
|
-
|
341
|
-
|
348
|
+
if secilen_data.referer and not secilen_data.headers.get("Referer"):
|
349
|
+
self.medya_yonetici.set_headers({"Referer": secilen_data.referer})
|
350
|
+
|
351
|
+
if self.suanki_eklenti.name not in self.medya_yonetici.get_title():
|
352
|
+
self.medya_yonetici.set_title(f"{self.suanki_eklenti.name} | {self.medya_yonetici.get_title()}")
|
353
|
+
|
354
|
+
if secilen_data.name not in self.medya_yonetici.get_title():
|
355
|
+
self.medya_yonetici.set_title(f"{self.medya_yonetici.get_title()} | {secilen_data.name}")
|
342
356
|
|
343
357
|
def basla():
|
344
358
|
try:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: KekikStream
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.7
|
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: 1.0.
|
3
|
+
Version: 1.0.7
|
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 = "1.0.
|
9
|
+
version = "1.0.7",
|
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
|
File without changes
|