Package com.lariflix.jemm.csv
Class JellyfinCsvStructure
java.lang.Object
com.lariflix.jemm.csv.JellyfinCsvStructure
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 Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for the JellyfinCsvStructure class. -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckJellyfinVersionMD5(String hash, String value) Checks the Jellyfin version MD5 hash.Gets the Collection Type.Gets the Community Rating.Gets the Critic Rating.Gets the Date Created.Gets the Forced Sort Name.Gets the Genres.getId()Gets the ID.getIsHD()Gets the HD status.Gets the Jemm Version.Gets the Location Type.Gets the Media Type.getName()Gets the Name.Gets the Official Rating.Gets the Original Title.Gets the Overview.Gets the Overview with line breaks.Gets the Parent ID.getPath()Gets the Path.Gets the Preferred Metadata Country Code.Gets the Preferred Metadata Language.Gets the Premiere Date.Gets the Production Year.Gets the Server ID.Gets the Sort Name.Gets the Studios.getTags()Gets the Tags.getType()Gets the Type.removeInvalidChars(String cContent) Removes invalid characters from a string.voidsetCollectionType(String CollectionType) Sets the Collection Type.voidsetCommunityRating(String CommunityRating) Sets the Community Rating.voidsetCriticRating(String CriticRating) Sets the Critic Rating.voidsetDateCreated(String DateCreated) Sets the Date Created.voidsetForcedSortName(String ForcedSortName) Sets the Forced Sort Name.voidSets the Genres.voidSets the Genres from a list.voidSets the ID.voidsetIsHD(boolean HD) Sets the HD status.voidSets the HD status.voidsetJemmVersion(String jemmVersion) Sets the Jemm Version.voidsetLocationType(String LocationType) Sets the Location Type.voidsetMediaType(String MediaType) Sets the Media Type.voidSets the Name.voidsetOfficialRating(String OfficialRating) Sets the Official Rating.voidsetOriginalTitle(String OriginalTitle) Sets the Original Title.voidsetOverview(String ovView) Sets the Overview.voidsetParentId(String ParentId) Sets the Parent ID.voidSets the Path.voidsetPreferredMetadataCountryCode(String PreferredMetadataCountryCode) Sets the Preferred Metadata Country Code.voidsetPreferredMetadataLanguage(String PreferredMetadataLanguage) Sets the Preferred Metadata Language.voidsetPremiereDate(String PremiereDate) Sets the Premiere Date.voidsetProductionYear(String ProductionYear) Sets the Production Year.voidsetServerID(String serverID) Sets the Server ID.voidsetSortName(String SortName) Sets the Sort Name.voidsetStudios(ArrayList<JellyfinStudioItem> Studios) Sets the Studios from a list.voidSets the Tags.voidSets the Tags from a list.voidSets the Type.
-
Field Details
-
Id
-
ParentId
-
Name
-
OriginalTitle
-
SortName
-
ForcedSortName
-
Type
-
CollectionType
-
ProductionYear
-
CommunityRating
-
CriticRating
-
OfficialRating
-
PremiereDate
-
DateCreated
-
Genres
-
PreferredMetadataLanguage
-
PreferredMetadataCountryCode
-
Studios
-
Tags
-
LocationType
-
MediaType
-
IsHD
-
Path
-
JemmVersion
-
ServerID
-
Overview
-
-
Constructor Details
-
JellyfinCsvStructure
public JellyfinCsvStructure()Default constructor for the JellyfinCsvStructure class.- Since:
- 1.2.0
-
-
Method Details
-
getId
Gets the ID.- Returns:
- the ID
- Since:
- 1.2.0
-
setId
Sets the ID.- Parameters:
Id- the ID to set- Since:
- 1.2.0
-
getParentId
Gets the Parent ID.- Returns:
- the Parent ID
- Since:
- 1.2.0
-
setParentId
Sets the Parent ID.- Parameters:
ParentId- the Parent ID to set- Since:
- 1.2.0
-
getName
Gets the Name.- Returns:
- the Name
- Since:
- 1.2.0
-
setName
Sets the Name.- Parameters:
Name- the Name to set- Since:
- 1.2.0
-
getOriginalTitle
Gets the Original Title.- Returns:
- the Original Title
- Since:
- 1.2.0
-
setOriginalTitle
Sets the Original Title.- Parameters:
OriginalTitle- the Original Title to set- Since:
- 1.2.0
-
getSortName
Gets the Sort Name.- Returns:
- the Sort Name
- Since:
- 1.2.0
-
setSortName
Sets the Sort Name.- Parameters:
SortName- the Sort Name to set- Since:
- 1.2.0
-
getForcedSortName
Gets the Forced Sort Name.- Returns:
- the Forced Sort Name
- Since:
- 1.2.0
-
setForcedSortName
Sets the Forced Sort Name.- Parameters:
ForcedSortName- the Forced Sort Name to set- Since:
- 1.2.0
-
getType
Gets the Type.- Returns:
- the Type
- Since:
- 1.2.0
-
setType
Sets the Type.- Parameters:
Type- the Type to set- Since:
- 1.2.0
-
getCollectionType
Gets the Collection Type.- Returns:
- the Collection Type
- Since:
- 1.2.0
-
setCollectionType
Sets the Collection Type.- Parameters:
CollectionType- the Collection Type to set- Since:
- 1.2.0
-
getProductionYear
Gets the Production Year.- Returns:
- the Production Year
- Since:
- 1.2.0
-
setProductionYear
Sets the Production Year.- Parameters:
ProductionYear- the Production Year to set- Since:
- 1.2.0
-
getCommunityRating
Gets the Community Rating.- Returns:
- the Community Rating
- Since:
- 1.2.0
-
setCommunityRating
Sets the Community Rating.- Parameters:
CommunityRating- the Community Rating to set- Since:
- 1.2.0
-
getCriticRating
Gets the Critic Rating.- Returns:
- the Critic Rating
- Since:
- 1.2.0
-
setCriticRating
Sets the Critic Rating.- Parameters:
CriticRating- the Critic Rating to set- Since:
- 1.2.0
-
getOfficialRating
Gets the Official Rating.- Returns:
- the Official Rating
- Since:
- 1.2.0
-
setOfficialRating
Sets the Official Rating.- Parameters:
OfficialRating- the Official Rating to set- Since:
- 1.2.0
-
getPremiereDate
Gets the Premiere Date.- Returns:
- the Premiere Date
- Since:
- 1.2.0
-
setPremiereDate
Sets the Premiere Date.- Parameters:
PremiereDate- the Premiere Date to set- Since:
- 1.2.0
-
getDateCreated
Gets the Date Created.- Returns:
- the Date Created
- Since:
- 1.2.0
-
setDateCreated
Sets the Date Created.- Parameters:
DateCreated- the Date Created to set- Since:
- 1.2.0
-
getGenres
Gets the Genres.- Returns:
- the Genres
- Since:
- 1.2.0
-
setGenres
Sets the Genres.- Parameters:
genres- the Genres to set- Since:
- 1.2.0
-
setGenres
Sets the Genres from a list.- Parameters:
grs- the list of Genres to set- Since:
- 1.2.0
-
getPreferredMetadataLanguage
Gets the Preferred Metadata Language.- Returns:
- the Preferred Metadata Language
- Since:
- 1.2.0
-
setPreferredMetadataLanguage
Sets the Preferred Metadata Language.- Parameters:
PreferredMetadataLanguage- the Preferred Metadata Language to set- Since:
- 1.2.0
-
getPreferredMetadataCountryCode
Gets the Preferred Metadata Country Code.- Returns:
- the Preferred Metadata Country Code
- Since:
- 1.2.0
-
setPreferredMetadataCountryCode
Sets the Preferred Metadata Country Code.- Parameters:
PreferredMetadataCountryCode- the Preferred Metadata Country Code to set- Since:
- 1.2.0
-
getStudios
Gets the Studios.- Returns:
- the Studios
- Since:
- 1.2.0
-
setStudios
Sets the Studios from a list.- Parameters:
Studios- the list of Studios to set- Since:
- 1.2.0
-
getTags
Gets the Tags.- Returns:
- the Tags
- Since:
- 1.2.0
-
setTags
Sets the Tags.- Parameters:
Tags- the Tags to set- Since:
- 1.2.0
-
setTags
Sets the Tags from a list.- Parameters:
Tgs- the list of Tags to set- Since:
- 1.2.0
-
getLocationType
Gets the Location Type.- Returns:
- the Location Type
- Since:
- 1.2.0
-
setLocationType
Sets the Location Type.- Parameters:
LocationType- the Location Type to set- Since:
- 1.2.0
-
getMediaType
Gets the Media Type.- Returns:
- the Media Type
- Since:
- 1.2.0
-
setMediaType
Sets the Media Type.- Parameters:
MediaType- the Media Type to set- Since:
- 1.2.0
-
getIsHD
Gets the HD status.- Returns:
- the HD status
- Since:
- 1.2.0
-
setIsHD
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
Gets the Path.- Returns:
- the Path
- Since:
- 1.2.0
-
setPath
Sets the Path.- Parameters:
Path- the Path to set- Since:
- 1.2.0
-
removeInvalidChars
Removes invalid characters from a string.- Parameters:
cContent- the string to process- Returns:
- the processed string
- Since:
- 1.2.0
-
getJemmVersion
Gets the Jemm Version.- Returns:
- the Jemm Version
- Since:
- 1.2.0
-
setJemmVersion
Sets the Jemm Version.- Parameters:
jemmVersion- the Jemm Version to set- Since:
- 1.2.0
-
checkJellyfinVersionMD5
Checks the Jellyfin version MD5 hash.- Parameters:
hash- the hash to checkvalue- the value to check against- Returns:
- true if the hash matches, false otherwise
- Since:
- 1.2.0
-
getServerID
Gets the Server ID.- Returns:
- the Server ID
- Since:
- 1.2.0
-
setServerID
Sets the Server ID.- Parameters:
serverID- the Server ID to set- Since:
- 1.2.0
-
getOverview
Gets the Overview.- Returns:
- the Overview
- Since:
- 1.2.0
-
setOverview
Sets the Overview.- Parameters:
ovView- the Overview to set- Since:
- 1.2.0
-
getOverviewWithSkips
Gets the Overview with line breaks.- Returns:
- the Overview with line breaks
- Since:
- 1.2.0
-