/** * Gets the actor name in a storage-able format (without special characters) * * @return the <i>cleaned</i> name for storing */ public String getNameForStorage() { String n = name.replace(" ", "_"); n = n.replaceAll("([\"\\\\:<>|/?*])", ""); String ext = UrlUtil.getExtension(this.thumbUrl); if (ext.isEmpty()) { ext = "jpg"; } return n + "." + ext; }
String ext = UrlUtil.getExtension(url); if (ext.isEmpty()) { ext = "jpg"; // just assume
if (!FilenameUtils.getExtension(path.getFileName().toString()).equalsIgnoreCase(UrlUtil.getExtension(actor.getThumbUrl()))) { found = false;
String ext = UrlUtil.getExtension(trailer.getUrl()).toLowerCase(Locale.ROOT); if (!Globals.settings.getVideoFileType().contains("." + ext)) {
ext = UrlUtil.getExtension(url).toLowerCase(Locale.ROOT); if (!ext.isEmpty()) { if (Globals.settings.getAllSupportedFileTypes().contains("." + ext)) {