Skip to content

About

Zero-dependency parser and schema notes for TV Time GDPR export CSV files (shows, movies, watched episodes) — powers showcal.tv

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TV Time GDPR Export Parser & Schema Reference

A concise, zero-dependency JavaScript parser and schema guide for decoding TV Time GDPR data export CSV files (tracking-prod-records-v2.csv, tracking-prod-records.csv, and seen_episode_latest.csv) into clean, structured JSON for backup or migrating your TV show, movie, and anime watch history.

One-click TV Time migration & timezone-aligned airing calendar: Looking for a fast cross-platform TV show, movie, and anime tracker with built-in local TV Time history import? Try ShowCal on iOS, Android, and Web.


TV Time GDPR Export File Structure

When you request a GDPR data export from TV Time, the archive contains several DynamoDB-style CSV dumps with quirky schemas:

Export CSV File What It Contains Key Parsing Quirks
tracking-prod-records-v2.csv Followed TV series (user-series-*), archived / watch-later flags (is_archived, is_for_later), and individual watched episodes (watch-episode-*) Mixed record types in one table; most_recent_ep_watched uses Go map[ep_id:... ep_no:... s_no:...] syntax; microsecond timestamps (1.78e+15)
tracking-prod-records.csv Movie watchlists and watch history (follow-*, towatch-*, watch-*, count-watch-movie, time-count) One movie appears across multiple rows (follow, towatch, watch) that must be merged by uuid / movie_name
seen_episode_latest.csv Compact table of watched episodes (episode_season_number, episode_number, episode_id, tv_show_name) Season 0 represents specials; titles with commas such as "Love, Death & Robots" require RFC-4180 quote-aware parsing

Included Files

  • parser.mjs — Zero-dependency RFC-4180 CSV parser, Go-map field decoder, and normalizers for tracking-prod-records-v2.csv, tracking-prod-records.csv, and seen_episode_latest.csv.
  • parser.test.mjs — Automated test suite (node --test).
  • samples/ — Synthetic TV Time export CSV fixtures covering series, movies, specials, quoted commas, and non-ASCII titles.

Quick Start & Tests

Requires Node.js 18+ (zero npm dependencies):

node --test
import fs from 'node:fs';
import {
  parseTrackingV2Csv,
  parseMoviesCsv,
  parseSeenEpisodesCsv,
} from './parser.mjs';

const seriesExport = parseTrackingV2Csv(
  fs.readFileSync('./samples/tracking-prod-records-v2-sample.csv', 'utf8'),
);
const moviesExport = parseMoviesCsv(
  fs.readFileSync('./samples/tracking-prod-records-sample.csv', 'utf8'),
);
const episodesExport = parseSeenEpisodesCsv(
  fs.readFileSync('./samples/seen-episode-latest-sample.csv', 'utf8'),
);

console.log({
  followedShows: seriesExport.shows.length,
  watchedEpisodesV2: seriesExport.watchedEpisodes.length,
  movies: moviesExport.movies.length,
  seenEpisodes: episodesExport.episodes.length,
});

About ShowCal

License

MIT

About

Zero-dependency parser and schema notes for TV Time GDPR export CSV files (shows, movies, watched episodes) — powers showcal.tv

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages