KekikStream 0.1.1__py3-none-any.whl → 0.1.3__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.
@@ -15,6 +15,15 @@ class UIManager:
15
15
  async def select_from_list(message, choices):
16
16
  return await inquirer.select(message=message, choices=choices).execute_async()
17
17
 
18
+ @staticmethod
19
+ async def select_from_fuzzy(message, choices):
20
+ return await inquirer.fuzzy(
21
+ message = message,
22
+ choices = choices,
23
+ validate = lambda result: result in [choice if isinstance(choice, str) else choice["value"] for choice in choices],
24
+ filter = lambda result: result
25
+ ).execute_async()
26
+
18
27
  @staticmethod
19
28
  async def prompt_text(message):
20
29
  return await inquirer.text(message=message).execute_async()
KekikStream/__init__.py CHANGED
@@ -26,7 +26,7 @@ class KekikStream:
26
26
  await self.plugin_manager.close_plugins()
27
27
 
28
28
  async def select_plugin(self):
29
- plugin_name = await self.ui_manager.select_from_list(
29
+ plugin_name = await self.ui_manager.select_from_fuzzy(
30
30
  message = "Bir eklenti seçin:",
31
31
  choices = self.plugin_manager.get_plugin_names()
32
32
  )
@@ -49,7 +49,7 @@ class KekikStream:
49
49
  await self.select_result(results)
50
50
 
51
51
  async def select_result(self, results):
52
- selected_url = await self.ui_manager.select_from_list(
52
+ selected_url = await self.ui_manager.select_from_fuzzy(
53
53
  message = "Bir içerik seçin:",
54
54
  choices = [{"name": res.title, "value": res.url} for res in results]
55
55
  )
@@ -69,7 +69,7 @@ class KekikStream:
69
69
  self.ui_manager.display_media_info(self.current_plugin.name, media_info)
70
70
 
71
71
  if isinstance(media_info, SeriesInfo):
72
- selected_episode = await self.ui_manager.select_from_list(
72
+ selected_episode = await self.ui_manager.select_from_fuzzy(
73
73
  message="Bir bölüm seçin:",
74
74
  choices=[
75
75
  {"name": f"{episode.season}. Sezon {episode.episode}. Bölüm - {episode.title}", "value": episode.url}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: KekikStream
3
- Version: 0.1.1
3
+ Version: 0.1.3
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
@@ -10,7 +10,7 @@ Keywords: KekikStream,KekikAkademi,keyiflerolsun
10
10
  Classifier: Development Status :: 5 - Production/Stable
11
11
  Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
12
12
  Classifier: Programming Language :: Python :: 3
13
- Requires-Python: >=3.8
13
+ Requires-Python: >=3.10
14
14
  Description-Content-Type: text/markdown
15
15
  License-File: LICENSE
16
16
  Requires-Dist: setuptools
@@ -1,4 +1,4 @@
1
- KekikStream/__init__.py,sha256=kZae3M7ad7nX1r-hek5dfek3DImgrTZSbIb1rtCe-rI,6230
1
+ KekikStream/__init__.py,sha256=rG8a-J9z8QQ37B5dEopn4vhK3yzK07M1eAlsmytVbf0,6233
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
@@ -17,15 +17,15 @@ KekikStream/Extractors/VidMoxy.py,sha256=UnVrCEI4XNiONE2aLV9dGUhRqQ9ELJTnYVXyG81
17
17
  KekikStream/Managers/ExtractorManager.py,sha256=4p5VaERx3qIIzvti9gl_khkCWYcVnzUNORmMP-OrQu0,925
18
18
  KekikStream/Managers/MediaManager.py,sha256=F7mkSvAttAaMHRvnDcxnV2K1D_sK644BCSrEaAmMl_U,522
19
19
  KekikStream/Managers/PluginManager.py,sha256=5O19YNCt4P7a6yVzlDvmxfZLA9SX9LxDs5bqqZ4i1rA,566
20
- KekikStream/Managers/UIManager.py,sha256=7C_y3DZhMYxmfE88be5v4DlEk_H8CmBzn4dRHwr5klY,1162
20
+ KekikStream/Managers/UIManager.py,sha256=8paUE-ocnakckuTXwVrbWvEbioDaVVNnb0zIQCyBMsg,1532
21
21
  KekikStream/Managers/__init__.py,sha256=3085I_9Sa2L_Vq6Z-QvYUYn1BapkN4sQqBo8ITZoD_4,251
22
22
  KekikStream/Plugins/FilmMakinesi.py,sha256=g4LRDP5Atn97PqbgnEdm0-wjVdXaJIVk1Ru0F8B66Ws,2902
23
23
  KekikStream/Plugins/FullHDFilmizlesene.py,sha256=HJzHDXHhhMpvXxiD2SjpoZEYs7dmnPymE8EXCSvLKVo,3106
24
24
  KekikStream/Plugins/SineWix.py,sha256=RJxggTrZxBimQHI4ehtJipVeIBpfHy85NW-ixE2iF2k,4762
25
25
  KekikStream/Plugins/UgurFilm.py,sha256=U7ryNWpjSZJWuYlMGX1Be9uuyiM3SfuI9VJcEiXedNs,2960
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,,
26
+ KekikStream-0.1.3.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
27
+ KekikStream-0.1.3.dist-info/METADATA,sha256=hbJtbX9_hXe3GIqxaSyh7EMds2rO2DhVD6RFDmsew4w,3961
28
+ KekikStream-0.1.3.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
29
+ KekikStream-0.1.3.dist-info/entry_points.txt,sha256=dFwdiTx8djyehI0Gsz-rZwjAfZzUzoBSrmzRu9ubjJc,50
30
+ KekikStream-0.1.3.dist-info/top_level.txt,sha256=DNmGJDXl27Drdfobrak8KYLmocW_uznVYFJOzcjUgmY,12
31
+ KekikStream-0.1.3.dist-info/RECORD,,