Skip to content

Commit

Permalink
update missingEpisodesPerNow
Browse files Browse the repository at this point in the history
  • Loading branch information
henb13 committed Mar 10, 2022
1 parent 73df554 commit f7f4e33
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 49 deletions.
117 changes: 117 additions & 0 deletions server/db/migration/missingEpisodesPerNow.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
const missingEpisodesPerNow = [
"#1458 - Chris D’Elia",
"#1255 - Alex Jones Returns",
"#1218 - Gad Saad",
"#1206 - Mike Ward & Pantelis",
"#1197 - Michael Malice",
"#1187 - Kyle Kulinski",
"#1141 - Theo Von",
"#1103 - Tom Segura",
"#1093 - Owen Benjamin, Kurt Metzger",
"#1036 - Ari Shaffir, Bert Kreischer & Tom Segura",
"#1033 - Owen Benjamin",
"#998 - Owen Benjamin",
"#980 - Chris D’Elia",
"#979 - Sargon of Akkad",
"#963 - Michael Malice",
"#925 - Theo Von",
"#920 - Gavin McInnes",
"#912 - Pete Holmes",
"#911 - Alex Jones, Eddie Bravo",
"#820 - Milo Yiannopoulos",
"#810 - Big Jay Oakerson",
"#750 - Kip Andersen, Keegan Kuhn, producers of Conspiracy",
"#746 - TJ Kirk",
"#742 - Aubrey Marcus",
"#710 - Gavin McInnes",
"#702 - Milo Yiannopoulos",
"#674 - Brian Redban",
"#664 - Tom Segura & Christina Pazsitzky",
"#640 - Charles C. Johnson",
"#594 - Russell Peters",
"#582 - David Seaman",
"#570 - Ryan Parsons",
"#538 - Stefan Molyneux",
"#537 - Rich Vos",
"#533 - Chris D’elia",
"#525 - Bert Kreischer",
"#520 - David Seaman",
"#512 - Dan Savage",
"#506 - Moshe Kasher",
"#488 - Iliza Shlesinger",
"#487 - David Seaman",
"#463 - Louis Theroux",
"#461 - David Seaman",
"#454 - War Machine",
"#443 - Neal Brennan",
"#441 - Brian Dunning",
"#411 - Dave Asprey",
"#375 - Shane Smith",
"#374 - Marc Maron",
"#368 - David Seaman",
"#361 - Dave Asprey, Tait Fletcher",
"#358 - Bert Kreischer",
"#354 - Ari Shaffir, Amy Schumer",
"#349 - Greg Fitzsimmons",
"#344 - Stanley Krippner, Christopher Ryan",
"#340 - JD Kelley",
"#331 - Dr. Steven Greer",
"#324 - Sam Sheridan",
"#320 - Tim Ferriss",
"#314 - Ian Edwards",
"#303 - Matt Vengrin, Brian Redban",
"#294 - Ari Shaffir",
"#276 - David Seaman, Abby Martin, Dell Cameron, Brian Redban",
"#275 - Dave Asprey",
"#256 - David Seaman",
"#246 - Maynard J Keenan (Part 1)",
"#246 - Maynard J Keenan (Part 2)",
"#239 - Adam Kokesh",
"#232 - Giorgio Tsoukalos",
"#227 - Ari Shaffir",
"#213 - Eddie Bravo",
"#198 - Brody Stevens",
"#182 - Bryan Callen, Jimmy Burke, Brian Redban",
"#176 - Steven Rinella",
"#159 - Nick Thune",
"#155 - Dave Attell",
"#152 - Brian Redban",
"#149 - LIVE FROM THE ICEHOUSE (PART ONE)",
"#134 - Kevin Smith (Part 4)",
"#132 - Bert Kreischer",
"#128 - Joey Diaz, Brian Redban",
"#122 - Jamie Kilstein",
"#119 - Jan Irvin",
"#118 - Ari Shaffir",
"#116 - Russell Peters, Junior Simpson",
"#114 - Neal Brennan",
"#113 - Brian Posehn",
"#112 - Cliffy B, Johnny Cristo",
"#110 - Duncan Trussell",
"#108 - Joey Diaz, Brian Redban",
"#107 - Doug Benson",
"#102 - John Heffron",
"#98 - Daryl Wright, Brian Whitaker",
"#97 - Freddy Lockhart, Brian Redban",
"#92 - Jim Norton",
"#91 - Bill Burr",
"#88 - Andy Dick",
"#82 - Dave Foley",
"#81 - Pete Johansson",
"#75 - Sam Tripoli",
"#72 - Ari Shaffir",
"#66 - Nick Swardson",
"#57 - Jayson Thibault, Brian Redban",
"#55 - Duncan Trussell",
"#50 - Little Esther",
"#48 - Brian Redban",
"#42 - Duncan Trussell",
"#40 - Tyler Knight",
"#27 - Sam Tripoli",
"#21 - Brian Redban",
"#20 - Tom Segura",
"#4 - Brian Redban",
"Fight Companion - February 19, 2017",
];

module.exports = missingEpisodesPerNow;
46 changes: 0 additions & 46 deletions server/db/migration/missingEpsPerNow.js

This file was deleted.

6 changes: 3 additions & 3 deletions server/db/migration/setup.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const missingEpsPerNow = require("./missingEpsPerNow");
const missingEpisodesPerNow = require("./missingEpisodesPerNow");
const getSpotifyEpisodeNames = require("../../lib/getSpotifyEpisodeNames");
const getEpisodeNumber = require("../../lib/getEpisodeNumber");
const pool = require("../connect");

require("dotenv").config();

getSpotifyEpisodeNames().then(async (episodes) => {
episodes = episodes.concat(missingEpsPerNow);
episodes = episodes.concat(missingEpisodesPerNow);
episodes.sort((a, b) => getEpisodeNumber(a) - getEpisodeNumber(b));

await (async () => {
Expand All @@ -15,7 +15,7 @@ getSpotifyEpisodeNames().then(async (episodes) => {
const epNr = getEpisodeNumber(name);

try {
const onSpotify = !missingEpsPerNow.includes(name);
const onSpotify = !missingEpisodesPerNow.includes(name);
await client.query(`INSERT INTO all_eps VALUES(DEFAULT, $1, $2, $3)`, [
epNr,
name,
Expand Down

0 comments on commit f7f4e33

Please sign in to comment.