consts

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 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"
	ItemsUsage                   = "allow to overwrite items file path"
	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"
	DefaultDateFormat            = time.DateOnly
	DefaultStartDateFormat       = time.RFC3339
	DefaultStartAtDays           = 60
	DeleteUsage                  = "allow delete item"
	DenyUsage                    = "allow deny item"
	DisplayNumbersUsage          = "set display_numbers ie: -display_numbers true or false"
	AllowCommentsUsage           = "set allow_comments ie: -allow_comments true or false"
	EmptyCommentIDMsg            = "set commentId ie: -comment_id 123"
	EmptyFollowerRequestMsg      = "set FollowerRequest ie: -follower_request 123"
	EmptyHistoryIDMsg            = "set historyId ie: -i 12345 from watched history"
	EmptyIncludeReplies          = "set includeReplies ie: -include_replies true or false"
	EmptyInternalIDMsg           = "set Trakt ID, Trakt slug, or IMDB ID Example:  ie: -i 12345 or -i tron-legacy-2010"
	UserNotWatchingAnything      = "user not watching anything"
	EmptyUserNameMsg             = "set User slug, Example: -u sean"
	EmptyReasonMsg               = "set reason:  ie: -r duplicate"
	EmptyReportMsg               = "set reason:  ie: -message \"xyz\""
	EmptyListItemIDMsg           = "set List item ID Example:  ie: -list_item_id 12345"
	EmptyListIDMsg               = "set traktId ie: -trakt_id 55"
	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"
	EmptySeasonIDMsg             = "set Trakt ID, Trakt slug, or IMDB ID Example:  ie: -i 12345 or -i tron-legacy-2010"
	EmptyShowIDMsg               = "set Trakt ID, Trakt slug, or IMDB ID Example:  ie: -i 12345 or -i tron-legacy-2010"
	UnknownItemsListType         = "unknown items list type"
	EmptyString                  = ""
	EmptyTraktIDMsg              = "set traktId ie: -trakt_id 55"
	EndAtUsage                   = "allow to overwrite end_at"
	PlaybackIDUsage              = "allow to overwrite playback_id"
	EpisodeAbsUsage              = "episode_abs 1234"
	EpisodeCodeErr               = "episode code error:%w"
	EpisodeCodeUsage             = "episode_code format 01x24"
	EpisodeErr                   = "episode error:%w"
	EpisodeUsage                 = "allow to overwrite episode"
	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"
	InternalIDUsage              = "allow to overwrite trakt ID"
	InvalidUserForNotes          = "invalid user for notes Id:%s"
	ItemUsage                    = "item type used in collection/rating ie:movie,show,season,episode,person"
	JSONDataFormat               = "  "
	LanguageUsage                = "allow to overwrite language"
	ListCommentSortUsage         = "allow to overwrite comments sort"
	ListIDUsage                  = "allow to export a specific custom list"
	ListItem                     = "  - %s\n"
	ItemIDUsage                  = "allow to overwrite item_id"
	ListItemIDUsage              = "allow to overwrite list_item_id"
	ListLikeRemoveUsage          = "allow remove like for list"
	ListUsage                    = "allow to overwrite list"
	ModuleUsage                  = "allow use selected module"
	MovieIDUsage                 = "allow to overwrite movieID"
	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"
	PlaybackNotFoundWithID       = "playback not found with Id:%d"
	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"
	RatingUsage                  = "allow to overwrite rating"
	RangeFormatDigits            = "%d-%d"
	RangeFormatFloats            = "%.1f-%.1f"
	Recent                       = "recent"
	ReasonUsage                  = "allow to overwrite reason"
	ReportMsgUsage               = "allow to overwrite message"
	RecommendationNotFoundWithID = "recommendation not found with Id:%s"
	RemoveUsage                  = "allow remove item"
	ReplyUsage                   = "allow to overwrite reply"
	FollowerRequestUsage         = "allow to overwrite follower_request"
	ResetAtUsage                 = "allow to overwrite reset_at"
	ScrobbleError                = "scrobble error:%w"
	SeasonUsage                  = "allow to overwrite season"
	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"
	SortByUsage                  = "allow to overwrite sort_by"
	SortHowUsage                 = "allow to overwrite sort_how"
	SpoilerUsage                 = "allow to overwrite spoiler"
	StartAtUsage                 = "allow to overwrite start_at"
	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"
	TranslationsUsage            = "allow to overwrite translations"
	WatchlistDescriptionUsage    = "allow to overwrite description"
	WatchlistNotesUsage          = "allow to overwrite notes"
	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"
	UsersTypeUsage               = "allow to overwrite type"
	UsersSectionUsage            = "allow to overwrite section"
	UserPendingFollowRequest     = "user is already being followed or there is a pending follow request"
	UserBlockedAlready           = "user is already blocked, or you try to block yourself"
	VerboseUsage                 = "print additional verbose information"
	VersionUsage                 = "get trakt-sync version"
	WatchedProgressError         = "watched progress error:%w"
)

