justchokingaround / jerry

watch anime with automatic anilist syncing and other cool stuff
GNU General Public License v3.0
291 stars 20 forks source link

merge binge and single, exit on completion #27

Closed Ar4m1s closed 1 year ago

Ar4m1s commented 1 year ago

Still can't test for manga. Does manga not work or is it just me? For the cases that are one line, should I join them like this?

"Watch Anime") binge "ANIME" ;;

Closes #22 Closes #29

justchokingaround commented 1 year ago

yes

justchokingaround commented 1 year ago

got manga to work again, i will test this PR more extensively in a few days

Ar4m1s commented 1 year ago

You are aware that the second commit makes total episodes in the anime_list off by one if it is currently releasing.

justchokingaround commented 1 year ago

no i'm not, thats a choke on my part :sob:, can u revert it pretty please?

Ar4m1s commented 1 year ago

It fixes more than it breaks tho.

Ar4m1s commented 1 year ago

Previously there was a question mark instead. And it is correct after you have selected episode using no anilist.

justchokingaround commented 1 year ago

oh

Ar4m1s commented 1 year ago

You can't really do math with regex so there is no simple fix.

Ar4m1s commented 1 year ago

The off by one is why I marked the commit OBO

Ar4m1s commented 1 year ago

The second commit was essentially trying to solve the issue that I referenced when asking for help on discord. The issue was later deleted for some reason.

justchokingaround commented 1 year ago

when a user watches an episode, then quits the player mid episode (before 85%, so before completing the whole episode), and presses yes to keep watching, it goes to the next episode even tho it should keep playing the same episode from the same position

Ar4m1s commented 1 year ago

Is there a way to see if the episode has been watched 85% or more? If so, it would be an easy fix.

justchokingaround commented 1 year ago

https://github.com/justchokingaround/jerry/blob/main/jerry.sh#L1066 that's what this variable is used for ^^^

example usage: https://github.com/justchokingaround/jerry/blob/main/jerry.sh#L986

Ar4m1s commented 1 year ago

Yes, I just found it.

Ar4m1s commented 1 year ago

What should it do if you quit early?

justchokingaround commented 1 year ago

not update progress to progress + 1

justchokingaround commented 1 year ago

also, the episodes releasing thing doesn't show up for the user list, it's only used when a user looks up an anime:

Screenshot 2023-08-12 at 17 20 41 Screenshot 2023-08-12 at 17 21 10

if u don't have an anilist account, i can implement this later

Ar4m1s commented 1 year ago

It happens because I did not update the get_anime_from_list function.

Ar4m1s commented 1 year ago

The episode numbers are fixed. Should I add (releasing) to the shows that are?

justchokingaround commented 1 year ago

yes please, it looks nice

Ar4m1s commented 1 year ago

Should it be at the end or after the episode number?

justchokingaround commented 1 year ago

after ep number, in ()

Ar4m1s commented 1 year ago

I added the (releasing) and if are dissatisfied with the placement just tell me. It is easy to change.

justchokingaround commented 1 year ago

yep, thx, ill check

justchokingaround commented 1 year ago

can you just add a space between episodes and (releasing) please? otherwise it looks great, its a good addition

Ar4m1s commented 1 year ago

changed it.(in both functions)

Ar4m1s commented 1 year ago

Added fix for issue: #29 .