Not sure this is the right category to ask this question. Maybe it should be in the computer section, but… here goes. I’m using Firefox as my browser and I use a homemade Firefox bookmarklet code that let’s me make an M3U out of a website page if it contains direct links to tv or movie files (.avi, .mp4, .mkv) just by clicking on the bookmarklet. The problem comes in with the titles of these files. If there are spaces in the title of the movie or tv show name, my bookmarklet adds the necessary html of %20 for the space, but for some reason it keeps adding it as %2520 instead of just %20. Does anyone have any knowledge in this area, or in html coding regarding why the 25 is also being added and/or how to stop it? Thanks in advance for any help.
Couldn’t you put it into notepad and do find and replace?
If you delete the 25 does the code then work?
Yes, that does work when I delete the 25 using Notepad++. I was just wondering why it gets in there in the first place when it shouldn’t.
That’s exactly what I do. I’m trying to figure out why I have to do that. LOL It shouldn’t be putting the 25 in there to begin with.
from google search A html space is showing as %2520 instead of %20 - SyntaxFix
I had read that article a while back. Or one with the same text at a different site, and it basically said my url is getting encoded twice. The problem is a little confusing with the bookmarklet code, and I don’t how to stop it from encoding a url twice. There is no 25 in the code, it is only showing up in the M3U after the code has been executed and the M3U is saved to file.
I can show you an example.
Here is what is shown on the website page:
http://someservernamehere/movies/A Christmas Movie.avi
Here is what my bookmarklet saves to file:
http://someservernamehere/movies/A%2520Christmas%2520Movie.avi
Yep, that link explains the issue right down to the % extra space. Great link you provided! ![]()
“So you should do no urlencoding - in your case - as other components seems to to that already for you. Use simply a space.”
This solution does not work with a bookmarklet code. Hence my problem. I cannot do it like that. If I did it without the urlencoding then it wouldn’t work at all.
Have you ever used bookmarklet code? Mine is written in javascript. Long story short. I’m browsing in Firefox and I see a website page with direct links to movie files on it. It is not my website. I cannot modify the website page. I click my bookmarklet code which is really nothing more than a bookmark with the javascript code edited into the url area of the Firefox bookmark. When I click the bookmarklet, it prints out a playlist M3U of all the files on the page which is saved to my laptop. Then when I open the M3U to view it, all the names of movies which have spaces in them have the extra 25 in there. Which shouldn’t be in there. Something is obviously wrong with my code. Phew. Sorry to be so longwinded.
Not familiar with that. I have used m3u and epg editors in the past. If you are on Discord, I would join one of those editor groups and see if someone there can assist. ProjectMoose is good place to start. A lot of freaky geekies hangout there. lol
LOL!! I am one of those freaky geekies, already a member at PMoose. Home of EZ-PZ.
This topic was automatically closed after 7 days. New replies are no longer allowed.