export

package
v1.0.18-0...-f88c7b2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DateFormat     = "2006-01-02"
	TimeFormat     = "15-04"
	DateTimeFormat = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LetterboxdExporter

type LetterboxdExporter struct {
	// contains filtered or unexported fields
}

LetterboxdExporter handles the export of movies to Letterboxd format

func NewLetterboxdExporter

func NewLetterboxdExporter(cfg *config.Config, log logger.Logger) *LetterboxdExporter

NewLetterboxdExporter creates a new Letterboxd exporter

func (*LetterboxdExporter) ExportCollectionMovies

func (e *LetterboxdExporter) ExportCollectionMovies(movies []api.CollectionMovie) error

ExportCollectionMovies exports the user's movie collection to a CSV file in Letterboxd format

func (*LetterboxdExporter) ExportLetterboxdFormat

func (e *LetterboxdExporter) ExportLetterboxdFormat(movies []api.Movie, ratings []api.Rating) error

ExportLetterboxdFormat exports the given movies to a CSV file in Letterboxd import format The format matches the official Letterboxd import format with columns: Title, Year, imdbID, tmdbID, WatchedDate, Rating10, Rewatch

func (*LetterboxdExporter) ExportMovieHistory

func (e *LetterboxdExporter) ExportMovieHistory(history []api.HistoryItem, apiClient *api.Client) error

ExportMovieHistory exports the user's complete movie watch history to a CSV file with individual watch events

func (*LetterboxdExporter) ExportMovies

func (e *LetterboxdExporter) ExportMovies(movies []api.Movie, client *api.Client) error

ExportMovies exports the given movies to a CSV file in Letterboxd format

func (*LetterboxdExporter) ExportRatings

func (e *LetterboxdExporter) ExportRatings(ratings []api.Rating) error

ExportRatings exports the user's movie ratings to a CSV file in Letterboxd format

func (*LetterboxdExporter) ExportShows

func (e *LetterboxdExporter) ExportShows(shows []api.WatchedShow) error

ExportShows exports the user's watched shows to a CSV file

func (*LetterboxdExporter) ExportWatchlist

func (e *LetterboxdExporter) ExportWatchlist(watchlist []api.WatchlistMovie) error

ExportWatchlist exports the user's movie watchlist to a CSV file in Letterboxd format

Jump to

Keyboard shortcuts

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