trackma icon indicating copy to clipboard operation
trackma copied to clipboard

Is this compatible with ani-cli?

Open Merulox opened this issue 3 years ago • 10 comments

Out of the box it doesn't seem to be.. Is it just that I'm doing something wrong?

https://github.com/pystardust/ani-cli

Merulox avatar Feb 05 '22 21:02 Merulox

You'll have to use mpv-mpris and mpris tracker.

ahmubashshir avatar Feb 06 '22 15:02 ahmubashshir

Sorry, could you elaborate on what mpris tracker is

Merulox avatar Feb 06 '22 18:02 Merulox

MPRIS Arch wiki entry.

XDG Specification

mpris tracker is the module that tracks your playback using the org.mpris.MediaPlayer2.Player interface.

ahmubashshir avatar Feb 07 '22 04:02 ahmubashshir

You also have to hope that the media title is set correctly or the URL is decipherable, otherwise trackma has no chance of guessing what you're currently viewing. At least in the preview gif it seemed to have a lot of gibberish from HTTP GET parameters.

FichteFoll avatar Feb 12 '22 22:02 FichteFoll

You also have to hope that the media title is set correctly or the URL is decipherable, otherwise trackma has no chance of guessing what you're currently viewing. At least in the preview gif it seemed to have a lot of gibberish from HTTP GET parameters.

image

is that good enough for trackma to guess?

Merulox avatar Feb 13 '22 01:02 Merulox

I doubt it since this kind of mix of spaces and hyphens isn't accounted for in the title matching code, although you may be lucky. Stripping ani-cli: from the title would certainly improve it, though.

FichteFoll avatar Feb 14 '22 10:02 FichteFoll

hi there, ani-cli maintainer. in the latest ani-cli release the title has been changed for better compatibility with trackma, an example would look like this in mpv "Akebi Chan No Sailor Fuku Episode 5" additionally, if for some reasons externals trackers don't work for you (for example i use OSX, which doesn't have any good mpv trackers afaik). EDIT: i'm currently working on a trackma wrapper, which works with ani-cli, you can find it here wrapper script

justchokingaround avatar Apr 06 '22 23:04 justchokingaround

@Merulox

justchokingaround avatar Apr 06 '22 23:04 justchokingaround

You also need to pip install pydbus.

imsamuka avatar Apr 25 '22 22:04 imsamuka

Consider my adl script as a possible alternative. @justchokingaround is also interesting.

RaitaroH avatar Dec 09 '22 15:12 RaitaroH