Clean code

This commit is contained in:
FongMi 2023-05-04 15:00:00 +08:00
parent 410e0457d6
commit ab4255336d
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ public class Item {
}
public String getExt() {
return getName().substring(getName().lastIndexOf(".") + 1);
return Utils.getExt(getName());
}
public String getVodId(String id) {

View File

@ -48,7 +48,7 @@ public class WebDAV extends Spider {
}
private String getExt(DavResource item) {
return item.getName().substring(item.getName().lastIndexOf(".") + 1);
return Utils.getExt(item.getName());
}
private String removeExt(DavResource item) {