mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-05 20:40:09 -08:00
refactor!: change notifier timeout config to seconds
BREAKING CHANGE: change notification timeout from minutes to seconds in config.
This commit is contained in:
@@ -43,7 +43,6 @@
|
||||
|
||||
</details>
|
||||
|
||||
|
||||
## Installation
|
||||
|
||||

|
||||
@@ -210,7 +209,6 @@ The only required external dependency, unless you won't be streaming, is [MPV](h
|
||||
- [syncplay](https://syncplay.pl/) to enable watch together.
|
||||
- [feh](https://github.com/derf/feh) used in manga mode
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
The project offers a featureful command-line interface and MPV interface through the use of python-mpv.
|
||||
@@ -773,7 +771,7 @@ rofi_theme_input =
|
||||
|
||||
rofi_theme_confirm =
|
||||
|
||||
notification_duration = 2
|
||||
notification_duration = 120
|
||||
|
||||
sub_lang = eng
|
||||
|
||||
@@ -814,7 +812,6 @@ format = best[height<=1080]/bestvideo[height<=1080]+bestaudio/best
|
||||
player = mpv
|
||||
```
|
||||
|
||||
|
||||
## Contributing
|
||||
|
||||
pr's are highly welcome
|
||||
|
||||
@@ -30,7 +30,7 @@ def notifier(config: "Config"):
|
||||
|
||||
notified = os.path.join(APP_DATA_DIR, "last_notification.json")
|
||||
anime_image_path = os.path.join(APP_CACHE_DIR, "notification_image")
|
||||
notification_duration = config.notification_duration * 60
|
||||
notification_duration = config.notification_duration
|
||||
notification_image_path = ""
|
||||
|
||||
if not config.user:
|
||||
|
||||
@@ -57,7 +57,7 @@ class Config(object):
|
||||
"icons": "false",
|
||||
"image_previews": "True" if S_PLATFORM != "win32" else "False",
|
||||
"normalize_titles": "True",
|
||||
"notification_duration": "2",
|
||||
"notification_duration": "120",
|
||||
"max_cache_lifetime": "03:00:00",
|
||||
"per_page": "15",
|
||||
"player": "mpv",
|
||||
|
||||
Reference in New Issue
Block a user