obsidian-wallabag icon indicating copy to clipboard operation
obsidian-wallabag copied to clipboard

Sync the author from the articles

Open Lorite opened this issue 1 year ago • 7 comments

I think it would be great if the author of article could be retrieved, similarly to how can use the published_at, reading_time, etc. I would also like to know if there are more fields we can retrieve. I haven't checked the API yet. Thanks in advance and good job with the plugin :)

Lorite avatar Nov 26 '24 21:11 Lorite

ATM following fields are available:

https://github.com/huseyz/obsidian-wallabag/blob/master/src/note/NoteTemplate.ts#L15-L31

I'm open to adding more.

huseyz avatar Nov 27 '24 18:11 huseyz

Would we get the field options from the Wallabag API? (Newb question)

jason-mehmel avatar Dec 02 '24 18:12 jason-mehmel

I took a look at the Wallabag API and did find an 'authors' section, under both 'patch' and 'post'.

(POST) /api/entries

(PATCH) /api/entries/{entry}

Can we get those added to the list of fields already available? (And do you need a separate request or is this issue sufficient?)

jason-mehmel avatar Dec 06 '24 19:12 jason-mehmel

I'd like to have it too, and have added to a list of changes I'd like to make. We need to potentially handle a list of authors rather than just one.

My personal preference will be to have authors as links eg. [[Brandon Sanderson]] rather than just the author name. Would you prefer a setting to toggle this on or off?

quantumgardener avatar Dec 14 '24 09:12 quantumgardener

I am working on the code to add authors. Got most of it cracked. Now some final formatting to do. I'm putting in a setting as per my previous post.

quantumgardener avatar Dec 17 '24 10:12 quantumgardener

@quantumgardener Awesome! Here's hoping that @huseyz accepts the patch!

And then does that automatically fead into Obsidian's own plugin update process? (Is it pulling from Github?)

jason-mehmel avatar Dec 18 '24 20:12 jason-mehmel

It should do. Wallabag is listed there now and I updated the readme to reflect that. On 19 Dec 2024, at 7:04 am, jason-mehmel @.***> wrote: @quantumgardener Awesome! Here's hoping that @huseyz accepts the patch! And then does that automatically fead into Obsidian's own plugin update process? (Is it pulling from Github?)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

quantumgardener avatar Dec 18 '24 20:12 quantumgardener