Update NR Tool URL

This commit is contained in:
jafea7 2025-05-05 15:47:56 +10:00
parent 2b14302427
commit ed8b491b68
1 changed files with 7 additions and 6 deletions

View File

@ -154,8 +154,6 @@ public class ModelMenuContributor {
menu.getItems().add(openInBrowser); menu.getItems().add(openInBrowser);
} }
// CB (old): https://roomimg.stream.highwebmedia.com/ri/emiilycampbell.jpg?1745301588
// CB (new): https://thumb.live.mmcdn.com/ri/emiilycampbell.jpg
private void addOpenOnCamGirlFinder(ContextMenu menu, List<Model> selectedModels) { private void addOpenOnCamGirlFinder(ContextMenu menu, List<Model> selectedModels) {
var openOnCamGirlFinder = new MenuItem("Search on CamGirlFinder"); var openOnCamGirlFinder = new MenuItem("Search on CamGirlFinder");
openOnCamGirlFinder.setOnAction(e -> { openOnCamGirlFinder.setOnAction(e -> {
@ -173,18 +171,21 @@ public class ModelMenuContributor {
menu.getItems().add(openOnCamGirlFinder); menu.getItems().add(openOnCamGirlFinder);
} }
@SuppressWarnings("unused") // Remove when NR Tool accepts image URL and below is updated
private void addOpenOnNrToolFinder(ContextMenu menu, List<Model> selectedModels) { private void addOpenOnNrToolFinder(ContextMenu menu, List<Model> selectedModels) {
var openOnNrToolFinder = new MenuItem("Search on NRTool"); var openOnNrToolFinder = new MenuItem("Search on NRTool");
openOnNrToolFinder.setOnAction(e -> { openOnNrToolFinder.setOnAction(e -> {
for (Model model : selectedModels) { for (Model model : selectedModels) {
// String preview = model.getPreview(); // Uncomment when NRTool has an image URL API String preview = model.getPreview();
String preview = null; // Remove following line whenever NR Tool can accept image URLs
preview = null;
if (preview != null && !preview.isEmpty()) { if (preview != null && !preview.isEmpty()) {
String query = URLEncoder.encode(preview, UTF_8); String query = URLEncoder.encode(preview, UTF_8);
DesktopIntegration.open("https://nobodyhome.tv/nrtool/search?s=" + query); // Adjust whenever URL API implemented // Adjust whenever URL API implemented
DesktopIntegration.open("https://nrtool.to/nrtool/search?s=" + query);
} else { } else {
String query = URLEncoder.encode(model.getName(), UTF_8); String query = URLEncoder.encode(model.getName(), UTF_8);
DesktopIntegration.open("https://nobodyhome.tv/nrtool/search?s=" + query); DesktopIntegration.open("https://nrtool.to/nrtool/search?s=" + query);
} }
} }
}); });