Skip to content

Add cinema: Glasgow Film Theatre#24

Open
andrewferguson wants to merge 5 commits intomasterfrom
addcinema-glasgowfilmtheatre
Open

Add cinema: Glasgow Film Theatre#24
andrewferguson wants to merge 5 commits intomasterfrom
addcinema-glasgowfilmtheatre

Conversation

@andrewferguson
Copy link
Copy Markdown
Collaborator

@andrewferguson andrewferguson commented Jan 10, 2022

Add the Glasgow Film Theatre to the archiver.

Some notes:

  1. I added autism-friendly and dementia-friendly as attributes since the HTML exposed these. However, I'm not sure if we will want to have these attributes in the final version.
  2. Currently the archiver returns all showings in the next 7 days, regardless of the value of STANDARD_DAYS_AHEAD. I am preparing a separate PR to ensure that the archiver class filters out results beyond STANDARD_DAYS_AHEAD.

Edit: oh dear, I seem to have managed to somehow include the Savoy archiver in this PR. No idea how I did that...

@davidferguson davidferguson force-pushed the addcinema-glasgowfilmtheatre branch from c2d3152 to 17e7ccc Compare November 5, 2022 17:38
@davidferguson
Copy link
Copy Markdown
Owner

Rebased and fixed so it now doesn't include savoy cinemas. Will do a code review shortly.

Copy link
Copy Markdown
Owner

@davidferguson davidferguson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, a couple of minor changes to deal with "Noirvember" but other than that it's nearly ready to merge.

# if no format is given, assume digital
if len(film_attributes['format']) == 0:
film_attributes['format'] = ['digital']
# clean up the title by removing trailing characters,
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In November the GFT have Noirvember - it would be good to strip that out of the film name.

Additionally the Noirvember films have + introduction in their title - we could take these out too? Maybe have an attribute for whether the screening is having an introduction?

for meta_item in metadata.find_all('li'):
meta_label = meta_item.find('span', class_='meta-label').text.strip()
meta_value = meta_item.find('span', class_='meta-value').text.strip()
if meta_label == 'Year of Production':
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some films (like the noirvember ones) the label is simply Year, not Year of Production - can we handle both cases please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants