consts

package
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package consts used to store const for application

Package consts used to store action keys

Package consts used to store const for application

Index

Constants

View Source
const (
	ActionUsage                  = "allow use selected action"
	AllPages                     = 10
	BaseURLPath                  = "/trakt"
	CMD                          = "cmd"
	CheckinError                 = "checkin error:%w"
	CheckinMsgUsage              = "allow to overwrite msg"
	ClientNewRequestFatal        = "client.NewRequest returned error: %v"
	CollectionProgressError      = "collection progress error:%w"
	CommaString                  = ","
	CommentIDUsage               = "allow to overwrite comment_id"
	CommentNotFoundWithID        = "comment not found with commentId:%d"
	CommentTypeUsage             = "allow to overwrite comment_type"
	CommentUsage                 = "allow to overwrite comment"
	ConfigUsage                  = "allow to overwrite default config filename"
	DaysUsage                    = "allow to overwrite days"
	DefaultOutputFormat1         = "export_%s.json"
	DefaultOutputFormat2         = "export_%s_%s.json"
	DefaultOutputFormat3         = "export_%s_%s_%s.json"
	DefaultStartDateFormat       = time.RFC3339
	DeleteUsage                  = "allow delete item"
	EmptyCommentIDMsg            = "set commentId ie: -comment_id 123"
	EmptyHistoryIDMsg            = "set historyId ie: -i 12345 from watched history"
	EmptyIncludeReplies          = "set includeReplies ie: -include_replies true or false"
	EmptyListIDMsg               = "set traktId ie: -trakt_id 55"
	EmptyInternalIDMsg           = "set Trakt ID, Trakt slug, or IMDB ID Example:  ie: -i 12345 or -i tron-legacy-2010"
	EmptyMovieIDMsg              = "set Trakt ID, Trakt slug, or IMDB ID Example:  ie: -i 12345 or -i tron-legacy-2010"
	EmptyNotesIDMsg              = "set notesId ie: -i 12345678"
	EmptyPersonIDMsg             = "set personId ie: -i john-wayne"
	EmptyResult                  = "empty result"
	EmptyShowIDMsg               = "set Trakt ID, Trakt slug, or IMDB ID Example:  ie: -i 12345 or -i tron-legacy-2010"
	EmptySeasonIDMsg             = "set Trakt ID, Trakt slug, or IMDB ID Example:  ie: -i 12345 or -i tron-legacy-2010"
	EmptyString                  = ""
	EmptyTraktIDMsg              = "set traktId ie: -trakt_id 55"
	EpisodeAbsUsage              = "episode_abs 1234"
	EpisodeCodeErr               = "episode code error:%w"
	EpisodeCodeUsage             = "episode_code format 01x24"
	EpisodeErr                   = "episode error:%w"
	EpisodesType                 = "episodes"
	ErrorRender                  = "error render: %w"
	ErrorsPlaceholders           = "%v %v: %d %v"
	ExtendedInfoUsage            = "allow to overwrite extended flag"
	FieldUsage                   = "allow use selected field"
	FirstPage                    = 1
	FormatUsage                  = "allow to overwrite default ID type format"
	HavePagesErrorStr            = "HavePages: %v, want %v"
	HideUsage                    = "allow to hide movie/show recommendation"
	IgnoreCollectedUsage         = "allow to overwrite ignore_collected"
	IgnoreWatchlistedUsage       = "allow to overwrite ignore_watchlisted"
	IncludeRepliesUsage          = "allow to overwrite include_replies"
	InvalidUserForNotes          = "invalid user for notes Id:%s"
	ItemUsage                    = "item type used in collection/rating ie:movie,show,season,episode,person"
	JSONDataFormat               = "  "
	ListCommentSortUsage         = "allow to overwrite comments sort"
	ListIDUsage                  = "allow to export a specific custom list"
	ListItem                     = "  - %s\n"
	ListLikeRemoveUsage          = "allow remove like for list"
	ListUsage                    = "allow to overwrite list"
	ModuleUsage                  = "allow use selected module"
	MovieIDUsage                 = "allow to overwrite movieID"
	InternalIDUsage              = "allow to overwrite trakt ID"
	MoviesCountryUsage           = "allow to overwrite country"
	MoviesLanguageUsage          = "allow to overwrite language"
	MoviesPeriodUsage            = "allow to overwrite period"
	MoviesSortUsage              = "allow to overwrite sort"
	MoviesTypeUsage              = "allow to overwrite type"
	NewLine                      = "\n"
	NoEpisodeTitle               = "no episode title"
	NoShowTitle                  = "no show title"
	NotFoundConfigForModule      = "not found config for module '%s'"
	NotesIDUsage                 = "allow to overwrite notes_id"
	NotesNotFoundWithID          = "notes not found with Id:%s"
	NotesUsage                   = "allow to overwrite notes"
	OutputUsage                  = "allow to overwrite default output filename"
	PagesNoLimit                 = 0
	PrivacyUsage                 = "allow to overwrite privacy"
	ProgressUsage                = "progress 12.56"
	QueryUsage                   = "allow use selected query"
	RangeFormatDigits            = "%d-%d"
	RangeFormatFloats            = "%.1f-%.1f"
	Recent                       = "recent"
	RecommendationNotFoundWithID = "recommendation not found with Id:%s"
	RemoveUsage                  = "allow remove item"
	ReplyUsage                   = "allow to overwrite reply"
	ResetAtUsage                 = "allow to overwrite reset_at"
	SeasonUsage                  = "allow to overwrite season"
	EpisodeUsage                 = "allow to overwrite episode"
	TranslationsUsage            = "allow to overwrite translations"
	LanguageUsage                = "allow to overwrite language"
	ScrobbleError                = "scrobble error:%w"
	SeparatorString              = CommaString
	ShowEpisodeErr               = "show episode error:%w"
	ShowErr                      = "show error:%w"
	ShowsCountSpecialsUsage      = "allow to overwrite specials"
	ShowsCountryUsage            = "allow to overwrite country"
	ShowsHiddenUsage             = "allow to overwrite hidden"
	ShowsLanguageUsage           = "allow to overwrite language"
	ShowsPeriodUsage             = "allow to overwrite period"
	ShowsSortUsage               = "allow to overwrite sort"
	ShowsSpecialsUsage           = "allow to overwrite specials"
	ShowsTypeUsage               = "allow to overwrite type"
	SortUsage                    = "allow to overwrite sort"
	SpoilerUsage                 = "allow to overwrite spoiler"
	StartDateUsage               = "allow to overwrite start_date"
	StringDigit                  = "%s%d"
	StringString                 = "%s%s"
	TestURL                      = "test-url"
	TestURLNext                  = "test-url-next"
	TraktIDUsage                 = "allow to overwrite trakt_id"
	TypeUsage                    = "allow to overwrite type"
	UndoUsage                    = "allow undo item"
	UnknownCheckinAction         = "uknown checkin action"
	UserConnectionsError         = "user connections error:%w"
	UserSettingsError            = "user settings error:%w"
	UserlistUsage                = "allow to export a user custom list"
	VerboseUsage                 = "print additional verbose information"
	VersionUsage                 = "get trakt-sync version"
	WatchedProgressError         = "watched progress error:%w"
)