usage strings

View Source
const (
	ActionTypeAll        = "all"
	AddHiddenItems       = "add_hidden_items"
	AddToCollection      = "add_to_collection"
	AddToFavorites       = "add_to_favorites"
	AddToHistory         = "add_to_history"
	AddToRatings         = "add_to_ratings"
	AddToWatchlist       = "add_to_watchlist"
	AddList              = "add_list"
	AddListItems         = "add_list_items"
	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"
	BlockedUsers         = "blocked_users"
	Calendar             = "calendar"
	Calendars            = "calendars"
	Certifications       = "certifications"
	Checkin              = "checkin"
	Collaborations       = "collaborations"
	Collected            = "collected"
	Collection           = "collection"
	CollectionProgress   = "collection_progress"
	Comment              = "comment"
	Comments             = "comments"
	Countries            = "countries"
	Dropped              = "dropped"
	Dvd                  = "dvd"
	Episode              = "episode"
	Episodes             = "episodes"
	Favorited            = "favorited"
	Favorites            = "favorites"
	FavoritesComments    = "favorites_comments"
	Finales              = "finales"
	Follow               = "follow"
	Followers            = "followers"
	Following            = "following"
	Friends              = "friends"
	FollowerRequests     = "follower_requests"
	Genres               = "genres"
	GetCollection        = "get_collection"
	GetFavorites         = "get_favorites"
	GetHistory           = "get_history"
	GetRatings           = "get_ratings"
	GetWatched           = "get_watched"
	GetWatchlist         = "get_watchlist"
	History              = "history"
	HiddenItems          = "hidden_items"
	IDLookup             = "id-lookup"
	ImdbFormat           = "imdb"
	ImdbIDFormat         = "Imdb"
	Item                 = "item"
	Items                = "items"
	Languages            = "languages"
	LastActivities       = "last_activities"
	LastEpisode          = "last_episode"
	Likes                = "likes"
	List                 = "list"
	ListItems            = "list_items"
	ListLikes            = "list_likes"
	ListComments         = "list_comments"
	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"
	Person               = "person"
	FollowingRequests    = "following_requests"
	Playback             = "playback"
	Played               = "played"
	Popular              = "popular"
	Profile              = "profile"
	ProgressWatched      = "progress_watched"
	ProgressCollected    = "progress_collected"
	Query                = "query"
	Ratings              = "ratings"
	Recommendations      = "recommendations"
	Related              = "related"
	Releases             = "releases"
	RemoveFromCollection = "remove_from_collection"
	RemoveFromHistory    = "remove_from_history"
	RemoveFromRatings    = "remove_from_ratings"
	RemoveFromWatchlist  = "remove_from_watchlist"
	RemoveFromFavorites  = "remove_from_favorites"
	RemoveHiddenItems    = "remove_hidden_items"
	RemoveListItems      = "remove_list_items"
	ReorderFavorites     = "reorder_favorites"
	ReorderWatchlist     = "reorder_watchlist"
	ReorderLists         = "reorder_lists"
	ReorderListItems     = "reorder_list_items"
	Replies              = "replies"
	SavedFilters         = "saved_filters"
	Scrobble             = "scrobble"
	Search               = "search"
	Season               = "season"
	SeasonPremieres      = "season_premieres"
	Seasons              = "seasons"
	Settings             = "settings"
	Show                 = "show"
	ShowEpisode          = "show_episode"
	Shows                = "shows"
	Stats                = "stats"
	Studios              = "studios"
	Summary              = "summary"
	Sync                 = "sync"
	TextQuery            = "text-query"
	TmdbFormat           = "tmdb"
	TmdbIDFormat         = "Tmdb"
	Translations         = "translations"
	Trending             = "trending"
	TvdbFormat           = "tvdb"
	TvdbIDFormat         = "Tvdb"
	UpdatedIDs           = "updated_ids"
	UpdateWatchlist      = "update_watchlist"
	UpdateFavorites      = "update_favorites"
	Updates              = "updates"
	Users                = "users"
	User                 = "user"
	Videos               = "videos"
	Watched              = "watched"
	WatchedProgress      = "watched_progress"
	Watching             = "watching"
	Watchlist            = "watchlist"
	WatchlistComments    = "watchlist_comments"
)

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)
	ZeroValueInt64        = int64(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