After a bit of wrestling with the formatter, here's the change in patch form. Let me know if you want to do something with it - replacing the plug-in after JD over-writes it every time is getting tedious. As far as the IP goes, this fix is in the public domain and I assert no rights over it.
Code:
Index: src/jd/plugins/decrypter/Brds4Chnrg.java
===================================================================
--- src/jd/plugins/decrypter/Brds4Chnrg.java (revision 20212)
+++ src/jd/plugins/decrypter/Brds4Chnrg.java (working copy)
@@ -71,8 +71,13 @@
} else {
cat = "Unknown Cat";
}
- String date = new Date().toString();
- fp.setName(domain + " - " + cat + " - " + date);
+ // extract thread number from URL
+ String suffix = new Regex(parameter, "/res/([0-9]+)").getMatch(0);
+ if (suffix == null) {
+ // Fall back to date if we can't resolve
+ suffix = new Date().toString();
+ }
+ fp.setName(domain + " - " + cat + " - " + suffix);
for (String image : images) {
if (image.startsWith("/") && !image.startsWith("h")) image = image.replace("//", prot + "://");
DownloadLink dl = createDownloadlink(image);