Linux ampersand (&) symbol in url
#1
Hi, seem to be having an issue with kodi on a linux pc, where the & symbol is giving me a 404 on https.

CCurlFile::Open failed with code 404 

&amp%3b is the encoding for the & symbol where its failing at.

If I use %26 in the url it works fine
Reply
#2
(2024-02-24, 18:51)hamish_macbeth Wrote: where the & symbol is giving me a 404 on https.

because that's the wrong way to do it
 
(2024-02-24, 18:51)hamish_macbeth Wrote: If I use %26 in the url it works fine

because that's the right way to do it


------

some education on URL ENCODING - https://www.urlencoder.io/learn/

but you're trying to use HTML ENCODING which is different and isn't used for URLS - https://www.w3schools.com/html/html_entities.asp
Reply
#3
this is what kodi does:

CCurlFile::Open failed with code 404 for https://******************/law%20and%20order%20toronto%20criminal%20intent/./Law.&amp%3b.Order.Toronto:.Criminal.Intent.S01E01.1080p.WEB-DL.DD.5.1.H.264-NHTFS.mkv
Reply
#4
Kodi* doesn't access do anything for URLs like that, it would be the result of an addon
if the addon is encoding it wrong then it's badly coded

in any case, i have no context for the problem

To receive meaningful assistance you will need to provide a full debug log.

The instructions are here... Debug Log

If you are using the Basic Method, then ensure the following is applied...
1.Enable debugging in Settings>System Settings>Logging,
2.Restart Kodi
3.Replicate the problem.
4.Upload the log to Kodi Paste Site manually or use the Kodi Logfile Uploader. (wiki) With either method post the link to the log back here.

If you are using the Advanced Method ensure you have correctly created and applied the advancedsettings.xml file (wiki)

In both instances, you should see the word DEBUG throughout the log.

Note: Full logs only. No partial or redacted logs
Do NOT post your logs directly into the forum. Use the Kodi Paste Site. Post the link to your pasted log in the forum
Reply
#5
sorry it's not an addon.

just the standard kodi video source, added as a https share
Reply
#6
(2024-02-24, 20:17)hamish_macbeth Wrote: just the standard kodi video source, added as a https share

i see
limited expectations when using that method and i never have so i couldn't help
Reply
#7
if you open the index listing that you added to Kodi in a browser, view source i expect the listing is actually putting the & amp into the filename and Kodi is just pulling it directly
if that's the case the index server needs to output verbatim the filename not the HTML encoded version

one of the pitfalls of using a web scraper, it has to be "exactly" what Kodi expects to find or it will fail
Reply
#8
Don't have experience, but 
Code:
& amp ;
is obviously html encoding and needs to be decoded back to & before urlencoding.

scott s.
.
Reply

Logout Mark Read Team Forum Stats Members Help
ampersand (&) symbol in url0