Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple values for the Web field #56

Closed
Shamicen opened this issue Feb 17, 2024 · 3 comments · Fixed by #57
Closed

Allow multiple values for the Web field #56

Shamicen opened this issue Feb 17, 2024 · 3 comments · Fixed by #57

Comments

@Shamicen
Copy link

It would be nice if the standard allowed for multiple reference websites instead of just one.

What would need to be changed:

Currently the documentation of the "Web" field states:

Web

A URL pointing to a reference website for the book.

This would need to be changed to:

Web

A URL pointing to a reference website for the book.

It is accepted that multiple values are comma separated.
@lordwelch
Copy link
Contributor

lordwelch commented Feb 17, 2024

It is undocumented but the Web field is actually space separated. You can test this by downloading ComicRack from here https://web.archive.org/web/20181018173957/http://comicrack.cyolito.com/downloads and if you put a space in-between it will only use the first item as the clickable link, this effectively makes the Web field a space separated field.
If you are wondering how to use a space in a URL you would % encode it like this https://example.org/file%20with%20space.txt

@majora2007
Copy link

I think we should document that. I coded in Kavita allowing urls to be separated by a ;.

@lordwelch
Copy link
Contributor

Yeah it's not well known but semicolons ; are just a standard part of urls https://datatracker.ietf.org/doc/html/rfc2396#section-1.6 also spaces happen to be specifically excluded from the URI syntax https://datatracker.ietf.org/doc/html/rfc2396#section-2.4.3 because they are used as separators even though modern browsers will show URLs as having a space, when you copy it it's always percent encoded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants