![]() |
#421 | |
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 547
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
FWIW
Quote:
Totally fresh FF portable folder, nothing changed, all possible Mozilla leftovers in ProgramData and AppData deleted, new portable as new standard browser. Still the same error - I give up ![]() |
|
![]() |
![]() |
![]() |
#422 | |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,525
Karma: 7086519
Join Date: Sep 2020
Device: none
|
Same!
![]() Quote:
![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#423 | |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Dec 2011
Device: none
|
Quote:
The slash is never a problem. Example: With doi:10.3390/plants10040726 in the ids URL in the plugin: https://scholar.google.com/scholar?hl=en&as_sdt=1%2C5&q={identifiers:select(d oi)}&btnG= Gets me: https://scholar.google.com/scholar?h...10040726&btnG= in my browser -- with the slash. There's only one search where I put it in quotes, and there the slash is replaced with %2F, but that's fine. Example (same DOI): https://lens.org/lens/search/scholar/list?q=ids.doi:%22{identifiers:select(doi)}%22&pre view=true Gets me: https://www.lens.org/lens/search/sch...2&preview=true which works. |
|
![]() |
![]() |
![]() |
#424 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,701
Karma: 2197768
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Search the Internet v1.11.1
Release Notes
https://github.com/kiwidude68/calibr...ternet-v1.11.1 Thanks unicornula for the examples, this version should let you use the latest plugin version again. I tried both the variations you posted and they seemed to work fine. |
![]() |
![]() |
![]() |
#425 | |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Dec 2011
Device: none
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#426 |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Dec 2011
Device: none
|
Spoke too soon! Now I have problems with the slash.
When I use: https://www.altmetric.com/details/doi/{identifiers:select(doi)} With the new version, I get %2F sent to the browser in the DOI in place of the slash, which doesn't work. I reverted to v1.10.5 and it sends the slash. |
![]() |
![]() |
![]() |
#427 | |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,701
Karma: 2197768
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
|
|
![]() |
![]() |
![]() |
#428 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,265
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
URL: http:/foo.com/a/b/c/d result: http:/foo.com/a/b/c/d Code:
URL: http:/foo.com/a/{#b}/d result: http:/foo.com/a/b%2Fc/d |
|
![]() |
![]() |
![]() |
#429 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,701
Karma: 2197768
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Hi @chaley - perhaps I am missing something but the second example is exactly the situation unicornula has where they dont want the token encoded vs the current plugin behaviour where all tokens are encoded? It is a strange edge case…
I think your idea about querystring args is interesting however, just the examples werent quite right. So if I parse the url as you suggest, and any querystring tokens (i.e. those following a questionmark) continue to get encoded, but any tokens before that do not. I will have to review all the example searches that come in the plugin as a sample to see whether that might work - not home to check. |
![]() |
![]() |
![]() |
#430 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,265
Karma: 7955525
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
I don't recall ever seeing encoding anywhere but the query string, but I certainly can't say that it doesn't/shouldn't happen. I have considered adding a url_encode() template function so the user can make the choice. Unfortunately this would work only if the user can guarantee that no further encoding will take place. Double encoding a URL won't work at all. I hesitate to add a function that can lead to this sort of problem. |
|
![]() |
![]() |
![]() |
#431 | |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,701
Karma: 2197768
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
Code:
https://www.literature-map.com/{author} Can I be bothered adding this for one edge case of one website though - right now probably not especially since it is not a website I am ever going to use personally. Because to do it properly is a ton of work in terms of UI, config etc. The hackiest quick way i can think of would be to add a new option to the encoding dropdown that offers utf-8/latin-1 with some new options like utf-8-no-enc or similar. But I might regret that one day... |
|
![]() |
![]() |
![]() |
#432 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,701
Karma: 2197768
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Search the Internet v1.11.2
Release Notes
https://github.com/kiwidude68/calibr...ternet-v1.11.2 Some fixes for calibre 7, a big rationalisation of the default shortcuts culling dead sites and switching to https. This also has a complete hack in there to not encode any tokens that contain 'select:identifiers'. |
![]() |
![]() |
![]() |
#433 | |
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Dec 2011
Device: none
|
Quote:
When the point of the plugin is to launch URLs and slashes are part of URLs, it seems odd to suddenly remove them on version 1.11, but I guess I'm just going to have to use 1.10.5 until it no longer works. |
|
![]() |
![]() |
![]() |
#434 | |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,701
Karma: 2197768
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
In some circumstances the data has to be encoded, in others it does not or causes a problem for specific characters by doing so. The plugin before 1.11 had a flaw in it which meant only a small number of metadata fields were encoded - meaning custom columns could not be passed with it, hence the change made. The other idea I had overnight on this is I likely rely on a calibre url encode function, which in theory I could write my own version of. Or turn %2F back to a / after calling it. However if that data is part of the querystring portion of a url then it maybe that breaks on some websites, would have to test it. A slash doesnt make sense to be part of a search term for anything other than an identifier (eg slashes would normally not be included in a title search comparison). But I have the same issues of supporting custom columns and other template expressions if I wanted to exclude passing it, because in this one case in the world of a DOI identifier the slash is required. It is a very unfortunate (ie poor in the web world) identifier standard they chose. |
|
![]() |
![]() |
![]() |
#435 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,701
Karma: 2197768
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Search the Internet v1.11.3
Release Notes
https://github.com/kiwidude68/calibr...ternet-v1.11.3 A workaround for a calibre bug which has been fixed but just in case people are working with the non-fixed calibre versions. Only would impact anyone attempting to use {id} or {has_cover} template attributes in their urls. |
![]() |
![]() |
![]() |
Tags |
book details, search the internet |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Any web-to-epub plugin for internet browser? | bthoven | ePub | 7 | 07-10-2011 05:14 AM |
Fictionwise Browser Search Plugin | Zero9 | Deals and Resources (No Self-Promotion or Affiliate Links) | 17 | 07-27-2009 03:15 PM |
Diesel eBooks Browser Search Plugin | Zero9 | Deals and Resources (No Self-Promotion or Affiliate Links) | 10 | 07-27-2009 12:16 PM |
eReader.com Browser Search Plugin | Zero9 | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 07-24-2009 09:44 PM |
BooksOnBoard Browser Search Plugin | Zero9 | Deals and Resources (No Self-Promotion or Affiliate Links) | 10 | 07-24-2009 03:27 PM |