Package | Description |
---|---|
org.stanwood.media.actions | |
org.stanwood.media.actions.command | |
org.stanwood.media.actions.podcast | |
org.stanwood.media.actions.rename | |
org.stanwood.media.search |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<java.io.File> |
ActionPerformer.findMediaFiles(IProgressMonitor monitor) |
void |
AbstractAction.finished(MediaDirectory dir)
This is called once for each action after they have finished performing on all media files
within the media directory.
|
void |
IAction.finished(MediaDirectory dir)
This is called once for each action after they have finished performing on all media files
within the media directory.
|
void |
AbstractAction.init(MediaDirectory dir)
This is called once before any of the media files are processed to allow the action
to perform setup tasks
|
void |
IAction.init(MediaDirectory dir)
This is called once before any of the media files are processed to allow the action
to perform setup tasks
|
void |
IAction.perform(MediaDirectory dir,
IEpisode episode,
java.io.File mediaFile,
IActionEventHandler actionEventHandler)
Used to perform the action upon a TV episode file.
|
void |
IAction.perform(MediaDirectory dir,
IFilm film,
java.io.File mediaFile,
java.lang.Integer part,
IActionEventHandler actionEventHandler)
Used to perform the action upon a film file.
|
void |
ActionPerformer.performActions(IProgressMonitor monitor)
Used to perform the actions
|
void |
ActionPerformer.performActions(java.util.List<java.io.File> files,
java.util.Set<java.io.File> dirs,
IProgressMonitor parentMonitor)
Used to perform the actions
|
void |
AbstractAction.performOnDirectory(MediaDirectory dir,
java.io.File file,
IActionEventHandler actionEventHandler)
This is called so the action can perform on directories within the media directory
|
void |
IAction.performOnDirectory(MediaDirectory mediaDir,
java.io.File dir,
IActionEventHandler actionEventHandler)
This is called so the action can perform on directories within the media directory
|
protected java.lang.String |
AbstractAction.resolvePatterns(MediaDirectory dir,
java.lang.String input,
IVideo video,
java.io.File mediaFile,
java.lang.Integer part) |
void |
ActionPerformer.sendEventAboutToRenamedFile(java.io.File oldFile,
java.io.File newFile)
This is called when a file in a media directory is about to be renamed
|
void |
IActionEventHandler.sendEventAboutToRenamedFile(java.io.File oldName,
java.io.File newName)
This is called when a file in a media directory is about to be renamed
|
void |
IActionEventHandler.sendEventDeletedFile(java.io.File file)
Called when a file in the media directory is deleted
|
void |
ActionPerformer.sendEventNewFile(java.io.File file)
Listen for the new file event and perform the actions on it
|
void |
IActionEventHandler.sendEventNewFile(java.io.File file)
Called when a new file is created in the media directory
|
void |
ActionPerformer.sendEventRenamedFile(java.io.File oldFile,
java.io.File newFile)
Listen for the rename file event and and update stores
|
void |
IActionEventHandler.sendEventRenamedFile(java.io.File oldName,
java.io.File newName)
This is called when a file in the media directory is renamed
|
void |
IAction.setParameter(java.lang.String key,
java.lang.String value)
Used to set the value of actions parameter
|
Modifier and Type | Method and Description |
---|---|
protected void |
ExecuteSystemCommandAction.executeCommand(java.lang.String cmd,
java.io.File file,
MediaDirectory dir,
IVideo video) |
void |
ExecuteSystemCommandAction.perform(MediaDirectory dir,
IEpisode episode,
java.io.File mediaFile,
IActionEventHandler actionEventHandler)
This will execute the command in the parameter
|
void |
ExecuteSystemCommandAction.perform(MediaDirectory dir,
IFilm film,
java.io.File mediaFile,
java.lang.Integer part,
IActionEventHandler actionEventHandler)
This will execute the command in the parameter
|
void |
ExecuteSystemCommandAction.performOnDirectory(MediaDirectory dir,
java.io.File mediaDir,
IActionEventHandler actionEventHandler)
This will execute the command in the parameter
|
protected void |
ExecuteSystemCommandAction.sendEvents(IActionEventHandler actionEventHandler,
java.io.File mediaFile) |
void |
ExecuteSystemCommandAction.setParameter(java.lang.String key,
java.lang.String value)
This method is sued to set parameters.
|
Modifier and Type | Method and Description |
---|---|
static IFeedFile |
FeedFileFactory.createFile(java.io.File file,
MediaDirConfig dirConfig,
IVideo media,
java.lang.String baseUrl)
Create a feed file
|
static IFeedFile |
FeedFileFactory.createFile(java.io.File file,
MediaDirConfig dirConfig,
java.lang.String title,
java.lang.String description,
java.lang.String baseUrl)
Create a feed file
|
void |
PodCastAction.finished(MediaDirectory dir)
Used to write the podcast
|
java.util.List<IFeedFile> |
RSSFeed.getEntries()
Used to get the entries form the feed.
|
void |
PodCastAction.init(MediaDirectory dir)
Used to setup the action and parse the podcast if it already exists
|
protected void |
PodCastAction.parseFeed(IVideo video,
java.io.File mediaFile,
java.lang.Integer part) |
void |
PodCastAction.perform(MediaDirectory dir,
IEpisode episode,
java.io.File mediaFile,
IActionEventHandler actionEventHandler)
Used to perform the action upon a TV episode file.
|
void |
PodCastAction.perform(MediaDirectory dir,
IFilm film,
java.io.File mediaFile,
java.lang.Integer part,
IActionEventHandler actionEventHandler)
Used to perform the action upon a film file.
|
void |
PodCastAction.setParameter(java.lang.String key,
java.lang.String value)
Used to set parameters on the action
|
protected void |
PodCastAction.writeFeed(java.io.File feedFile) |
Modifier and Type | Method and Description |
---|---|
void |
RenameAction.perform(MediaDirectory dir,
IEpisode episode,
java.io.File mediaFile,
IActionEventHandler actionEventHandler)
Perform the rename action of the file files
|
void |
RenameAction.perform(MediaDirectory dir,
IFilm film,
java.io.File mediaFile,
java.lang.Integer part,
IActionEventHandler actionEventHandler)
Perform the rename action of the file files
|
void |
RenameAction.performOnDirectory(MediaDirectory mediaDir,
java.io.File dir,
IActionEventHandler actionEventHandler)
If the "pruneEmptyFolders" option has been set, then this will delete any empty
directories it finds.
|
void |
RenameAction.setParameter(java.lang.String key,
java.lang.String value)
Used to set the value of a parameter for this action.
|
Modifier and Type | Method and Description |
---|---|
protected static SearchResult |
MediaSearcher.findFilm(MediaDirectory dir,
java.io.File file,
boolean useSources) |
static IFilm |
MediaSearcher.getFilm(MediaDirectory dir,
java.io.File file,
boolean useSources,
boolean cacheIfNew)
Used to lookup film information
|
static IEpisode |
MediaSearcher.getTVEpisode(MediaDirectory dir,
java.io.File file,
boolean useSources,
boolean cacheIfNew)
Used to lookup TV episode information
|
MediaSearchResult |
MediaSearcher.lookupMedia(java.io.File mediaFile,
boolean useSources,
boolean cacheIfNew)
Used to lookup media file information
|