Class JellyfinCsvStructure

java.lang.Object
com.lariflix.jemm.csv.JellyfinCsvStructure

public class JellyfinCsvStructure extends Object
The JellyfinCsvStructure class represents the structure of a CSV file for Jellyfin metadata. It contains various fields related to media items and provides methods to set and get these fields. It also includes methods to remove invalid characters from strings and to check the MD5 hash of the Jellyfin version.
Since:
1.2.0
Version:
1.0
Author:
CesarBianchi
See Also:
  • Field Details

    • Id

      public String Id
    • ParentId

      public String ParentId
    • Name

      public String Name
    • OriginalTitle

      public String OriginalTitle
    • SortName

      public String SortName
    • ForcedSortName

      public String ForcedSortName
    • Type

      public String Type
    • CollectionType

      public String CollectionType
    • ProductionYear

      public String ProductionYear
    • CommunityRating

      public String CommunityRating
    • CriticRating

      public String CriticRating
    • OfficialRating

      public String OfficialRating
    • PremiereDate

      public String PremiereDate
    • DateCreated

      public String DateCreated
    • Genres

      public String Genres
    • PreferredMetadataLanguage

      public String PreferredMetadataLanguage
    • PreferredMetadataCountryCode

      public String PreferredMetadataCountryCode
    • Studios

      public String Studios
    • Tags

      public String Tags
    • LocationType

      public String LocationType
    • MediaType

      public String MediaType
    • IsHD

      public String IsHD
    • Path

      public String Path
    • JemmVersion

      public String JemmVersion
    • ServerID

      public String ServerID
    • Overview

      public String Overview
  • Constructor Details

    • JellyfinCsvStructure

      public JellyfinCsvStructure()
      Default constructor for the JellyfinCsvStructure class.
      Since:
      1.2.0
  • Method Details

    • getId

      public String getId()
      Gets the ID.
      Returns:
      the ID
      Since:
      1.2.0
    • setId

      public void setId(String Id)
      Sets the ID.
      Parameters:
      Id - the ID to set
      Since:
      1.2.0
    • getParentId

      public String getParentId()
      Gets the Parent ID.
      Returns:
      the Parent ID
      Since:
      1.2.0
    • setParentId

      public void setParentId(String ParentId)
      Sets the Parent ID.
      Parameters:
      ParentId - the Parent ID to set
      Since:
      1.2.0
    • getName

      public String getName()
      Gets the Name.
      Returns:
      the Name
      Since:
      1.2.0
    • setName

      public void setName(String Name)
      Sets the Name.
      Parameters:
      Name - the Name to set
      Since:
      1.2.0
    • getOriginalTitle

      public String getOriginalTitle()
      Gets the Original Title.
      Returns:
      the Original Title
      Since:
      1.2.0
    • setOriginalTitle

      public void setOriginalTitle(String OriginalTitle)
      Sets the Original Title.
      Parameters:
      OriginalTitle - the Original Title to set
      Since:
      1.2.0
    • getSortName

      public String getSortName()
      Gets the Sort Name.
      Returns:
      the Sort Name
      Since:
      1.2.0
    • setSortName

      public void setSortName(String SortName)
      Sets the Sort Name.
      Parameters:
      SortName - the Sort Name to set
      Since:
      1.2.0
    • getForcedSortName

      public String getForcedSortName()
      Gets the Forced Sort Name.
      Returns:
      the Forced Sort Name
      Since:
      1.2.0
    • setForcedSortName

      public void setForcedSortName(String ForcedSortName)
      Sets the Forced Sort Name.
      Parameters:
      ForcedSortName - the Forced Sort Name to set
      Since:
      1.2.0
    • getType

      public String getType()
      Gets the Type.
      Returns:
      the Type
      Since:
      1.2.0
    • setType

      public void setType(String Type)
      Sets the Type.
      Parameters:
      Type - the Type to set
      Since:
      1.2.0
    • getCollectionType

      public String getCollectionType()
      Gets the Collection Type.
      Returns:
      the Collection Type
      Since:
      1.2.0
    • setCollectionType

      public void setCollectionType(String CollectionType)
      Sets the Collection Type.
      Parameters:
      CollectionType - the Collection Type to set
      Since:
      1.2.0
    • getProductionYear

      public String getProductionYear()
      Gets the Production Year.
      Returns:
      the Production Year
      Since:
      1.2.0
    • setProductionYear

      public void setProductionYear(String ProductionYear)
      Sets the Production Year.
      Parameters:
      ProductionYear - the Production Year to set
      Since:
      1.2.0
    • getCommunityRating

      public String getCommunityRating()
      Gets the Community Rating.
      Returns:
      the Community Rating
      Since:
      1.2.0
    • setCommunityRating

      public void setCommunityRating(String CommunityRating)
      Sets the Community Rating.
      Parameters:
      CommunityRating - the Community Rating to set
      Since:
      1.2.0
    • getCriticRating

      public String getCriticRating()
      Gets the Critic Rating.
      Returns:
      the Critic Rating
      Since:
      1.2.0
    • setCriticRating

      public void setCriticRating(String CriticRating)
      Sets the Critic Rating.
      Parameters:
      CriticRating - the Critic Rating to set
      Since:
      1.2.0
    • getOfficialRating

      public String getOfficialRating()
      Gets the Official Rating.
      Returns:
      the Official Rating
      Since:
      1.2.0
    • setOfficialRating

      public void setOfficialRating(String OfficialRating)
      Sets the Official Rating.
      Parameters:
      OfficialRating - the Official Rating to set
      Since:
      1.2.0
    • getPremiereDate

      public String getPremiereDate()
      Gets the Premiere Date.
      Returns:
      the Premiere Date
      Since:
      1.2.0
    • setPremiereDate

      public void setPremiereDate(String PremiereDate)
      Sets the Premiere Date.
      Parameters:
      PremiereDate - the Premiere Date to set
      Since:
      1.2.0
    • getDateCreated

      public String getDateCreated()
      Gets the Date Created.
      Returns:
      the Date Created
      Since:
      1.2.0
    • setDateCreated

      public void setDateCreated(String DateCreated)
      Sets the Date Created.
      Parameters:
      DateCreated - the Date Created to set
      Since:
      1.2.0
    • getGenres

      public String getGenres()
      Gets the Genres.
      Returns:
      the Genres
      Since:
      1.2.0
    • setGenres

      public void setGenres(String genres)
      Sets the Genres.
      Parameters:
      genres - the Genres to set
      Since:
      1.2.0
    • setGenres

      public void setGenres(ArrayList<String> grs)
      Sets the Genres from a list.
      Parameters:
      grs - the list of Genres to set
      Since:
      1.2.0
    • getPreferredMetadataLanguage

      public String getPreferredMetadataLanguage()
      Gets the Preferred Metadata Language.
      Returns:
      the Preferred Metadata Language
      Since:
      1.2.0
    • setPreferredMetadataLanguage

      public void setPreferredMetadataLanguage(String PreferredMetadataLanguage)
      Sets the Preferred Metadata Language.
      Parameters:
      PreferredMetadataLanguage - the Preferred Metadata Language to set
      Since:
      1.2.0
    • getPreferredMetadataCountryCode

      public String getPreferredMetadataCountryCode()
      Gets the Preferred Metadata Country Code.
      Returns:
      the Preferred Metadata Country Code
      Since:
      1.2.0
    • setPreferredMetadataCountryCode

      public void setPreferredMetadataCountryCode(String PreferredMetadataCountryCode)
      Sets the Preferred Metadata Country Code.
      Parameters:
      PreferredMetadataCountryCode - the Preferred Metadata Country Code to set
      Since:
      1.2.0
    • getStudios

      public String getStudios()
      Gets the Studios.
      Returns:
      the Studios
      Since:
      1.2.0
    • setStudios

      public void setStudios(ArrayList<JellyfinStudioItem> Studios)
      Sets the Studios from a list.
      Parameters:
      Studios - the list of Studios to set
      Since:
      1.2.0
    • getTags

      public String getTags()
      Gets the Tags.
      Returns:
      the Tags
      Since:
      1.2.0
    • setTags

      public void setTags(String Tags)
      Sets the Tags.
      Parameters:
      Tags - the Tags to set
      Since:
      1.2.0
    • setTags

      public void setTags(ArrayList<String> Tgs)
      Sets the Tags from a list.
      Parameters:
      Tgs - the list of Tags to set
      Since:
      1.2.0
    • getLocationType

      public String getLocationType()
      Gets the Location Type.
      Returns:
      the Location Type
      Since:
      1.2.0
    • setLocationType

      public void setLocationType(String LocationType)
      Sets the Location Type.
      Parameters:
      LocationType - the Location Type to set
      Since:
      1.2.0
    • getMediaType

      public String getMediaType()
      Gets the Media Type.
      Returns:
      the Media Type
      Since:
      1.2.0
    • setMediaType

      public void setMediaType(String MediaType)
      Sets the Media Type.
      Parameters:
      MediaType - the Media Type to set
      Since:
      1.2.0
    • getIsHD

      public String getIsHD()
      Gets the HD status.
      Returns:
      the HD status
      Since:
      1.2.0
    • setIsHD

      public void setIsHD(String IsHD)
      Sets the HD status.
      Parameters:
      IsHD - the HD status to set
      Since:
      1.2.0
    • setIsHD

      public void setIsHD(boolean HD)
      Sets the HD status.
      Parameters:
      HD - the HD status to set
      Since:
      1.2.0
    • getPath

      public String getPath()
      Gets the Path.
      Returns:
      the Path
      Since:
      1.2.0
    • setPath

      public void setPath(String Path)
      Sets the Path.
      Parameters:
      Path - the Path to set
      Since:
      1.2.0
    • removeInvalidChars

      public String removeInvalidChars(String cContent)
      Removes invalid characters from a string.
      Parameters:
      cContent - the string to process
      Returns:
      the processed string
      Since:
      1.2.0
    • getJemmVersion

      public String getJemmVersion()
      Gets the Jemm Version.
      Returns:
      the Jemm Version
      Since:
      1.2.0
    • setJemmVersion

      public void setJemmVersion(String jemmVersion)
      Sets the Jemm Version.
      Parameters:
      jemmVersion - the Jemm Version to set
      Since:
      1.2.0
    • checkJellyfinVersionMD5

      public boolean checkJellyfinVersionMD5(String hash, String value)
      Checks the Jellyfin version MD5 hash.
      Parameters:
      hash - the hash to check
      value - the value to check against
      Returns:
      true if the hash matches, false otherwise
      Since:
      1.2.0
    • getServerID

      public String getServerID()
      Gets the Server ID.
      Returns:
      the Server ID
      Since:
      1.2.0
    • setServerID

      public void setServerID(String serverID)
      Sets the Server ID.
      Parameters:
      serverID - the Server ID to set
      Since:
      1.2.0
    • getOverview

      public String getOverview()
      Gets the Overview.
      Returns:
      the Overview
      Since:
      1.2.0
    • setOverview

      public void setOverview(String ovView)
      Sets the Overview.
      Parameters:
      ovView - the Overview to set
      Since:
      1.2.0
    • getOverviewWithSkips

      public String getOverviewWithSkips()
      Gets the Overview with line breaks.
      Returns:
      the Overview with line breaks
      Since:
      1.2.0