KekikStream 0.2.6__py3-none-any.whl → 0.2.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- KekikStream/Core/MediaHandler.py +15 -6
- KekikStream/__init__.py +2 -0
- {KekikStream-0.2.6.dist-info → KekikStream-0.2.7.dist-info}/METADATA +1 -1
- {KekikStream-0.2.6.dist-info → KekikStream-0.2.7.dist-info}/RECORD +8 -8
- {KekikStream-0.2.6.dist-info → KekikStream-0.2.7.dist-info}/LICENSE +0 -0
- {KekikStream-0.2.6.dist-info → KekikStream-0.2.7.dist-info}/WHEEL +0 -0
- {KekikStream-0.2.6.dist-info → KekikStream-0.2.7.dist-info}/entry_points.txt +0 -0
- {KekikStream-0.2.6.dist-info → KekikStream-0.2.7.dist-info}/top_level.txt +0 -0
KekikStream/Core/MediaHandler.py
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
from ..CLI import konsol
|
4
4
|
from .ExtractorModels import ExtractResult
|
5
5
|
import subprocess
|
6
|
+
import os
|
6
7
|
|
7
8
|
class MediaHandler:
|
8
9
|
def __init__(self, title: str = "KekikStream", headers: dict = {"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5)"}):
|
@@ -15,11 +16,13 @@ class MediaHandler:
|
|
15
16
|
self.play_with_mpv(extract_data)
|
16
17
|
return
|
17
18
|
|
18
|
-
vlc_command = ["vlc"]
|
19
|
+
vlc_command = ["vlc", "--quiet"]
|
19
20
|
|
20
21
|
if self.title:
|
21
|
-
vlc_command.
|
22
|
-
|
22
|
+
vlc_command.extend([
|
23
|
+
f"--meta-title={self.title}",
|
24
|
+
f"--input-title-format={self.title}"
|
25
|
+
])
|
23
26
|
|
24
27
|
if "User-Agent" in self.headers:
|
25
28
|
vlc_command.append(f"--http-user-agent={self.headers.get('User-Agent')}")
|
@@ -31,7 +34,10 @@ class MediaHandler:
|
|
31
34
|
vlc_command.append(f"--sub-file={subtitle.url}")
|
32
35
|
|
33
36
|
vlc_command.append(extract_data.url)
|
34
|
-
|
37
|
+
|
38
|
+
with open(os.devnull, "w") as devnull:
|
39
|
+
subprocess.run(vlc_command, stdout=devnull, stderr=devnull, check=True)
|
40
|
+
|
35
41
|
except subprocess.CalledProcessError as e:
|
36
42
|
konsol.print(f"[red]VLC oynatma hatası: {e}[/red]")
|
37
43
|
konsol.print({"title": self.title, "url": extract_data.url, "headers": self.headers})
|
@@ -41,7 +47,7 @@ class MediaHandler:
|
|
41
47
|
|
42
48
|
def play_with_mpv(self, extract_data: ExtractResult):
|
43
49
|
try:
|
44
|
-
mpv_command = ["mpv"]
|
50
|
+
mpv_command = ["mpv", "--really-quiet"]
|
45
51
|
|
46
52
|
if self.title:
|
47
53
|
mpv_command.append(f"--title={self.title}")
|
@@ -59,7 +65,10 @@ class MediaHandler:
|
|
59
65
|
mpv_command.append(f"--sub-file={subtitle.url}")
|
60
66
|
|
61
67
|
mpv_command.append(extract_data.url)
|
62
|
-
|
68
|
+
|
69
|
+
with open(os.devnull, "w") as devnull:
|
70
|
+
subprocess.run(mpv_command, stdout=devnull, stderr=devnull, check=True)
|
71
|
+
|
63
72
|
except subprocess.CalledProcessError as e:
|
64
73
|
konsol.print(f"[red]mpv oynatma hatası: {e}[/red]")
|
65
74
|
konsol.print({"title": self.title, "url": extract_data.url, "headers": self.headers})
|
KekikStream/__init__.py
CHANGED
@@ -171,6 +171,7 @@ class KekikStream:
|
|
171
171
|
|
172
172
|
async def play_media(self, selected_link):
|
173
173
|
if hasattr(self.current_plugin, "play") and callable(self.current_plugin.play):
|
174
|
+
konsol.log(f"[yellow][»] Oynatılıyor : {selected_link}")
|
174
175
|
await self.current_plugin.play(
|
175
176
|
name = self.current_plugin._data[selected_link]["name"],
|
176
177
|
url = selected_link,
|
@@ -199,6 +200,7 @@ class KekikStream:
|
|
199
200
|
|
200
201
|
self.media_manager.set_title(f"{self.media_manager.get_title()} | {selected_data.name}")
|
201
202
|
self.media_manager.set_headers({"Referer": selected_data.referer})
|
203
|
+
konsol.log(f"[yellow][»] Oynatılıyor : {selected_data.url}")
|
202
204
|
self.media_manager.play_media(selected_data)
|
203
205
|
|
204
206
|
async def search_all_plugins(self, query: str):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: KekikStream
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.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,4 +1,4 @@
|
|
1
|
-
KekikStream/__init__.py,sha256=
|
1
|
+
KekikStream/__init__.py,sha256=LILP4dz-FpG8-GyUIsaZKX2t3uhh662U0AttlmgLviI,10137
|
2
2
|
KekikStream/__main__.py,sha256=4U-NO1f0Mts5Mf_QnWhWqRbTsRBy2y2VPlpHyaqG9_I,137
|
3
3
|
KekikStream/requirements.txt,sha256=Kh3E0NzIkAmhVODtIwRVffVOHLiElO6Ua9kIgjbocPE,57
|
4
4
|
KekikStream/CLI/__init__.py,sha256=9YlF135BVff85y492hX4sq2WY2CNqa4BuVzF9hIIaKE,233
|
@@ -6,7 +6,7 @@ KekikStream/CLI/check_update.py,sha256=rOa16bO9sGN-p78yaTRaccFoNfhHWEfDgGZNavpcw
|
|
6
6
|
KekikStream/Core/ExtractorBase.py,sha256=SPXKZPfpzvgkJeMds-USzgpm8-qb0vgZjjLDs58NfGU,1069
|
7
7
|
KekikStream/Core/ExtractorLoader.py,sha256=JovJJr6Clk3xpbRLlh7v_XOl3FGwVXCjTZivec1FktI,2533
|
8
8
|
KekikStream/Core/ExtractorModels.py,sha256=vJeh4qd05K7nbqdCCGU29UkGQpce6jXfsCm7LuDL1G8,454
|
9
|
-
KekikStream/Core/MediaHandler.py,sha256=
|
9
|
+
KekikStream/Core/MediaHandler.py,sha256=TFFngsvWGV-zllYlrb2HTvFSluGYZ8t83vH_8AXAoO4,3247
|
10
10
|
KekikStream/Core/PluginBase.py,sha256=MmhGy0XtbkWxE5SNvsag0M_jNehMxPGtVyZFOKlJPM8,2304
|
11
11
|
KekikStream/Core/PluginLoader.py,sha256=og5EPfnVqrb2kUkeGU65AY0fU43IbiUo_h3ix6ZiINY,2596
|
12
12
|
KekikStream/Core/PluginModels.py,sha256=WWPEz8PpZZ4bLMDJzTE19BsQEJObkyhaYjDkyLaF2Ck,2365
|
@@ -47,9 +47,9 @@ KekikStream/Plugins/JetFilmizle.py,sha256=DPdvTEns8r2MI9pHY8d9EEsUZmlQU7N2C9yr8o
|
|
47
47
|
KekikStream/Plugins/SezonlukDizi.py,sha256=5BZVzQ2eQtymHxO0bzjA2ho4FFNahPFQly4hoHuH8lo,4441
|
48
48
|
KekikStream/Plugins/SineWix.py,sha256=ZtcIwPW0ONGkSjT7Ye8b71RWdHZMUZefX-JTWu6uGSs,4854
|
49
49
|
KekikStream/Plugins/UgurFilm.py,sha256=U7ryNWpjSZJWuYlMGX1Be9uuyiM3SfuI9VJcEiXedNs,2960
|
50
|
-
KekikStream-0.2.
|
51
|
-
KekikStream-0.2.
|
52
|
-
KekikStream-0.2.
|
53
|
-
KekikStream-0.2.
|
54
|
-
KekikStream-0.2.
|
55
|
-
KekikStream-0.2.
|
50
|
+
KekikStream-0.2.7.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
51
|
+
KekikStream-0.2.7.dist-info/METADATA,sha256=ZT9huME1aHbhfr_MShWmLS9fEtGdeQBCofWXjwk2pPw,3959
|
52
|
+
KekikStream-0.2.7.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
53
|
+
KekikStream-0.2.7.dist-info/entry_points.txt,sha256=dFwdiTx8djyehI0Gsz-rZwjAfZzUzoBSrmzRu9ubjJc,50
|
54
|
+
KekikStream-0.2.7.dist-info/top_level.txt,sha256=DNmGJDXl27Drdfobrak8KYLmocW_uznVYFJOzcjUgmY,12
|
55
|
+
KekikStream-0.2.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|