File size: 18,881 Bytes
f5071ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 |
export function seedDatabase(firebase) {
function getUUID() {
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
const piece = (Math.random() * 16) | 0;
const elem = c === "x" ? piece : (piece & 0x3) | 0x8;
return elem.toString(16);
});
}
/* Series
============================================ */
// Documentaries
firebase.firestore().collection("series").add({
id: getUUID(),
title: "Tiger King",
description:
"An exploration of big cat breeding and its bizarre underworld, populated by eccentric characters.",
genre: "documentaries",
maturity: "18",
slug: "tiger-king",
});
firebase.firestore().collection("series").add({
id: getUUID(),
title: "Amanda Knox",
description:
"Amanda Marie Knox is an American woman who spent almost four years in an Italian prison.",
genre: "documentaries",
maturity: "12",
slug: "amanda-knox",
});
firebase.firestore().collection("series").add({
id: getUUID(),
title: "Citizenfour",
description:
"Citizenfour is a 2014 documentary film directed by Laura Poitras, concerning Edward Snowden and the NSA spying scandal.",
genre: "documentaries",
maturity: "12",
slug: "citizenfour",
});
firebase.firestore().collection("series").add({
id: getUUID(),
title: "Super Size Me",
description:
"Director Morgan Spurlock's social experiment in fast-food gastronomy sees him attempting to subsist uniquely on food from the McDonalds",
genre: "documentaries",
maturity: "12",
slug: "super-size-me",
});
firebase.firestore().collection("series").add({
id: getUUID(),
title: "Man on Wire",
description:
"Filmmaker James Marsh masterfully recreates high-wire daredevil Philippe Petit's 1974 stunt walking on a wire across the Twin Towers.",
genre: "documentaries",
maturity: "12",
slug: "man-on-wire",
});
// Comedies
firebase.firestore().collection("series").add({
id: getUUID(),
title: "The Office",
description:
"A motley group of office workers go through hilarious misadventures at the Scranton, Pennsylvania, branch of the Dunder Mifflin Paper Company.",
genre: "comedies",
maturity: "15",
slug: "the-office",
});
firebase.firestore().collection("series").add({
id: getUUID(),
title: "Arrested Development",
description:
"The Bluth family, once a prominent name in the business, loses everything after the head patriarch gets convicted for fraud.",
genre: "comedies",
maturity: "15",
slug: "arrested-development",
});
firebase.firestore().collection("series").add({
id: getUUID(),
title: "Curb Your Enthusiasm",
description:
"Larry David, a famous television writer and producer, gets into various misadventures with his friends and celebrity colleagues in Los Angeles.",
genre: "comedies",
maturity: "15",
slug: "curb-your-enthusiasm",
});
firebase.firestore().collection("series").add({
id: getUUID(),
title: "Family Guy",
description:
"Peter Griffin and his family of two teenagers, a smart dog, a devilish baby and his wife find themselves in some of the most hilarious scenarios.",
genre: "comedies",
maturity: "15",
slug: "family-guy",
});
firebase.firestore().collection("series").add({
id: getUUID(),
title: "South Park",
description:
"Four young, schoolgoing boys, Stan Marsh, Kyle Broflovski, Eric Cartman and Kenny McCormick, who live in South Park set out on various adventures.",
genre: "comedies",
maturity: "15",
slug: "south-park",
});
// Children
firebase.firestore().collection("series").add({
id: getUUID(),
title: "Peppa Pig",
description:
"Peppa, an outgoing preschool pig, participates in many energetic activities. She learns something new every day and has a lot of fun with her family and friends.",
genre: "children",
maturity: "0",
slug: "peppa-pig",
});
firebase.firestore().collection("series").add({
id: getUUID(),
title: "Dora The Explorer",
description:
"Dora, a seven-year-old girl of Latin American descent, embarks upon numerous adventures in the wilderness with her friend Boots, a monkey, and a variety of fun and useful tools.",
genre: "children",
maturity: "0",
slug: "dora-the-explorer",
});
firebase.firestore().collection("series").add({
id: getUUID(),
title: "PAW Patrol",
description:
"Six brave puppies, captained by a tech-savvy ten-year-old boy, Ryder, work together to accomplish high-stakes rescue missions to safeguard the residents of the Adventure Bay community.",
genre: "children",
maturity: "0",
slug: "paw-patrol",
});
firebase.firestore().collection("series").add({
id: getUUID(),
title: "Arthur",
description:
"Bespectacled aardvark Arthur Read demonstrates to kids how to deal with such childhood traumas and challenges as homework, teachers and bullies.",
genre: "children",
maturity: "0",
slug: "arthur",
});
firebase.firestore().collection("series").add({
id: getUUID(),
title: "SpongeBob",
description:
"A yellow sea sponge named SpongeBob SquarePants lives in the city of Bikini Bottom deep in the Pacific Ocean. ",
genre: "children",
maturity: "0",
slug: "spongebob",
});
// Crime
firebase.firestore().collection("series").add({
id: getUUID(),
title: "Making a Murderer",
description:
"Exonerated after spending nearly two decades in prison for a crime he did not commit, Steven Avery filed suit against Manitowoc County, Wis., and several individuals involved with his arrest.",
genre: "crime",
maturity: "18",
slug: "making-a-murderer",
});
firebase.firestore().collection("series").add({
id: getUUID(),
title: "Long Shot",
description:
"An innocent man is accused of murder, leading his attorney on a wild chase to confirm his alibi using raw footage from a television show.",
genre: "crime",
maturity: "18",
slug: "long-shot",
});
firebase.firestore().collection("series").add({
id: getUUID(),
title: "The Confession Killer",
description:
"Henry Lee Lucas was an American convicted serial killer whose crimes spanned from 1960 to 1983. He was convicted of murdering eleven people and condemned to death for the murder of Debra Jackson, although his sentence would be commuted to life in prison in 1998.",
genre: "crime",
maturity: "18",
slug: "the-confession-killer",
});
firebase.firestore().collection("series").add({
id: getUUID(),
title: "The Innocent Man",
description:
"Henry Lee Lucas was an American convicted serial killer whose crimes spanned from 1960 to 1983. He was convicted of murdering eleven people and condemned to death for the murder of Debra Jackson.",
genre: "crime",
maturity: "18",
slug: "the-innocent-man",
});
firebase.firestore().collection("series").add({
id: getUUID(),
title: "The Staircase",
description:
"In 2001 novelist Michael Peterson's wife died, and he claimed she perished after falling down stairs at their home. The medical examiner, however, determined that she had been beaten with a weapon",
genre: "crime",
maturity: "18",
slug: "the-staircase",
});
// Feel-good
firebase.firestore().collection("series").add({
id: getUUID(),
title: "Good Will Hunting",
description:
"Will Hunting, a genius in mathematics, solves all the difficult mathematical problems. When he faces an emotional crisis, he takes help from psychiatrist Dr Sean Maguireto, who helps him recover.",
genre: "feel-good",
maturity: "12",
slug: "good-will-hunting",
});
firebase.firestore().collection("series").add({
id: getUUID(),
title: "Forrest Gump",
description:
"Forrest Gump, a man with a low IQ, joins the army for service where he meets Dan and Bubba. However, he cannot stop thinking about his childhood sweetheart Jenny Curran, whose life is messed up.",
genre: "feel-good",
maturity: "12",
slug: "forrest-gump",
});
firebase.firestore().collection("series").add({
id: getUUID(),
title: "Juno",
description:
"Social misfit Juno protects herself with a caustic wit, but her unplanned pregnancy has the teen getting more involved in the lives of her baby's adoptive parents than she expected.",
genre: "feel-good",
maturity: "12",
slug: "juno",
});
firebase.firestore().collection("series").add({
id: getUUID(),
title: "Midnight In Paris",
description:
"Gil arrives with his fiancee and her family in Paris for a vacation, even as he tries to finish his debut novel. He is beguiled by the city, which takes him to a time past, away from his fiancee.",
genre: "feel-good",
maturity: "12",
slug: "midnight-in-paris",
});
firebase.firestore().collection("series").add({
id: getUUID(),
title: "School of Rock",
description:
"Dewey Finn, an amateur rock enthusiast, slyly takes up his friend's substitute teacher's job. Bearing no qualifications for it, he instead starts training the students to form a band.",
genre: "feel-good",
maturity: "12",
slug: "school-of-rock",
});
/* Films
============================================ */
// Drama
firebase.firestore().collection("films").add({
id: getUUID(),
title: "The Prestige",
description:
"Two friends and fellow magicians become bitter enemies after a sudden tragedy. As they devote themselves to this rivalry, they make sacrifices that bring them fame but with terrible consequences.",
genre: "drama",
maturity: "15",
slug: "the-prestige",
});
firebase.firestore().collection("films").add({
id: getUUID(),
title: "Fight Club",
description:
"Discontented with his capitalistic lifestyle, a white-collared insomniac forms an underground fight club with Tyler, a careless soap salesman. The project soon spirals down into something sinister.",
genre: "drama",
maturity: "15",
slug: "fight-club",
});
firebase.firestore().collection("films").add({
id: getUUID(),
title: "Kings Speech",
description:
"King George VI tries to overcome his stammering problem with the help of speech therapist Lionel Logue and makes himself worthy enough to lead his country through World War II.",
genre: "drama",
maturity: "15",
slug: "kings-speech",
});
firebase.firestore().collection("films").add({
id: getUUID(),
title: "The Revenant",
description:
"Hugh Glass, a legendary frontiersman, is severely injured in a bear attack and is abandoned by his hunting crew. He uses his skills to survive and take revenge on his companion, who betrayed him.",
genre: "drama",
maturity: "15",
slug: "the-revenant",
});
firebase.firestore().collection("films").add({
id: getUUID(),
title: "The Social Network",
description:
"Mark Zuckerberg creates a social networking site, Facebook, with the help of his friend Eduardo Saverin. But soon, a string of lies tears their relationship apart even as Facebook connects people.",
genre: "drama",
maturity: "12",
slug: "the-social-network",
});
// Suspense
firebase.firestore().collection("films").add({
id: getUUID(),
title: "Shutter Island",
description:
"Teddy Daniels and Chuck Aule, two US marshals, are sent to an asylum on a remote island in order to investigate the disappearance of a patient, where Teddy uncovers a shocking truth about the place.",
genre: "suspense",
maturity: "15",
slug: "shutter-island",
});
firebase.firestore().collection("films").add({
id: getUUID(),
title: "Gone Girl",
description:
"Nick Dunne discovers that the entire media focus has shifted on him when his wife Amy Dunne disappears on the day of their fifth wedding anniversary.",
genre: "suspense",
maturity: "15",
slug: "gone-girl",
});
firebase.firestore().collection("films").add({
id: getUUID(),
title: "Prisoners",
description:
"When the police take time to find Keller Dover's daughter and her friend, he decides to go on a search himself. His desperation leads him closer to finding the truth and also jeopardises his own life.",
genre: "suspense",
maturity: "15",
slug: "prisoners",
});
firebase.firestore().collection("films").add({
id: getUUID(),
title: "Seven",
description:
"A serial killer begins murdering people according to the seven deadly sins. Two detectives, one new to the city and the other about to retire, are tasked with apprehending the criminal.",
genre: "suspense",
maturity: "15",
slug: "seven",
});
firebase.firestore().collection("films").add({
id: getUUID(),
title: "Zodiac",
description:
"Robert Graysmith, a cartoonist by profession, finds himself obsessively thinking about the Zodiac killer. He uses his puzzle-solving abilities to get closer to revealing the identity of the killer.",
genre: "suspense",
maturity: "15",
slug: "zodiac",
});
// Children
firebase.firestore().collection("films").add({
id: getUUID(),
title: "Hotel Transylvania",
description:
"Dracula, who owns a high-end resort for monsters, attempts to keep his daughter from falling in love with Jonathan, a human.",
genre: "children",
maturity: "0",
slug: "hotel-transylvania",
});
firebase.firestore().collection("films").add({
id: getUUID(),
title: "Despicable Me",
description:
"Gru, a criminal mastermind, adopts three orphans as pawns to carry out the biggest heist in history. His life takes an unexpected turn when the little girls see him as their potential father.",
genre: "children",
maturity: "0",
slug: "despicable-me",
});
firebase.firestore().collection("films").add({
id: getUUID(),
title: "Frozen",
description:
"Anna sets out on a journey with an iceman, Kristoff, and his reindeer, Sven, in order to find her sister, Elsa, who has the power to convert any object or person into ice.",
genre: "children",
maturity: "0",
slug: "frozen",
});
firebase.firestore().collection("films").add({
id: getUUID(),
title: "Spirited Away",
description:
"In this animated feature by noted Japanese director Hayao Miyazaki, 10-year-old Chihiro (Rumi Hiiragi) and her parents (Takashi Naitô, Yasuko Sawaguchi) stumble upon a seemingly abandoned amusement park.",
genre: "children",
maturity: "0",
slug: "spirited-away",
});
firebase.firestore().collection("films").add({
id: getUUID(),
title: "Up",
description:
"Carl, an old widower, goes off on an adventure in his flying house in search of Paradise Falls, his wife's dream destination.",
genre: "children",
maturity: "0",
slug: "up",
});
// Thriller
firebase.firestore().collection("films").add({
id: getUUID(),
title: "Joker",
description:
"Forever alone in a crowd, failed comedian Arthur Fleck seeks connection as he walks the streets of Gotham City.",
genre: "thriller",
maturity: "15",
slug: "joker",
});
firebase.firestore().collection("films").add({
id: getUUID(),
title: "A Quiet Place",
description:
"The Abbott family must now face the terrors of the outside world as they fight for survival in silence. Forced to venture into the unknown, they realize that the creatures that hunt by sound are not the only threats that lurk beyond the sand path.",
genre: "thriller",
maturity: "15",
slug: "a-quiet-place",
});
firebase.firestore().collection("films").add({
id: getUUID(),
title: "Black Swan",
description:
"Nina, a ballerina, gets the chance to play the White Swan, Princess Odette. But she finds herself slipping into madness when Thomas, the artistic director, decides that Lily might fit the role better.",
genre: "thriller",
maturity: "15",
slug: "black-swan",
});
firebase.firestore().collection("films").add({
id: getUUID(),
title: "Nightcrawler",
description:
"Louis Bloom, a petty thief, realises that he can make money by capturing photographs of criminal activities and starts resorting to extreme tactics to get them.",
genre: "thriller",
maturity: "15",
slug: "nightcrawler",
});
firebase.firestore().collection("films").add({
id: getUUID(),
title: "The Silence of The Lambs",
description:
"Clarice Starling, an FBI agent, seeks help from Hannibal Lecter, a psychopathic serial killer and former psychiatrist, in order to apprehend another serial killer who has been claiming female victims.",
genre: "thriller",
maturity: "15",
slug: "the-silence-of-the-lambs",
});
// Romance
firebase.firestore().collection("films").add({
id: getUUID(),
title: "A Star Is Born",
description:
"After falling in love with struggling artist Ally, Jackson, a musician, coaxes her to follow her dreams, while he battles with alcoholism and his personal demons.",
genre: "romance",
maturity: "15",
slug: "a-star-is-born",
});
firebase.firestore().collection("films").add({
id: getUUID(),
title: "Blue Valentine",
description:
"Dean and Cynthia are married with a daughter and their marriage is about to fall apart. Both come from dysfunctional families and struggle to make sense of their relationship.",
genre: "romance",
maturity: "15",
slug: "blue-valentine",
});
firebase.firestore().collection("films").add({
id: getUUID(),
title: "La La Land",
description:
"Sebastian (Ryan Gosling) and Mia (Emma Stone) are drawn together by their common desire to do what they love. But as success mounts they are faced with decisions that begin...",
genre: "romance",
maturity: "15",
slug: "la-la-land",
});
firebase.firestore().collection("films").add({
id: getUUID(),
title: "The Notebook",
description:
"Duke reads the story of Allie and Noah, two lovers who were separated by fate, to Ms Hamilton, an old woman who suffers from Alzheimer's, on a daily basis out of his notebook.",
genre: "romance",
maturity: "15",
slug: "the-notebook",
});
firebase.firestore().collection("films").add({
id: getUUID(),
title: "Titanic",
description:
"Seventeen-year-old Rose hails from an aristocratic family and is set to be married. When she boards the Titanic, she meets Jack Dawson, an artist, and falls in love with him.",
genre: "romance",
maturity: "15",
slug: "titanic",
});
}
|