Documentation
¶
Index ¶
- Constants
- type LetterboxdExporter
- func (e *LetterboxdExporter) ExportCollectionMovies(movies []api.CollectionMovie) error
- func (e *LetterboxdExporter) ExportLetterboxdFormat(movies []api.Movie, ratings []api.Rating) error
- func (e *LetterboxdExporter) ExportMovieHistory(history []api.HistoryItem, apiClient *api.Client) error
- func (e *LetterboxdExporter) ExportMovies(movies []api.Movie, client *api.Client) error
- func (e *LetterboxdExporter) ExportRatings(ratings []api.Rating) error
- func (e *LetterboxdExporter) ExportShows(shows []api.WatchedShow) error
- func (e *LetterboxdExporter) ExportWatchlist(watchlist []api.WatchlistMovie) error
Constants ¶
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 ¶
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 ¶
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