m4tx / tundra

MyAnimeList scrobbler for Linux
https://tundra.moe
GNU General Public License v3.0
54 stars 2 forks source link

Support for Ani-cli #6

Closed McUberStein closed 2 years ago

McUberStein commented 2 years ago

It'd be great if Tundra supported ani-cli. Right now the anime I'm watching doesn't even show up on Tundra.

m4tx commented 2 years ago

Hey, it seems that ani-cli uses mpv under the hood. Have you tried using https://github.com/hoyon/mpv-mpris? It might just do the trick.

An automatic mpv integration would unfortunately be difficult, as mpv does not offer any kind of API by default. There is an JSON IPC, but it needs to be manually enabled anyway.

McUberStein commented 2 years ago

Tried MPRIS. Unfortunately it didn't work. I made sure that the plugin was in fact working, by using playerctl, and I could control mpv with it just fine.

McUberStein commented 2 years ago

I think I might just get it to work by downloading individual episodes and watching those. It's worth a try at least.

McUberStein commented 2 years ago

Didn't seem to work unfortunately

McUberStein commented 2 years ago

Ok, I think I got it. The problem was, that the first letter in the name of the downloaded episode wasn't capitalized. So if there was a way to change what ani-cli names the episodes, it could theoretically work, but I'm very new to Linux and I have absolutely no idea what I'm doing.

Hikandy commented 2 years ago

@pystardust hopefully you can try to do something regarding this, it'll be such a great qol feature

m4tx commented 2 years ago

It seems like it should be working with b8b87f40f9b27eede1caa9d67e1467a6e9ad651c now (given that you have mpv-mpris installed as well). Please check the git version if you can, or otherwise this change will be included in the next Tundra release (probably around march-april, as I'm waiting for Gnome 42 Flatpak SDK to be released).

Screenshot from 2022-02-19 16-14-06

McUberStein commented 2 years ago

Can confirm, git version does scrobble ani-cli episodes. Thanks!