public class MediaScrapeOptions extends Object
Constructor and Description |
---|
MediaScrapeOptions(MediaType type) |
Modifier and Type | Method and Description |
---|---|
MediaArtwork.MediaArtworkType |
getArtworkType()
Get the preferred artwork type
|
CountryCode |
getCountry()
Get the desired country for scraping
|
MediaArtwork.FanartSizes |
getFanartSize()
Get the desired fanart size for scraping
|
String |
getId(String providerId)
Get the id for the given provider id
|
String |
getImdbId()
Get the imdb id - just a convenience method to get the Id for the provider imdb
|
Locale |
getLanguage()
Get the desired language for the scrape
|
MediaMetadata |
getMetadata()
Get any previous scraped meta data
|
MediaArtwork.PosterSizes |
getPosterSize()
Get the desired poster size for scraping
|
MediaSearchResult |
getResult()
Get a previous found search result
|
int |
getTmdbId()
Get the tmdb id - just a convenience method to get the Id for the provider tmdb
|
MediaType |
getType()
Get the media type
|
void |
setArtworkType(MediaArtwork.MediaArtworkType artworkType)
Set the preferred artwork type
|
void |
setCountry(CountryCode country)
Set the desired country for scraping
|
void |
setFanartSize(MediaArtwork.FanartSizes fanartSize)
Set the desired fanart size for scraping
|
void |
setId(String providerId,
String id)
Set an media id for a provider id
|
void |
setImdbId(String imdbId)
Set the imdb id - just a convenience method to set the Id for the provider imdb
|
void |
setLanguage(Locale language)
Set the desired language for the scrape
|
void |
setMetadata(MediaMetadata metadata)
Set any existing meta data
|
void |
setPosterSize(MediaArtwork.PosterSizes posterSize)
Set the desired poster size for scraping
|
void |
setResult(MediaSearchResult result)
Set a search result if available
|
void |
setTmdbId(int tmdbId)
Set the itdb id - just a convenience method to set the Id for the provider tmdb
|
String |
toString()
Uses
ReflectionToStringBuilder to generate a toString for the specified object. |
public MediaScrapeOptions(MediaType type)
public MediaSearchResult getResult()
public void setResult(MediaSearchResult result)
result
- the search resultpublic String getId(String providerId)
providerId
- the provider Idpublic void setId(String providerId, String id)
providerId
- the provider idid
- the media idpublic String getImdbId()
public int getTmdbId()
public void setImdbId(String imdbId)
imdbId
- the imdb idpublic void setTmdbId(int tmdbId)
tmdbId
- the tmdb idpublic MediaArtwork.MediaArtworkType getArtworkType()
public void setArtworkType(MediaArtwork.MediaArtworkType artworkType)
artworkType
- the artwork typepublic MediaMetadata getMetadata()
public void setMetadata(MediaMetadata metadata)
metadata
- the meta datapublic MediaType getType()
public Locale getLanguage()
public void setLanguage(Locale language)
language
- languagepublic CountryCode getCountry()
public void setCountry(CountryCode country)
country
- the countrypublic MediaArtwork.FanartSizes getFanartSize()
public MediaArtwork.PosterSizes getPosterSize()
public void setFanartSize(MediaArtwork.FanartSizes fanartSize)
fanartSize
- the desired fanart sizepublic void setPosterSize(MediaArtwork.PosterSizes posterSize)
posterSize
- the desired poster sizeCopyright © 2012–2018 tinyMediaManager. All rights reserved.