ryot icon indicating copy to clipboard operation
ryot copied to clipboard

Komga implementation

Open Jacob-Tate opened this issue 1 year ago • 17 comments

This appears to be working well in my testing and properly handles mass marking as read as well as marking in progress reading correctly. Needed to add in a special case in misc for a progress update where the chapter is provided out of order as occasionally apps like mihon appear to update this information in random order. This occasionally resulted in the wrong chapter being marked as read.

Jacob-Tate avatar Aug 05 '24 04:08 Jacob-Tate

Looking good! Requested for a few small changes. Will take a better look when I get the time. Thanks!

IgnisDa avatar Aug 05 '24 05:08 IgnisDa

Let me know if I need to make any changes here.

Jacob-Tate avatar Aug 07 '24 19:08 Jacob-Tate

Let me know if there are any other concerns.

Jacob-Tate avatar Aug 08 '24 02:08 Jacob-Tate

Addressed a bug where some manga imported with a different number than is shown in the interface not sure what causes this but metadata.number is the authoritative number and is also the one that gets edited in the interface the original item.number appears to be the order in which they import into the series.

Jacob-Tate avatar Aug 08 '24 21:08 Jacob-Tate

Not sure about this, but is your rust formatter working? Maybe you have to install rust-analyzer. None of the rust file changes you made are formatted, it seems.

IgnisDa avatar Aug 09 '24 00:08 IgnisDa

The pro version also supports "Sync to Owned collection" boolean, will this be something this integration can support?

image

IgnisDa avatar Aug 09 '24 00:08 IgnisDa

It appears my IDE had the formatter disabled I believe this has been resolved.

Jacob-Tate avatar Aug 09 '24 00:08 Jacob-Tate

The pro version also supports "Sync to Owned collection" boolean, will this be something this integration can support?

How does this functionality work? Does it just add the things which are tracked to the owned collection or is this doing an import of all books into the owned collect?

Jacob-Tate avatar Aug 09 '24 00:08 Jacob-Tate

As of now, it just works for ABS. It just adds all items in your library to the owned collection. Can I give you access to the Pro repo, and you can take a look at the code?

IgnisDa avatar Aug 09 '24 01:08 IgnisDa

Yeah that works I see no reason why we couldnt support that

Jacob-Tate avatar Aug 09 '24 01:08 Jacob-Tate

Sent you the invitation. This PR LGTM, i will merge it later today.

IgnisDa avatar Aug 09 '24 01:08 IgnisDa

@Jacob-Tate Could you resolve the conflicts?

IgnisDa avatar Aug 10 '24 10:08 IgnisDa

I'm currently using rustfmt is this the intended formatter or is there another you are using? I'm not 100% familiar with rust code formatting I'm traditionally a c++ programmer and we use other tools over there.

Jacob-Tate avatar Aug 10 '24 19:08 Jacob-Tate

Yes I use rustfmt too and let the editor take care of imports.

IgnisDa avatar Aug 10 '24 21:08 IgnisDa

@Jacob-Tate Can you make an empty commit with Run CI somewhere in the commit message? I want to test if the correct docker images are released.

IgnisDa avatar Aug 11 '24 08:08 IgnisDa

Do you know why the login step is failing?

cc @vnghia

EDIT: Seems like secrets are not accessible from forked repos. That kinda defeats the purpose of the entire dev workflow.

https://github.com/orgs/community/discussions/26163#discussioncomment-3250630

IgnisDa avatar Aug 12 '24 01:08 IgnisDa

NOTE TO SELF: Add checks in the GH action to allow only mantainers to be able to trigger a workflow.

IgnisDa avatar Aug 14 '24 07:08 IgnisDa

Ill get this upgraded to work with the refactor this weekend. Ive been running it for about a week on a personal instance and havent run into any issues.

I discovered its possible to pass the users komga credentials in a basic_auth field rather than requiring retrieving the users remeber-me cookie. Do you think we should use that instead?

Jacob-Tate avatar Aug 16 '24 20:08 Jacob-Tate

Yes I think that would simplify usage for users as well. Obtaining the cookie requires a few steps.

IgnisDa avatar Aug 16 '24 23:08 IgnisDa

Merged with the new refactor.

Also moved to username and password.

Jacob-Tate avatar Aug 17 '24 03:08 Jacob-Tate

@Jacob-Tate Is this ready to be merged?

IgnisDa avatar Aug 19 '24 09:08 IgnisDa

Yes this should be ready ive been running it for a few days without any issues.

Jacob-Tate avatar Aug 19 '24 18:08 Jacob-Tate

Will release this with v7 next week. Thanks for the contribution!

IgnisDa avatar Aug 20 '24 17:08 IgnisDa