trackma
trackma copied to clipboard
Komikku Manga Tracking
Komikku is a manga-reading application for GNOME. I'd love to see the ability to track manga that's being read on Komikku. How do I make the two communicate? I'd like to work on this when I get time, but before that I'd like to confirm if it's possible right now.
Thanks
Manga tracking functionality seems to be non-existent in Trackma now. As such, I'm closing this issue.
Trackma can perfectly track any kind of media if an appropriate tracker is built for it, that includes manga. If we can make a tracker that can communicate with Komikku then Trackma can perfectly update manga chapters as it does with anime.
Trackma can perfectly track any kind of media if an appropriate tracker is built for it, that includes manga. If we can make a tracker that can communicate with Komikku then Trackma can perfectly update manga chapters as it does with anime.
So it's possible? Is it already being done in some form (outside Komikku)?
I'm also interested in a tracker for manga. I will see if I can mock something up; I'd like this functionality for my own use.
You can see the existing trackers in the trackma/tracker
directory for reference.
I'm running into trouble with the use of 'show' and 'episodes' used to describe updating the library from TrackerBase. Wondering if I should add a lot more code in the engine.py and utils.py to support manga better. I'm thinking 'regex_find_images', 'get_manga_info', 'get_manga_titles and so on. I realize that it might mostly be semantics with the difference between 'episode'/'volume' or 'show'/'manga', but it might be better in the long run. Will look into it more tomorrow.
It is indeed just a semantic issue, show
describes an item in the list (in this case a manga), episodes
in this case describes the chapters.
You want to inherit TrackerBase
and rewrite the observe
method. Then you do whatever is needed to check whatever the user is reading, and call the update_show_if_needed
method with the state
(one of TRACKER_NOVIDEO, TRACKER_PLAYING, TRACKER_UNRECOGNIZED, etc.) and the manga and chapter, if any. (You can use utils.guess_show
to get the manga from the title; if it's not in the list it'll return None). You don't really need to touch anything else from TrackerBase or the Engine.
I guess it sounds complicated at first, I can help. What program/website are you trying to support?
I'm thinking of using polling/pyinotify to detect which comic/chapter the manga/comic is opened on ( I assumed it was based on window title), but I need a solution for parsing my (very) small manga/comic library.
20th Century Boys/Vol.01 Ch.001/001.png
can be parsed with regexpr to:
show
/ [volume
] chapter
/[page_nr]
But others complicate things with superfluous numbers or different orders
Invincible/Invincible 005 (2003)/001.png
Manga/Chapter 19 (1337leet translation) (2020) Vol 1
Manga/Chapter 1-3/
Is this Volume 1 Chapter 3
or just Chapters 1 to 3
I can spend some time tinkering on a robust way to filter out relevant data but you must have already have run into this issue with anime?
I might seem a bit off-track but I look at what I need to solve for right now without having to rename/reorder my existing files.
EDIT: I see now that AnimeInfoExtractor.py is pretty comprehensive and a good start to look into.
I see, if you just want to see which file is open then we don't need to create a new tracker but just extend the TrackerBase to identify image files besides the video ones as well.
I can spend some time tinkering on a robust way to filter out relevant data but you must have already have run into this issue with anime?
Absolutely. We were thinking of switching to Anitopy to recognize filenames but as far as I know that only works with filenames, not directories, either.
I don't want to waste your time since I might tinker with this for awhile, I have been finding solutions to sorting my TV and Movies by moving them with bash scripts but now I think I will use python to sort my Manga/Comics and trackma to track them. I'll see about extending TrackerBase and keep it simple for now.
@joaqim @z411 any updates?