advplyr / audiobookshelf-app

Mobile application for Audiobookshelf
https://audiobookshelf.org
GNU General Public License v3.0
1.27k stars 172 forks source link

Add ability to open URLs found in book descriptions in browser #1281

Open colvdv opened 2 months ago

colvdv commented 2 months ago

Describe the Feature/Enhancement

Add URL hyperlink support to audiobook descriptions.

Why would this be helpful?

There are several audiobooks I have that contain URLs in the book description, but from the audiobookshelf app I am currently unable to engage the URL as a link, and the ability to select text from the description isn't a thing so I can't copy and paste it either. The best implementation would be to make URLs engageable as hyperlinks that open in the device default browser.

Future Implementation (Screenshot)

Make URLs engageable in book descriptions (hyperlink).

Audiobookshelf App Version

Android App - 0.9.74

Current Implementation (Screenshot)

No response

advplyr commented 2 months ago

Related issues for the web client: https://github.com/advplyr/audiobookshelf/issues/1820 https://github.com/advplyr/audiobookshelf/issues/1366 https://github.com/advplyr/audiobookshelf/issues/617

This might be better as a server side change where we support rich text descriptions. The downside to this is when embedding descriptions in audio file meta tags we would want to strip the HTML tags which wouldn't be consistent. This is the main reason it hasn't already been implemented.

The alternative is to detect the hyperlinks client side and make them links.

colvdv commented 2 months ago

The alternative is to detect the hyperlinks client side and make them links.

Detecting client side seems to make more sense to me. This feature isn't needed for access from web browser since text can easily be selected to be copied and pasted. It is within the audiobookshelf app that there isn't a good way to open URLs.