usage strings

View Source
const (
	ActionTypeAll      = "all"
	Aliases            = "aliases"
	AllDvd             = "all-dvd"
	AllFinales         = "all-finales"
	AllMovies          = "all-movies"
	AllNewShows        = "all-new-shows"
	AllSeasonPremieres = "all-season-premieres"
	AllShows           = "all-shows"
	Anticipated        = "anticipated"
	Boxoffice          = "boxoffice"
	Calendars          = "calendars"
	Certifications     = "certifications"
	Checkin            = "checkin"
	Collected          = "collected"
	Collection         = "collection"
	CollectionProgress = "collection_progress"
	Comment            = "comment"
	Comments           = "comments"
	Countries          = "countries"
	Dvd                = "dvd"
	Episode            = "episode"
	Favorited          = "favorited"
	Finales            = "finales"
	Episodes           = "episodes"
	Genres             = "genres"
	History            = "history"
	IDLookup           = "id-lookup"
	ImdbFormat         = "imdb"
	ImdbIDFormat       = "Imdb"
	Item               = "item"
	Items              = "items"
	Languages          = "languages"
	LastEpisode        = "last_episode"
	Likes              = "likes"
	List               = "list"
	Lists              = "lists"
	Lookup             = "lookup"
	Movie              = "movie"
	Movies             = "movies"
	MyDvd              = "my-dvd"
	MyFinales          = "my-finales"
	MyMovies           = "my-movies"
	MyNewShows         = "my-new-shows"
	MySeasonPremieres  = "my-season-premieres"
	MyShows            = "my-shows"
	Networks           = "networks"
	NewShows           = "new_shows"
	NextEpisode        = "next_episode"
	Notes              = "notes"
	People             = "people"
	Played             = "played"
	Popular            = "popular"
	Query              = "query"
	Ratings            = "ratings"
	Recommendations    = "recommendations"
	Related            = "related"
	Releases           = "releases"
	Replies            = "replies"
	SavedFilters       = "saved_filters"
	Scrobble           = "scrobble"
	Search             = "search"
	SeasonPremieres    = "season_premieres"
	Settings           = "settings"
	ShowEpisode        = "show_episode"
	Shows              = "shows"
	Season             = "season"
	Seasons            = "seasons"
	Stats              = "stats"
	Studios            = "studios"
	Summary            = "summary"
	TextQuery          = "text-query"
	TmdbFormat         = "tmdb"
	TmdbIDFormat       = "Tmdb"
	Translations       = "translations"
	Trending           = "trending"
	TvdbFormat         = "tvdb"
	TvdbIDFormat       = "Tvdb"
	UpdatedIDs         = "updated_ids"
	Updates            = "updates"
	Users              = "users"
	Videos             = "videos"
	Watched            = "watched"
	WatchedProgress    = "watched_progress"
	Watching           = "watching"
	Watchlist          = "watchlist"
)

