org.stanwood.media.search
Class FilmNFOSearchStrategy
java.lang.Object
org.stanwood.media.search.FilmNFOSearchStrategy
- All Implemented Interfaces:
- ISearchStrategy
public class FilmNFOSearchStrategy
- extends java.lang.Object
- implements ISearchStrategy
This search strategy looks information about films if they are in or under a directory contains a .NFO
file that describes them.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilmNFOSearchStrategy
public FilmNFOSearchStrategy()
getSearch
public SearchDetails getSearch(java.io.File mediaFile,
MediaDirectory mediaDir)
- Used to get parse the details used to perform a search
- Parameters:
mediaFile
- The media file that is been looked upmediaDir
- The media directory the media file is in
- Returns:
- The search details, or null if they could not be found
getSearch
public SearchDetails getSearch(java.io.File mediaFile,
java.io.File rootMediaDir,
java.lang.String renamePattern,
MediaDirectory mediaDir)
- Look up the film file details using the NFO file if it can be found
- Specified by:
getSearch
in interface ISearchStrategy
- Parameters:
mediaFile
- The media file that is been processedrootMediaDir
- The root media directoryrenamePattern
- The pattern that is been used to rename media filesmediaDir
- The media directory
- Returns:
- The search details