Update NR Tool URL
This commit is contained in:
parent
2b14302427
commit
ed8b491b68
|
@ -154,8 +154,6 @@ public class ModelMenuContributor {
|
|||
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) {
|
||||
var openOnCamGirlFinder = new MenuItem("Search on CamGirlFinder");
|
||||
openOnCamGirlFinder.setOnAction(e -> {
|
||||
|
@ -173,18 +171,21 @@ public class ModelMenuContributor {
|
|||
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) {
|
||||
var openOnNrToolFinder = new MenuItem("Search on NRTool");
|
||||
openOnNrToolFinder.setOnAction(e -> {
|
||||
for (Model model : selectedModels) {
|
||||
// String preview = model.getPreview(); // Uncomment when NRTool has an image URL API
|
||||
String preview = null;
|
||||
String preview = model.getPreview();
|
||||
// Remove following line whenever NR Tool can accept image URLs
|
||||
preview = null;
|
||||
if (preview != null && !preview.isEmpty()) {
|
||||
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 {
|
||||
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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue