Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import and display the Spanish language audio #263

Closed
reginafcompton opened this issue Mar 7, 2018 · 16 comments
Closed

Import and display the Spanish language audio #263

reginafcompton opened this issue Mar 7, 2018 · 16 comments
Milestone

Comments

@reginafcompton
Copy link
Contributor

Metro will soon include Spanish-language broadcasting of events.

DataMade will scrape these links and include them on the Boardagendas site. They will appear as a distinct button (during a current meeting) or url (on the Events page and Event detail page) - with text in Spanish language, e.g., "Escuchar."

Metro will add some test events in Legistar in April or May, and DataMade will do a test run with this data.

@reginafcompton reginafcompton changed the title Get and display the Spanish language audio Import and display the Spanish language audio Mar 7, 2018
@shrayshray shrayshray added this to the April issues milestone Mar 30, 2018
@shrayshray
Copy link
Collaborator

This is high priority for April (Chair's request). We're still waiting on the device from Granicus, and internal hardware setup to support this, but have some additional info for reference which may help Datamade get a head start on initial development so we're closer to "ready-to-go" once we have everything in place an are ready to deploy ...

Spanish Language broadcast of meetings is handled as a second meeting by Granicus. See example from LA City's Granicus site: https://www.lacity.org/your-government/audiovideo/council-meeting-video
lac-sap

Metro displays broadcast links on Legistar site, not Granicus site: https://metro.legistar.com/Calendar.aspx
Mockup of potential display:
lam-sap-mockup

@reginafcompton @hancush could you remind me of the prefix used for test meetings, so they are excluded from display on the live site? I can set up some fake/test meetings once I have this info. Thank you!

@reginafcompton
Copy link
Contributor Author

@shrayshray - we did not yet decide on a prefix. We could identify test events in several ways, but I think the best strategy would be to list the EventLocation as "TEST".

(Since the event name correlates with the committee, I'd rather not use that to identify test events - to avoid unexpected data cascades.)

First, we'll add a filter on Councilmatic to hide these test events.
After that, you can populate Legistar with some test data.

A question - will these test events be visible on Legistar?

@shrayshray
Copy link
Collaborator

@reginafcompton Yes, these events will be visible on Legistar.

@hancush
Copy link
Collaborator

hancush commented Apr 9, 2018

Hi, @shrayshray, just an FYI that I'm getting started on this, this week. I'll be in touch in the next couple of days about adding test data!

@hancush
Copy link
Collaborator

hancush commented Apr 13, 2018

The Plan

Overview

Instead of creating near-duplicate events in the OCD API, we are going to scrape English and Spanish events as a pair, and combine them into a single event with multiple media links, one for the English audio and one for the Spanish audio. This will enable us to display bilingual event pairs from Legistar as a unified event, with both English and Spanish audio, in the LA Metro Councilmatic interface.

Changes

In python-legistar

In scrapers-us-municipal.lametro

  • Override the new api_events handle to return English and Spanish event pairs, and store as one event with media links to the English and Spanish audio (started in the spanish_event branch)
  • Clean up existing English / Spanish event pairs already in the API (this will most likely only apply to the test events added for development of this feature)

Indjango-councilmatic

In la-metro-councilmatic

  • Clean up existing English / Spanish event pairs (ditto likely only test data)
  • Pin to new version of django-councilmatic
  • Display events with multiple media links, as described

@shrayshray
Copy link
Collaborator

@hancush Just wanted to check in with you on timing ... do you think all will be in place to test this, at least on the staging site, during the Board Meeting next week? Thursday, 4/26.

@hancush
Copy link
Collaborator

hancush commented Apr 16, 2018

@shrayshray Yes, it should be!

@hancush
Copy link
Collaborator

hancush commented Apr 19, 2018

@shrayshray Hi there!

Quick question: In your mockup of English and Spanish events, it looks like the audio link in the Legistar interface will look the same (both say "Listen link").

If this will be the case, no problem! We can disambiguate in our scraper. Before we do that, though, I just want to confirm: Will English and Spanish audio links look the same (i.e., appear as an "Audio" link) in the live Legistar interface?

screen shot 2018-04-19 at 10 21 48 am

@shrayshray
Copy link
Collaborator

@hancush Yes, that is correct -- the English and Spanish audio links both display as "Audio" on the Legistar site.
They list two meetings, one for the English meeting and one for the Spanish meeting, with identical links.
We'd like to have one meeting listed, with two different audio links, "English" and "Espaniol". Thanks!

@hancush
Copy link
Collaborator

hancush commented Apr 19, 2018

@shrayshray Got it, thanks!

@hancush
Copy link
Collaborator

hancush commented Apr 23, 2018

@shrayshray Are you all able to add audio links to the test events currently in Legistar? Thanks!

@hancush
Copy link
Collaborator

hancush commented May 8, 2018

Hi, @shrayshray

I've deployed changes to the staging site to import and display the Spanish media. Two immediately visible changes:

  1. You'll see links to audio for past events now say "Watch in English". We don't yet have meetings in the past with Spanish audio, but a link to the Spanish audio ("Ver en Español") would appear beneath "Watch in English".

screen shot 2018-05-08 at 11 34 48 am

  1. Events with English and Spanish audio have links for both.

screen shot 2018-05-08 at 11 52 59 am

I'll email to set up a time to test live event display!

@hancush
Copy link
Collaborator

hancush commented May 8, 2018

And we're live:

screen shot 2018-05-08 at 2 21 51 pm

Confirmed generic URLs lead to English and Spanish streams. Will check links again when the event-specific streams go live.

@hancush
Copy link
Collaborator

hancush commented May 8, 2018

Update: The event-specific URLs are now displaying appropriately!

screen shot 2018-05-08 at 2 33 45 pm

screen shot 2018-05-08 at 2 33 53 pm

@hancush
Copy link
Collaborator

hancush commented May 9, 2018

This has been deployed! Closing.

@hancush hancush closed this as completed May 9, 2018
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

No branches or pull requests

3 participants