KekikStream 0.4.1__py3-none-any.whl → 0.4.2__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 +18 -2
- {KekikStream-0.4.1.dist-info → KekikStream-0.4.2.dist-info}/METADATA +1 -1
- {KekikStream-0.4.1.dist-info → KekikStream-0.4.2.dist-info}/RECORD +7 -7
- {KekikStream-0.4.1.dist-info → KekikStream-0.4.2.dist-info}/LICENSE +0 -0
- {KekikStream-0.4.1.dist-info → KekikStream-0.4.2.dist-info}/WHEEL +0 -0
- {KekikStream-0.4.1.dist-info → KekikStream-0.4.2.dist-info}/entry_points.txt +0 -0
- {KekikStream-0.4.1.dist-info → KekikStream-0.4.2.dist-info}/top_level.txt +0 -0
KekikStream/Core/MediaHandler.py
CHANGED
@@ -13,10 +13,12 @@ class MediaHandler:
|
|
13
13
|
self.title = title
|
14
14
|
|
15
15
|
def play_with_vlc(self, extract_data: ExtractResult):
|
16
|
+
if subprocess.check_output(['uname', '-o']).strip() == b'Android':
|
17
|
+
return self.play_with_android_mxplayer(extract_data)
|
18
|
+
|
16
19
|
try:
|
17
20
|
if "Cookie" in self.headers or extract_data.subtitles:
|
18
|
-
self.play_with_mpv(extract_data)
|
19
|
-
return
|
21
|
+
return self.play_with_mpv(extract_data)
|
20
22
|
|
21
23
|
vlc_command = ["vlc", "--quiet"]
|
22
24
|
|
@@ -77,3 +79,17 @@ class MediaHandler:
|
|
77
79
|
except FileNotFoundError:
|
78
80
|
konsol.print("[red]mpv bulunamadı! mpv kurulu olduğundan emin olun.[/red]")
|
79
81
|
konsol.print({"title": self.title, "url": extract_data.url, "headers": self.headers})
|
82
|
+
|
83
|
+
def play_with_android_mxplayer(self, extract_data: ExtractResult):
|
84
|
+
try:
|
85
|
+
android_command = [
|
86
|
+
"am", "start", "-a", "android.intent.action.VIEW",
|
87
|
+
"-d", f"{extract_data.url}",
|
88
|
+
"-n", "com.mxtech.videoplayer.ad/com.mxtech.videoplayer.ad.ActivityScreen"
|
89
|
+
]
|
90
|
+
|
91
|
+
with open(os.devnull, "w") as devnull:
|
92
|
+
subprocess.run(android_command, stdout=devnull, stderr=devnull, check=True)
|
93
|
+
except Exception as hata:
|
94
|
+
konsol.print(f"[red]Android MX Player oynatma hatası: {hata}[/red]")
|
95
|
+
konsol.print({"title": self.title, "url": extract_data.url, "headers": self.headers})
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: KekikStream
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.2
|
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 @@ KekikStream/CLI/pypi_kontrol.py,sha256=MchatOwCWCpFBtgt09yag9Rjal9XFyh2W_oVs2p7S
|
|
6
6
|
KekikStream/Core/ExtractorBase.py,sha256=wmGl-Xiem4s5M7baVOxYLba7UdygCDAXggo6Up8pFJE,1409
|
7
7
|
KekikStream/Core/ExtractorLoader.py,sha256=rrll3F2CyVmx3foa57PG0FocQMrFuMpdlG0Uf0-2Fz4,3915
|
8
8
|
KekikStream/Core/ExtractorModels.py,sha256=huIcPQ5VIRfMx0LcL5SS1u4dldZbHjzHKEdSEtOPlc0,456
|
9
|
-
KekikStream/Core/MediaHandler.py,sha256=
|
9
|
+
KekikStream/Core/MediaHandler.py,sha256=QYGB_q1oiv1Po6WYOgsJndgPXoMLkWRr9x8dC7SXQdg,4161
|
10
10
|
KekikStream/Core/PluginBase.py,sha256=ZQx6adxOKuX50TPN5pxE8oG9FD-ZjPXSHpSiW086QPQ,2479
|
11
11
|
KekikStream/Core/PluginLoader.py,sha256=5HQF8Em1TjvqMBPLKB7M_i2y6zPH6JZao-uekeacoSs,2574
|
12
12
|
KekikStream/Core/PluginModels.py,sha256=WWPEz8PpZZ4bLMDJzTE19BsQEJObkyhaYjDkyLaF2Ck,2365
|
@@ -49,9 +49,9 @@ KekikStream/Plugins/JetFilmizle.py,sha256=FXkMSQtjYoxwIonjRENFa91rC42L_8SYRhjhuS
|
|
49
49
|
KekikStream/Plugins/SezonlukDizi.py,sha256=5BZVzQ2eQtymHxO0bzjA2ho4FFNahPFQly4hoHuH8lo,4441
|
50
50
|
KekikStream/Plugins/SineWix.py,sha256=ZtcIwPW0ONGkSjT7Ye8b71RWdHZMUZefX-JTWu6uGSs,4854
|
51
51
|
KekikStream/Plugins/UgurFilm.py,sha256=yYXee5uxwNnPqFJZ6s6cRkmUyqS3Vv8x-iesPalc4j4,2930
|
52
|
-
KekikStream-0.4.
|
53
|
-
KekikStream-0.4.
|
54
|
-
KekikStream-0.4.
|
55
|
-
KekikStream-0.4.
|
56
|
-
KekikStream-0.4.
|
57
|
-
KekikStream-0.4.
|
52
|
+
KekikStream-0.4.2.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
53
|
+
KekikStream-0.4.2.dist-info/METADATA,sha256=KdG2_4o6hZrdVuFM8Vq6zpIaIEjEpvXFe7ml_h67lXs,3987
|
54
|
+
KekikStream-0.4.2.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
55
|
+
KekikStream-0.4.2.dist-info/entry_points.txt,sha256=dFwdiTx8djyehI0Gsz-rZwjAfZzUzoBSrmzRu9ubjJc,50
|
56
|
+
KekikStream-0.4.2.dist-info/top_level.txt,sha256=DNmGJDXl27Drdfobrak8KYLmocW_uznVYFJOzcjUgmY,12
|
57
|
+
KekikStream-0.4.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|