Clean code
This commit is contained in:
parent
410e0457d6
commit
ab4255336d
|
|
@ -105,7 +105,7 @@ public class Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getExt() {
|
public String getExt() {
|
||||||
return getName().substring(getName().lastIndexOf(".") + 1);
|
return Utils.getExt(getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getVodId(String id) {
|
public String getVodId(String id) {
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ public class WebDAV extends Spider {
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getExt(DavResource item) {
|
private String getExt(DavResource item) {
|
||||||
return item.getName().substring(item.getName().lastIndexOf(".") + 1);
|
return Utils.getExt(item.getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
private String removeExt(DavResource item) {
|
private String removeExt(DavResource item) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue