mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-12 15:50:01 -08:00
feat: make experimental fzf anilist search disablable lol
This commit is contained in:
@@ -52,6 +52,7 @@ class Config(object):
|
||||
"disable_mpv_popen": "True",
|
||||
"discord": "False",
|
||||
"episode_complete_at": "80",
|
||||
"use_experimental_fzf_anilist_search": "True",
|
||||
"ffmpegthumbnailer_seek_time": "-1",
|
||||
"force_forward_tracking": "true",
|
||||
"force_window": "immediate",
|
||||
@@ -135,6 +136,9 @@ class Config(object):
|
||||
self.episode_complete_at = self.configparser.getint(
|
||||
"stream", "episode_complete_at"
|
||||
)
|
||||
self.use_experimental_fzf_anilist_search = self.configparser.getboolean(
|
||||
"general", "use_experimental_fzf_anilist_search"
|
||||
)
|
||||
self.ffmpegthumbnailer_seek_time = self.configparser.getint(
|
||||
"general", "ffmpegthumbnailer_seek_time"
|
||||
)
|
||||
@@ -483,6 +487,14 @@ mpv_pre_args = {self.mpv_pre_args}
|
||||
# icat is for kitty terminal users only
|
||||
manga_viewer = {self.manga_viewer}
|
||||
|
||||
# a little little something i introduced
|
||||
# remember how in a browser site when you search for an anime it dynamically reloads
|
||||
# after every type
|
||||
# well who says it cant be done in the terminal lol
|
||||
# though its still experimental lol
|
||||
# use this to disable it
|
||||
use_experimental_fzf_anilist_search = {self.use_experimental_fzf_anilist_search}
|
||||
|
||||
[stream]
|
||||
# the quality of the stream [1080,720,480,360]
|
||||
# this option is usually only reliable when:
|
||||
|
||||
@@ -1942,7 +1942,7 @@ def _anilist_search(config: "Config", page=1):
|
||||
# TODO: Add filters and other search features
|
||||
if config.use_rofi:
|
||||
search_term = str(Rofi.ask("Search for"))
|
||||
elif config.use_fzf:
|
||||
elif config.use_fzf and config.use_experimental_fzf_anilist_search:
|
||||
search_term = fzf.search_for_anime()
|
||||
else:
|
||||
search_term = Prompt.ask("[cyan]Search for[/]")
|
||||
|
||||
Reference in New Issue
Block a user