Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cinemas/davidleancinema.org.uk/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ function toMovie($, showEl) {
async function transform({ movieListPage }, sourcedEvents) {
const $ = cheerio.load(movieListPage, { xmlMode: true });
const shows = $("venues > venue > shows > show").toArray();
const movies = shows.map((el) => toMovie($, el));
const movies = shows
.map((el) => toMovie($, el))
// Remove template placeholder entries (e.g. "Templates:", "Template - ")
.filter(({ title }) => !/^Templates?\s*[:-]/i.test(title));

if (movies.length === 0) {
throw new Error("No movies found - the page structure may have changed");
Expand Down
6 changes: 5 additions & 1 deletion cinemas/lumiereromford.com/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ const cinesyncTransform = require("../../common/cinesync.io/transform");
async function transform(data, sourcedEvents) {
const events = await cinesyncTransform(attributes, data, sourcedEvents);
return events.filter(({ title }) => {
const normalized = title.trim().toLowerCase();
// Remove Basking Babies events (e.g. "Baby Yoga Classes")
// "At Lumiere, we are more than just a cinema, we are a community space for
// a variety of activities - from art classes to meditation to exercise."
return !title.trim().toLowerCase().endsWith("basking babies");
if (normalized.endsWith("basking babies")) return false;
// Remove placeholder test entry
if (normalized === "test film") return false;
return true;
});
}

Expand Down
1 change: 1 addition & 0 deletions common/get-movie-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const ignoredIds = [
41233, // Step Up 3D -- https://www.themoviedb.org/movie/41233-step-up-3d
129284, // The Dude -- https://www.themoviedb.org/movie/129284-the-dude
1666176, // Inferno -- https://www.themoviedb.org/movie/1666176-inferno
1662113, // Test Film -- https://www.themoviedb.org/movie/1662113-test-film
];

/**
Expand Down
2 changes: 2 additions & 0 deletions common/known-removable-phrases.js
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ const knownRemovablePhrases = [
"Barbican Library Rhyme Time",
"Baz Luhrmann Season",
"Baz Luhrmann's",
"Bedazzle Club",
"Best Of X-Men:",
"Best of 2025:",
"Belgrade Noir:",
Expand Down Expand Up @@ -1292,6 +1293,7 @@ const knownRemovablePhrases = [
"UK Theatrical Premiere",
"Exclusive UK Premiere",
"UK Premiere",
"World Theatrical Premiere",
"World Premiere",
"Premiere for",
"the premiere",
Expand Down
3 changes: 2 additions & 1 deletion common/normalize-title.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ function normalizeTitle(title, options) {
"mystery movie",
],
[/^.* \+ mystery movie/i, "mystery movie"],
[/Surprise Film (\d{1,2}\.\d{1,2}\.\d{1,2})?/i, "mystery movie"],
["vhs film", "movie"],
[/The Bill Reunion \d+/i, "The Bill Reunion"],
["R.E.M. Buster", "R.E.M. X Buster"],
Expand Down Expand Up @@ -848,7 +849,7 @@ function normalizeTitle(title, options) {
"What's Up Daiquiris, bag switcheroos: ",
],
["One Day in Whitechapel + ", "One Day in Whitechapel & "],
["Backrooms: Everything Must Go", "Backrooms"],
[/Backrooms\s*:\s+Everything Must Go( Bonus)?( Edition)?/i, "Backrooms"],
];

corrections.forEach(([phrase, replacement]) => {
Expand Down
Loading