1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 16:28:51 -05:00

* added binding for user.home

This commit is contained in:
Reinhard Pointner 2011-12-19 06:31:48 +00:00
parent 3db2684e73
commit c0a89d2712

View File

@ -19,8 +19,8 @@ import net.sf.ehcache.Element;
import net.sourceforge.filebot.WebServices;
import net.sourceforge.filebot.hash.HashType;
import net.sourceforge.filebot.mediainfo.MediaInfo;
import net.sourceforge.filebot.mediainfo.ReleaseInfo;
import net.sourceforge.filebot.mediainfo.MediaInfo.StreamKind;
import net.sourceforge.filebot.mediainfo.ReleaseInfo;
import net.sourceforge.filebot.web.Date;
import net.sourceforge.filebot.web.Episode;
import net.sourceforge.filebot.web.Movie;
@ -332,12 +332,6 @@ public class MediaBindingBean {
}
@Define("file")
public File getMediaFile() {
return mediaFile;
}
@Define("pi")
public Integer getPart() {
return ((MoviePart) infoObject).getPartIndex();
@ -350,6 +344,18 @@ public class MediaBindingBean {
}
@Define("file")
public File getMediaFile() {
return mediaFile;
}
@Define("home")
public File getUserHome() throws IOException {
return new File(System.getProperty("user.home"));
}
public Object getInfoObject() {
return infoObject;
}