mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-11-22 03:19:53 -08:00
Compare commits
No commits in common. "89028758064b7fb9af2d2025486a168318e24638" and "ce2004e09c73b5b0f9196b9ad0cbcbf4553a51cb" have entirely different histories.
8902875806
...
ce2004e09c
10
ani-cli
10
ani-cli
@ -387,10 +387,8 @@ find_media() {
|
|||||||
dotdotslash="${inp%/*}"
|
dotdotslash="${inp%/*}"
|
||||||
if [ -z "$dotdotslash" ]; then
|
if [ -z "$dotdotslash" ]; then
|
||||||
find_media "/"
|
find_media "/"
|
||||||
insert_history "directory" "/"
|
|
||||||
else
|
else
|
||||||
find_media "$dotdotslash"
|
find_media "$dotdotslash"
|
||||||
insert_history "directory" "$dotdotslash"
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
Quit)
|
Quit)
|
||||||
@ -400,7 +398,7 @@ find_media() {
|
|||||||
if [ ! -d "$inp/$selection" ] && [ ! -f "$inp/$selection" ]; then
|
if [ ! -d "$inp/$selection" ] && [ ! -f "$inp/$selection" ]; then
|
||||||
return 1
|
return 1
|
||||||
else
|
else
|
||||||
insert_history "directory" "$inp/$selection"
|
insert_history "directory" "$inp/$selection" &
|
||||||
if [ "$inp" = "/" ]; then
|
if [ "$inp" = "/" ]; then
|
||||||
find_media "/$selection"
|
find_media "/$selection"
|
||||||
else
|
else
|
||||||
@ -420,7 +418,7 @@ get_search_query() {
|
|||||||
# Get search history
|
# Get search history
|
||||||
stmt="SELECT DISTINCT id || '. ' || anime_name \
|
stmt="SELECT DISTINCT id || '. ' || anime_name \
|
||||||
FROM search_history \
|
FROM search_history \
|
||||||
ORDER BY search_date DESC;"
|
ORDER BY id DESC;"
|
||||||
|
|
||||||
msg="Choose from list of searched anime below, or enter a unique name of an anime to search for"
|
msg="Choose from list of searched anime below, or enter a unique name of an anime to search for"
|
||||||
span="$(generate_span "$msg")"
|
span="$(generate_span "$msg")"
|
||||||
@ -657,7 +655,7 @@ open_episode() {
|
|||||||
|
|
||||||
dpage_link=$(get_dpage_link "$anime_id" "$episode")
|
dpage_link=$(get_dpage_link "$anime_id" "$episode")
|
||||||
video_url=$(get_video_quality "$dpage_link")
|
video_url=$(get_video_quality "$dpage_link")
|
||||||
lg "Download link: $dpage_link"
|
lg "Download link: $video_url"
|
||||||
lg "Video url: $video_url"
|
lg "Video url: $video_url"
|
||||||
|
|
||||||
if [ $half_ep -eq 1 ]; then
|
if [ $half_ep -eq 1 ]; then
|
||||||
@ -903,7 +901,7 @@ main() {
|
|||||||
file)
|
file)
|
||||||
lg "STARTING DIR: $play_dir"
|
lg "STARTING DIR: $play_dir"
|
||||||
[ ! -d "$play_dir" ] && die "$play_dir does not exist"
|
[ ! -d "$play_dir" ] && die "$play_dir does not exist"
|
||||||
insert_history "directory" "$play_dir"
|
insert_history "directory" "$play_dir" &
|
||||||
video_path=$(find_media "$play_dir")
|
video_path=$(find_media "$play_dir")
|
||||||
retcode="$?"
|
retcode="$?"
|
||||||
if [ "$retcode" -ne 0 ]; then
|
if [ "$retcode" -ne 0 ]; then
|
||||||
|
@ -108,8 +108,6 @@ window {
|
|||||||
background-color: var(background);
|
background-color: var(background);
|
||||||
width: 75%;
|
width: 75%;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
anchor: center;
|
|
||||||
location: center;
|
|
||||||
}
|
}
|
||||||
mainbox {
|
mainbox {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user