|
Replies:
14
-
Pages:
1
-
Last Post:
6 Jun 26, 10:05
Last Post By: davidekholm
|
Threads:
[
Previous
|
Next
]
|
|
Posts:
6
Registered:
10-Mar-2004
|
|
|
|
"File name isn't web safe" For Existing YouTube Videos & Can't Add New Ones
Posted:
31 May 26, 19:43
|
|
|
In all my regularly updated jAlbum web galleries, such as https://billanddot.com/C400GT/ ,in the last week or so when I go to add new YouTube videos, the New Page -> Web Location doesn't Update when I try to add a new YouTube video.
Additionally, all of my other, pre-existing, YouTube videos in the gallery are marked with an exclamation point. Hovering over the warning triangle shows the text: File name isn't web safe."
I can, however, add regular (still) photos just fine.
jAlbum: 39.5.11 Java 23 64 bit
Skin: FancyBox (but a little experimenting with other skins seems to have the same problem)
Mac desktop (M1): Tahoe 26.5
I have changed any setting in galleries such as that one in a year or more. I just add new photos, captions, and videos every few weeks, and then save and upload the gallery.
(I did some searching, but couldn't find any similar posts. My apologies if they exist, and I searched incorrectly.)
Thanks for any help.
Regards,
Bill P.
Edited by: RobM on 31 May 2026, 19:03
Moved comma away from link
|
|
|
Posts:
3,991
Registered:
4-Aug-2006
|
|
|
|
Re: "File name isn't web safe" For Existing YouTube Videos & Can't Add New Ones
Posted:
31 May 26, 20:18
in response to: wspollack
|
|
|
|
Check the website url being used as the target of the web location, it should not have web unsafe characters. Please give an example.
JAlbum will convert any non-web-safe characters in file names to URL valid characters.
|
|
|
Posts:
8,360
Registered:
31-Jan-2006
|
|
|
|
Re: "File name isn't web safe" For Existing YouTube Videos & Can't Add New Ones
Posted:
31 May 26, 20:20
in response to: wspollack
|
|
|
There's clearly a bug when adding a new web location. The core is refusing to extract an image from the target site, even when the target site is a jAlbum-produced album (where the core should certainly know how to grab a representing image). It works properly if you choose your own image, on the second entry line for adding a web location, but that shouldn't be necessary.
I'm not getting the "unsafe file name" warning, so this appears to be a different issue. Can you give us an example of a file name that triggers this? In Explore, have it show you the file name, rather than the title or comment, and copy what's there. It should be something like: www.youtube.com-174.webloc
ETA: I take it back. I'm also seeing the "unsafe file name" warning in existing projects, even when the file name is something as simple as venus.webloc.
ETA: And no console messages in either case - adding a new web location, or looking at an old one.
|
|
|
Posts:
6
Registered:
10-Mar-2004
|
|
|
|
Re: "File name isn't web safe" For Existing YouTube Videos & Can't Add New Ones
Posted:
31 May 26, 23:34
in response to: JeffTucker
|
|
|
|
|
What you said.
Here are some pics (using the same web page that I cited earlier):
1) What it looks like when I hover my mouse over the triangle with exclamation mark, i.e., showing the warning message (showing the last two entries, in Explore, the first one being the last entry when I had uploaded the page, and the next one when I starting to update the page, but not uploaded), along with the Explore version of the name.
2) Trying to add a new YT video at the end of the gallery.
It doesn't matter whether I enter https://www.youtube.com/watch?v=AA8ZjRDsR-k (the URL when you click on the video) or https://youtu.be/AA8ZjRDsR-k (the URL when you go into YT's Manage Videos, and get the link there), because YT always changes that short form to the longer paramaterized one, even just entering it in a browser.
In any case, when attempting a YT addition, nothing happens when I click Update (except for that URL change), i.e., the Update box just sits there, until I click Cancel.
Thanks for looking into this.
Edited by: wspollack on 31 May 2026, 23:35
|
|
|
Posts:
3,975
Registered:
18-Oct-2002
|
|
|
|
Re: "File name isn't web safe" For Existing YouTube Videos & Can't Add New Ones
Posted:
4 Jun 26, 23:31
in response to: JeffTucker
|
|
|
|
Now fixed if you do a core update.
|
|
|
Posts:
8,360
Registered:
31-Jan-2006
|
|
|
|
Re: "File name isn't web safe" For Existing YouTube Videos & Can't Add New Ones
Posted:
4 Jun 26, 23:49
in response to: davidekholm
|
|
|
|
|
OK, adding a new web location is back to normal behavior.
I'm still seeing the "unsafe file name" warning, but on only one project. And I've been seeing it on that one for a long time now - this is not a new thing. I can't figure out what's different about it. The top two levels on my skin demo site all follow the same model - nothing but web locations, with relative URL's (so I can test the site from C:). But only this one shows the warnings.
I'll zip that one up and email it to you. Low priority, since it's not causing any problems, and I can't reproduce it with a new project. Might be tough to test, because the thumbnails for the webloc's are all local, and so on. In short, a bit of an odd beast. 
|
|
|
Posts:
3,975
Registered:
18-Oct-2002
|
|
|
|
Re: "File name isn't web safe" For Existing YouTube Videos & Can't Add New Ones
Posted:
5 Jun 26, 11:36
in response to: JeffTucker
|
|
|
Something has caused the creation of titles for those web locations to break. The titles contain the full <img src..." html instead of just the ALT text. Don't know why that has happened, but this script/tool repairs them:
Work.on(currentFolder.descendants.parallelStream())
.titled("Fix broken titles")
.inform("This script fixes broken titles of web locations")
.forEach(ao) -> {
ao.title = ao.title.replaceAll("<.*>", "")
}
.showResult();
Let me know if you ever see these broken titles appearing again so I can fix the root problem (if it's still present)
|
|
|
Posts:
8,360
Registered:
31-Jan-2006
|
|
|
|
Re: "File name isn't web safe" For Existing YouTube Videos & Can't Add New Ones
Posted:
5 Jun 26, 13:52
in response to: davidekholm
|
|
|
That just breaks the title of each object. They're supposed to have links to images in them. Take a look at what's displayed below each thumbnail on the page:
https://jefftucker.jalbum.net/skins/
But that's part of the title, not part of the file name. There's nothing unsafe about the file names.
ETA: I have a suspicion about the source of this problem. I think the core is looking at the title of the object to determine whether it's web safe. It shouldn't be, of course. And this all goes back to one of those "slippery" variables in jAlbum. This is why I never use the title variable - it's defined as "Alternative name for this file, folder or album title, or if not set, same as label." In short, you never know what it contains. In my skins, I call the fileName, fileTitle, or folderTitle, and never the title, for this very reason.
|
|
|
Posts:
6
Registered:
10-Mar-2004
|
|
|
|
Re: "File name isn't web safe" For Existing YouTube Videos & Can't Add New Ones
Posted:
5 Jun 26, 14:26
in response to: davidekholm
|
|
|
|
I didn't know what a "core update" meant -- never did that before -- so I redownloaded and reinstalled jAlbum, but that didn't change anything. Then I clicked on Help, and learned how to do a core update; that changed the version from 39.5.11 to 39.5.16, and I was able to successfully add a new YouTube video, and then successfully perform a "Make album.
So thank you for the fix.
All my existing (and the one newly added) YT videos still have that "unsafe" warning triangle, but it appears that the warning doesn't interfere with gallery generation.
Regards,
Bill P.
|
|
|
Posts:
8,360
Registered:
31-Jan-2006
|
|
|
|
Re: "File name isn't web safe" For Existing YouTube Videos & Can't Add New Ones
Posted:
5 Jun 26, 15:06
in response to: wspollack
|
|
|
|
This confirms my suspicion. Bill's YT links produce a webloc with a perfectly acceptable file name. But the fileTitle that it extracts includes a slash, which would be illegal in a file name, but is perfectly acceptable in a file title. One of his titles:
2026/05: C 400 GT: Saratoga County (NY) Rt. 10
But the file name is not a problem:
www.youtube.com-749.webloc
So, there's nothing unsafe about the file name, and there isn't really anything unsafe about the file title!
The core is looking at the wrong variable when it checks for safeness.
|
|
|
Posts:
3,975
Registered:
18-Oct-2002
|
|
|
|
Re: "File name isn't web safe" For Existing YouTube Videos & Can't Add New Ones
Posted:
5 Jun 26, 15:51
in response to: JeffTucker
|
|
|
|
I've probably been tired when implementing this part of web locations: I mapped AlbumObject.webName to AlbumObject.title for web locations. Now I simply map them to their names (xxx.webloc). Let me know if there are any issues now. (do another core update)
|
|
|
Posts:
8,360
Registered:
31-Jan-2006
|
|
|
|
Re: "File name isn't web safe" For Existing YouTube Videos & Can't Add New Ones
Posted:
5 Jun 26, 16:00
in response to: davidekholm
|
|
|
|
That's better!
But don't take the rap for it - pin it on AI. "We're not saying it's your fault, Sparky. We're just blaming you for it."
|
|
|
Posts:
6
Registered:
10-Mar-2004
|
|
|
|
Re: "File name isn't web safe" For Existing YouTube Videos & Can't Add New Ones
Posted:
5 Jun 26, 16:02
in response to: davidekholm
|
|
|
|
Yep, now on 39.5.17, and the warnings are gone, successfully added (but not uploaded yet) another YT video.
Thanks again.
As I mentioned earlier, I've been adding to this and similar galleries for a few years now, all in the same way: some YT videos, some moto modification descriptions, and so forth. And (as Jeff noted), all of those YT videos have the same title format when I put them up: date (with slash), which particular moto, and a brief description of the route.
|
|
|
Posts:
3,975
Registered:
18-Oct-2002
|
|
|
|
Re: "File name isn't web safe" For Existing YouTube Videos & Can't Add New Ones
Posted:
6 Jun 26, 10:05
in response to: wspollack
|
|
|
|
I never noticed the web location bug cause I always use drag-and-drop when adding web locations (just drag from the icon next to the address bar)
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|