C9Glax / tranga-website

Web-Frontend for Tranga-API
GNU General Public License v3.0
17 stars 10 forks source link

Link to manga on hosted site. #60

Open yacob841 opened 6 months ago

yacob841 commented 6 months ago

When doing a search it would be nice if when you click on a selection there is a hyperlink to go to the manga on the hosting site. I feel like the value of this will increase once global search is released.

db-2001 commented 4 months ago

@C9Glax it doesn't look like the link is currently sent by the API, do you think it'll be possible to make a quick commit to cuttingedge sometime so I can develop the front-end for this feature in the V2 branch?

C9Glax commented 4 months ago

Currently Manga do not store the URI, and it would be specific to the connector. So would have to be added, when a Manga is added. Can add for Manga added in the future, but old ones will just have an empty string.

C9Glax commented 4 months ago

Field websiteUrl is now in the Manga-Object. https://github.com/C9Glax/tranga/commit/5bdbd9e2e4fe94ab455c46c9be471b2c2070a3ad

db-2001 commented 4 months ago

Currently Manga do not store the URI, and it would be specific to the connector. So would have to be added, when a Manga is added. Can add for Manga added in the future, but old ones will just have an empty string.

Couldn't the website url be added in a metadata refresh? I mean tranga has to know the URL in order to check for new chapters, right?

C9Glax commented 4 months ago

That is something that didn't cross my mind! Just added the two lines that would do that 👍🏼