Clean code
This commit is contained in:
parent
7cf5d4d5d3
commit
93263cd6b0
|
|
@ -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