Tabnine Logo
org.tinymediamanager.scraper.util
Code IndexAdd Tabnine to your IDE (free)

How to use org.tinymediamanager.scraper.util

Best Java code snippets using org.tinymediamanager.scraper.util (Showing top 20 results out of 315)

origin: org.tinymediamanager/api-scraper

/**
 * Set the IMDB id
 * 
 * @param imdbid
 *          the IMDB id
 */
public void setIMDBId(String imdbid) {
 if (MetadataUtil.isValidImdbId(imdbid)) {
  imdbId = imdbid;
 }
}
origin: org.tinymediamanager/api-scraper

/**
 * Set the original title
 * 
 * @param originalTitle
 *          the origial title to be set
 */
public void setOriginalTitle(String originalTitle) {
 this.originalTitle = StrgUtils.getNonNullString(originalTitle);
}
origin: org.tinymediamanager/api-scraper

/**
 * gets the BaseName (w/o extension) of an URL (better than commons-io)
 * 
 * @param url
 *          the to get the base name from
 * @return BaseName
 */
public static String getBasename(String url) {
 return getFileNameArray(url)[0];
}
origin: org.tinymediamanager/api-scraper

/**
 * parses the parameters for first valid number from all supplied parameters, in a safe way<br>
 * order matters!
 * 
 * @param numbers
 *          epNr, DVDnr, aired, combined
 * @return number >0, or 0 as default
 */
public static int parseInt(Object... numbers) {
 return getFirstValidNumber(0, 0, numbers);
}
origin: org.tinymediamanager/api-scraper

/**
 * decrypt the cryted API key
 * 
 * @param cryptedApiKey
 *          the crypted API key
 * @return the decrypted API key
 */
public static String decryptApikey(String cryptedApiKey) {
 return AES_UTIL.decrypt(SALT, IV, "", cryptedApiKey);
}
origin: org.tinymediamanager/api-scraper

 /**
  * encrypt the API key
  * 
  * @param apiKey
  *          the API key
  * @return the encrypted API key
  */
 public static String encryptApikey(String apiKey) {
  return AES_UTIL.encrypt(SALT, IV, "", apiKey);
 }
}
origin: org.tinymediamanager/api-scraper

/**
 * Cleanup the map checking the time to live for each entry
 */
public void cleanup() {
 cleanup(false);
}
origin: org.tinymediamanager/api-scraper

/**
 * Iterator.
 * 
 * @return the iterator
 */
public Iterator<T> iterator() {
 return new RingBufferIterator<>(this);
}
origin: org.tinymediamanager/api-scraper

/**
 * Set the assigned IMDB id for this artwork
 * 
 * @param imdbId
 *          the imdb id
 */
public void setImdbId(String imdbId) {
 this.imdbId = StrgUtils.getNonNullString(imdbId);
}
origin: org.tinymediamanager/api-scraper

/**
 * gets the Extension of an URL (better than commons-io)
 * 
 * @param url
 *          the to get the extension from
 * @return BaseName
 */
public static String getExtension(String url) {
 return getFileNameArray(url)[1];
}
origin: org.tinymediamanager/api-scraper

/**
 * gets the first episode number >0 from all supplied parameters, in a safe way<br>
 * order matters!
 * 
 * @param numbers
 *          epNr, DVDnr, aired, combined
 * @return episode number >0, or -1
 */
public static int getEpisodeNumber(Object... numbers) {
 return getFirstValidNumber(-1, 1, numbers);
}
origin: org.tinymediamanager/api-scraper

/**
 * Set the id of this search result
 * 
 * @param id
 *          the search result id
 */
public void setId(String id) {
 this.id = StrgUtils.getNonNullString(id);
}
origin: org.tinymediamanager/api-scraper

/**
 * gets the FileName (with extension) of an URL (better than commons-io)
 * 
 * @param url
 *          the to get the file name from
 * @return BaseName
 */
public static String getFilename(String url) {
 return getFileNameArray(url)[2];
}
origin: org.tinymediamanager/api-scraper

/**
 * gets the first season number >-1 from all supplied parameters, in a safe way<br>
 * order matters!
 * 
 * @param numbers
 *          epNr, DVDnr, aired, combined
 * @return season number 0+, or -1
 */
public static int getSeasonNumber(Object... numbers) {
 return getFirstValidNumber(-1, 0, numbers);
}
origin: org.tinymediamanager/api-scraper

/**
 * Set the tagline
 * 
 * @param tagline
 *          the tagline to be set
 */
public void setTagline(String tagline) {
 this.tagline = StrgUtils.getNonNullString(tagline);
}
origin: org.tinymediamanager/api-scraper

/**
 * Sets the character name of this cast member (if it is an actor).
 * 
 * @param character
 *          the character name
 */
public void setCharacter(String character) {
 this.character = StrgUtils.getNonNullString(character);
}
origin: org.tinymediamanager/api-scraper

/**
 * Set the original title for this search result
 * 
 * @param originalTitle
 *          the original title
 */
public void setOriginalTitle(String originalTitle) {
 this.originalTitle = StrgUtils.getNonNullString(originalTitle);
}
origin: org.tinymediamanager/api-scraper

/**
 * Set the original language for this search result
 *
 * @param originalLanguage
 *          the original language
 */
public void setOriginalLanguage(String originalLanguage) {
 this.originalLanguage = StrgUtils.getNonNullString(originalLanguage);
}
origin: org.tinymediamanager/api-scraper

/**
 * Set the poster url
 * 
 * @param posterUrl
 *          the poster url
 */
public void setPosterUrl(String posterUrl) {
 this.posterUrl = StrgUtils.getNonNullString(posterUrl);
}
origin: org.tinymediamanager/api-scraper

public ImageSizeAndUrl(int width, int height, String url) {
 this.width = width;
 this.height = height;
 this.url = StrgUtils.getNonNullString(url);
}
org.tinymediamanager.scraper.util

Most used classes

  • MetadataUtil
    The class MetadataUtil. Here are some helper utils for managing meta data
  • StrgUtils
    The class StrgUtils. This can be used for several String related tasks
  • ApiKey
    A helper class to encrypt/decrypt API keys
  • LanguageUtils
    This is a helper class for language related tasks
  • ListUtils
    The class ListUtils is a helper class, providing some special functions for Lists
  • TvUtils,
  • UrlUtil,
  • PluginManager,
  • Similarity,
  • CacheMap,
  • Pair,
  • AesUtil,
  • CacheMap$CacheObject,
  • DOMUtils,
  • JarUtils,
  • MediaIdUtil,
  • ParserUtils$ParserInfo,
  • ParserUtils,
  • RingBuffer$RingBufferIterator
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now