chore: format

This commit is contained in:
Benexl
2025-07-24 15:04:13 +03:00
parent 8b52a1ef27
commit fcb16a574e
11 changed files with 2503 additions and 47 deletions

2
.github/FUNDING.yml vendored
View File

@@ -3,7 +3,7 @@
github: benexl # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] github: benexl # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username ko_fi: benexl # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username liberapay: # Replace with a single Liberapay username

View File

@@ -22,7 +22,6 @@ This project has no control on the content it is serving, using copyrighted cont
</b> </b>
<br> <br>
<h2>DMCA and Copyright Infrigements</h3> <h2>DMCA and Copyright Infrigements</h3>
@@ -34,7 +33,6 @@ This project has no control on the content it is serving, using copyrighted cont
A browser is a tool, and the maliciousness of the tool is directly based on the user. A browser is a tool, and the maliciousness of the tool is directly based on the user.
</b> </b>
This project uses client-side content access mechanisms. Hence, the copyright infrigements or DMCA in this project's regards are to be forwarded to the associated site by the associated notifier of any such claims. This is one of the main reasons the sites are listed in this project. This project uses client-side content access mechanisms. Hence, the copyright infrigements or DMCA in this project's regards are to be forwarded to the associated site by the associated notifier of any such claims. This is one of the main reasons the sites are listed in this project.
<b>Do not harass the developer. Any personal information about the developer is intentionally not made public. Exploiting such information without consent in regards to this topic will lead to legal actions by the developer themselves.</b> <b>Do not harass the developer. Any personal information about the developer is intentionally not made public. Exploiting such information without consent in regards to this topic will lead to legal actions by the developer themselves.</b>

View File

@@ -813,12 +813,11 @@ player = mpv
``` ```
### Other Terminal Browsers I Made ### Other Terminal Browsers I Made
[yt-x](https://github.com/Benexl/yt-x) - browse youtube and other yt-dlp sites from the terminal [yt-x](https://github.com/Benexl/yt-x) - browse youtube and other yt-dlp sites from the terminal
[lib-x](https://github.com/Benexl/lib-x) - browse your calibre library from the terminal [lib-x](https://github.com/Benexl/lib-x) - browse your calibre library from the terminal
## Contributing ## Contributing
pr's are highly welcome pr's are highly welcome

File diff suppressed because one or more lines are too long

View File

@@ -4,7 +4,6 @@
# This script formats and displays episode information in the FZF preview pane. # This script formats and displays episode information in the FZF preview pane.
# Some values are injected by python those with '{name}' syntax using .replace() # Some values are injected by python those with '{name}' syntax using .replace()
draw_rule draw_rule
echo "{TITLE}" | fold -s -w "$WIDTH" echo "{TITLE}" | fold -s -w "$WIDTH"
@@ -30,4 +29,3 @@ print_kv "Start Date" "{START_DATE}"
print_kv "End Date" "{END_DATE}" print_kv "End Date" "{END_DATE}"
draw_rule draw_rule

View File

@@ -4,7 +4,6 @@
# This script formats and displays the textual information in the FZF preview pane. # This script formats and displays the textual information in the FZF preview pane.
# Some values are injected by python those with '{name}' syntax using .replace() # Some values are injected by python those with '{name}' syntax using .replace()
draw_rule draw_rule
print_kv "Title" "{TITLE}" print_kv "Title" "{TITLE}"

View File

@@ -25,14 +25,17 @@ fetch_anime_for_fzf() {
--header "Accept: application/json" \ --header "Accept: application/json" \
--request POST \ --request POST \
--data "$json_payload" \ --data "$json_payload" \
https://graphql.anilist.co | \ https://graphql.anilist.co |
jq -r '.data.Page.media[]? | select(.title.romaji) | jq -r '.data.Page.media[]? | select(.title.romaji) |
"\(.title.english // .title.romaji) | Score: \(.meanScore // "N/A") | ID: \(.id)"' "\(.title.english // .title.romaji) | Score: \(.meanScore // "N/A") | ID: \(.id)"'
} }
fetch_anime_details() { fetch_anime_details() {
local anime_id local anime_id
anime_id=$(echo "$1" | sed -n 's/.*ID: \([0-9]*\).*/\1/p') anime_id=$(echo "$1" | sed -n 's/.*ID: \([0-9]*\).*/\1/p')
if [ -z "$anime_id" ]; then echo "Select an item to see details..."; return; fi if [ -z "$anime_id" ]; then
echo "Select an item to see details..."
return
fi
local query=' local query='
query ($id: Int) { query ($id: Int) {
@@ -60,7 +63,7 @@ fetch_anime_details() {
--header "Accept: application/json" \ --header "Accept: application/json" \
--request POST \ --request POST \
--data "$json_payload" \ --data "$json_payload" \
https://graphql.anilist.co | \ https://graphql.anilist.co |
jq -r ' jq -r '
.data.Media | .data.Media |
"Title: \(.title.english // .title.romaji)\n" + "Title: \(.title.english // .title.romaji)\n" +