KekikStream 0.1.0__py3-none-any.whl → 0.1.1__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/CLI/__init__.py +2 -1
- KekikStream/CLI/check_update.py +33 -0
- KekikStream/__init__.py +5 -0
- {KekikStream-0.1.0.dist-info → KekikStream-0.1.1.dist-info}/METADATA +1 -1
- {KekikStream-0.1.0.dist-info → KekikStream-0.1.1.dist-info}/RECORD +9 -8
- {KekikStream-0.1.0.dist-info → KekikStream-0.1.1.dist-info}/LICENSE +0 -0
- {KekikStream-0.1.0.dist-info → KekikStream-0.1.1.dist-info}/WHEEL +0 -0
- {KekikStream-0.1.0.dist-info → KekikStream-0.1.1.dist-info}/entry_points.txt +0 -0
- {KekikStream-0.1.0.dist-info → KekikStream-0.1.1.dist-info}/top_level.txt +0 -0
KekikStream/CLI/__init__.py
CHANGED
@@ -1,3 +1,4 @@
|
|
1
1
|
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
2
2
|
|
3
|
-
from Kekik.cli
|
3
|
+
from Kekik.cli import konsol, cikis_yap, hata_salla, log_salla, hata_yakala, bellek_temizle, temizle
|
4
|
+
from .check_update import check_and_update_package
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır.
|
2
|
+
|
3
|
+
from . import konsol
|
4
|
+
from rich.panel import Panel
|
5
|
+
from pkg_resources import get_distribution
|
6
|
+
from requests import get
|
7
|
+
from subprocess import check_call
|
8
|
+
import sys
|
9
|
+
|
10
|
+
def check_and_update_package(package_name: str):
|
11
|
+
"""Paketi kontrol et ve gerekirse güncelle."""
|
12
|
+
try:
|
13
|
+
# Mevcut sürümü al
|
14
|
+
current_version = get_distribution(package_name).version
|
15
|
+
konsol.print(Panel(f"[cyan]Yüklü sürüm:[/cyan] [bold yellow]{current_version}[/bold yellow]"))
|
16
|
+
|
17
|
+
# PyPI'den en son sürümü al
|
18
|
+
response = get(f"https://pypi.org/pypi/{package_name}/json")
|
19
|
+
if response.status_code == 200:
|
20
|
+
latest_version = response.json()["info"]["version"]
|
21
|
+
konsol.print(Panel(f"[cyan]En son sürüm:[/cyan] [bold green]{latest_version}[/bold green]"))
|
22
|
+
|
23
|
+
# Eğer güncel değilse güncelle
|
24
|
+
if current_version != latest_version:
|
25
|
+
konsol.print(f"[bold red]{package_name} güncelleniyor...[/bold red]")
|
26
|
+
check_call([sys.executable, "-m", "pip", "install", "--upgrade", package_name, "--break-system-packages"])
|
27
|
+
konsol.print(f"[bold green]{package_name} güncellendi![/bold green]")
|
28
|
+
else:
|
29
|
+
konsol.print(f"[bold green]{package_name} zaten güncel.[/bold green]")
|
30
|
+
else:
|
31
|
+
konsol.print("[bold red]PyPI'ye erişilemiyor. Güncelleme kontrolü atlanıyor.[/bold red]")
|
32
|
+
except Exception as e:
|
33
|
+
konsol.print(f"[bold red]Güncelleme kontrolü sırasında hata oluştu: {e}[/bold red]")
|
KekikStream/__init__.py
CHANGED
@@ -144,8 +144,13 @@ class KekikStream:
|
|
144
144
|
self.media_manager.play_media(extract_data)
|
145
145
|
|
146
146
|
|
147
|
+
from .CLI import check_and_update_package
|
148
|
+
|
147
149
|
def basla():
|
148
150
|
try:
|
151
|
+
konsol.print("[bold cyan]Güncelleme kontrol ediliyor...[/bold cyan]")
|
152
|
+
check_and_update_package("KekikStream")
|
153
|
+
|
149
154
|
app = KekikStream()
|
150
155
|
run(app.run())
|
151
156
|
cikis_yap(False)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: KekikStream
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.1
|
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,7 +1,8 @@
|
|
1
|
-
KekikStream/__init__.py,sha256=
|
1
|
+
KekikStream/__init__.py,sha256=kZae3M7ad7nX1r-hek5dfek3DImgrTZSbIb1rtCe-rI,6230
|
2
2
|
KekikStream/__main__.py,sha256=4U-NO1f0Mts5Mf_QnWhWqRbTsRBy2y2VPlpHyaqG9_I,137
|
3
3
|
KekikStream/requirements.txt,sha256=Kh3E0NzIkAmhVODtIwRVffVOHLiElO6Ua9kIgjbocPE,57
|
4
|
-
KekikStream/CLI/__init__.py,sha256=
|
4
|
+
KekikStream/CLI/__init__.py,sha256=9YlF135BVff85y492hX4sq2WY2CNqa4BuVzF9hIIaKE,233
|
5
|
+
KekikStream/CLI/check_update.py,sha256=rOa16bO9sGN-p78yaTRaccFoNfhHWEfDgGZNavpcwNI,1642
|
5
6
|
KekikStream/Core/ExtractorBase.py,sha256=SPXKZPfpzvgkJeMds-USzgpm8-qb0vgZjjLDs58NfGU,1069
|
6
7
|
KekikStream/Core/ExtractorLoader.py,sha256=JovJJr6Clk3xpbRLlh7v_XOl3FGwVXCjTZivec1FktI,2533
|
7
8
|
KekikStream/Core/ExtractorModels.py,sha256=vJeh4qd05K7nbqdCCGU29UkGQpce6jXfsCm7LuDL1G8,454
|
@@ -22,9 +23,9 @@ KekikStream/Plugins/FilmMakinesi.py,sha256=g4LRDP5Atn97PqbgnEdm0-wjVdXaJIVk1Ru0F
|
|
22
23
|
KekikStream/Plugins/FullHDFilmizlesene.py,sha256=HJzHDXHhhMpvXxiD2SjpoZEYs7dmnPymE8EXCSvLKVo,3106
|
23
24
|
KekikStream/Plugins/SineWix.py,sha256=RJxggTrZxBimQHI4ehtJipVeIBpfHy85NW-ixE2iF2k,4762
|
24
25
|
KekikStream/Plugins/UgurFilm.py,sha256=U7ryNWpjSZJWuYlMGX1Be9uuyiM3SfuI9VJcEiXedNs,2960
|
25
|
-
KekikStream-0.1.
|
26
|
-
KekikStream-0.1.
|
27
|
-
KekikStream-0.1.
|
28
|
-
KekikStream-0.1.
|
29
|
-
KekikStream-0.1.
|
30
|
-
KekikStream-0.1.
|
26
|
+
KekikStream-0.1.1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
27
|
+
KekikStream-0.1.1.dist-info/METADATA,sha256=797zzUyhvsgwruOjsMM3lWDV-gAwVrMIn2bdl5c9Dek,3960
|
28
|
+
KekikStream-0.1.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
29
|
+
KekikStream-0.1.1.dist-info/entry_points.txt,sha256=dFwdiTx8djyehI0Gsz-rZwjAfZzUzoBSrmzRu9ubjJc,50
|
30
|
+
KekikStream-0.1.1.dist-info/top_level.txt,sha256=DNmGJDXl27Drdfobrak8KYLmocW_uznVYFJOzcjUgmY,12
|
31
|
+
KekikStream-0.1.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|