mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 08:48:51 -05:00
* added binding for user.home
This commit is contained in:
parent
3db2684e73
commit
c0a89d2712
@ -19,8 +19,8 @@ import net.sf.ehcache.Element;
|
|||||||
import net.sourceforge.filebot.WebServices;
|
import net.sourceforge.filebot.WebServices;
|
||||||
import net.sourceforge.filebot.hash.HashType;
|
import net.sourceforge.filebot.hash.HashType;
|
||||||
import net.sourceforge.filebot.mediainfo.MediaInfo;
|
import net.sourceforge.filebot.mediainfo.MediaInfo;
|
||||||
import net.sourceforge.filebot.mediainfo.ReleaseInfo;
|
|
||||||
import net.sourceforge.filebot.mediainfo.MediaInfo.StreamKind;
|
import net.sourceforge.filebot.mediainfo.MediaInfo.StreamKind;
|
||||||
|
import net.sourceforge.filebot.mediainfo.ReleaseInfo;
|
||||||
import net.sourceforge.filebot.web.Date;
|
import net.sourceforge.filebot.web.Date;
|
||||||
import net.sourceforge.filebot.web.Episode;
|
import net.sourceforge.filebot.web.Episode;
|
||||||
import net.sourceforge.filebot.web.Movie;
|
import net.sourceforge.filebot.web.Movie;
|
||||||
@ -332,12 +332,6 @@ public class MediaBindingBean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Define("file")
|
|
||||||
public File getMediaFile() {
|
|
||||||
return mediaFile;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Define("pi")
|
@Define("pi")
|
||||||
public Integer getPart() {
|
public Integer getPart() {
|
||||||
return ((MoviePart) infoObject).getPartIndex();
|
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() {
|
public Object getInfoObject() {
|
||||||
return infoObject;
|
return infoObject;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user