usage strings

View Source
const (
	BaseInt               = 10
	BitSize               = 64
	DefaultExitCode       = 0
	DefaultPage           = 1
	DefaultPerPage        = 100
	DefaultProgress       = 0.00
	EmptyBuildInfoLen     = 0
	FirstArgElement       = 0
	ImdbVotesRangeMax     = 3000000
	ImdbVotesRangeMin     = 0
	MaxAcceptedStatus     = 299
	MinSeasonNumberLength = 3
	NextPageStep          = 1
	OneValue              = 1
	PagesLimit            = 2
	PerPage               = 50
	RatingRageMin         = 0
	RatingRageMinFloat    = 0.00
	RatingRangeMax        = 100
	RatingRangeMaxFloat   = 100.00
	SleepNumberOfSeconds  = 2
	TmdbRatingRangeMax    = 10.00
	TmdbRatingRangeMin    = 0.00
	TwoValue              = 2
	VotesRangeMax         = 100000
	VotesRangeMin         = 0
	X644                  = 0644
	X755                  = 0755
	ZeroValue             = 0
	ZeroValueFloat        = float64(0)
	TestEpisodeAbs        = 100
	TestEpisodeSeason6    = 6
	TestEpisodeNumber10   = 10
	TestMovieTraktID      = 367444
	TestEpisodeTraktID    = 73629
)

usage strings

Variables

This section is empty.

Functions

func Fupper added in v1.9.1

func Fupper(in string) string

Fupper helper function to convert string in title format

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL