forked from j62/ctbrec
1
0
Fork 0

Normalize Cam4 model URLs in setUrl

This commit is contained in:
0xb00bface 2020-12-19 18:06:55 +01:00
parent b5640d932f
commit fb58be47bb
1 changed files with 9 additions and 0 deletions

View File

@ -308,4 +308,13 @@ public class Cam4Model extends AbstractModel {
super(msg);
}
}
@Override
public void setUrl(String url) {
String normalizedUrl = url.toLowerCase();
if (normalizedUrl.endsWith("/")) {
normalizedUrl = normalizedUrl.substring(0, normalizedUrl.length() - 1);
}
super.setUrl(normalizedUrl);
}
}