Skip to content

Commit 5d22675

Browse files
committed
updated fm shows for 2nd semester, updated icons and logos to match new branding
1 parent b71c08e commit 5d22675

18 files changed

+63
-76
lines changed

mps_site/data/homepage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{
1515
"name": "DCUfm",
1616
"link": "/dcufm",
17-
"image": "assets/img/other/fm_logo.png",
17+
"image": "images/logos/fm_512.png",
1818
"alt_text": "MPS Sub-Group",
1919
"description": "DCU's official radio station, live all day Monday to Friday!",
2020
"social_links": [
@@ -25,7 +25,7 @@
2525
{
2626
"name": "DCUtv",
2727
"link": "/dcutv",
28-
"image": "assets/img/other/TV_Transparent.webp",
28+
"image": "images/logos/tv_512.png",
2929
"alt_text": "MPS Sub-Group",
3030
"description": "24 Hour Broadcast, Vlogs, Movies and more!",
3131
"social_links": [

mps_site/scripts.py

Lines changed: 55 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -68,96 +68,87 @@ def process_linktree_data(sheet_url):
6868
return linktree
6969

7070

71+
from datetime import datetime
72+
7173
def get_date_time():
7274
date = datetime.now()
7375
day_name = date.strftime("%A")
7476
hour = date.hour
7577

7678
timetable = {
7779
"Monday": {
78-
9: "The X-Philes: Sinead Keane",
79-
10: "Tyler Murphy, Bethany Barrett, Zosia Kryszak",
80-
11: "Ciara Stell, Emily Mullally, Clodagh Mahon",
81-
12: "The Lunchtable: Aoife Hyland, Sé O’Reilly, Abbie Mahon Morrissey",
82-
13: "Newswire: Daniel Hayden and Grace Collins",
83-
14: "Action Replay: Eoin O'Sullivan and Mya Breen",
84-
15: "Ode to Youth: Debby Ugoiwa",
85-
16: "Perfecting perfection: Dearbhla McCormick, Aoibhín McEvoy",
86-
17: "Headlines, headlines, headlines: Adam Van Eekeren, Ester Pyykko",
87-
18: "Offside: Maxime Mancini",
88-
19: "No shows on at the moment",
89-
20: "Intrusive intruders: Angelina Zhao, Erin Reel",
80+
9: "The Football Show: Dylan Clarkin, Robert Curran",
81+
10: "Action Replay: Eoin O'Sullivan, Mya Breen",
82+
11: "No shows on at the moment",
83+
12: "Fresh Princes on Air: Jake Dalton, Paul Farrell, Beth o Connor, Shaney McConnon",
84+
13: "OnlySports: Oisin O Brien and Ryan Mulvaney",
85+
14: "Gossip Girls: Zöe Percival, Erin Miller, Mia Mulvaney, Kacey Matthews",
86+
15: "This & Yap: Olivia Doyle & Mya Breen",
87+
16: "CrowTalk: Sam Kennedy, Rory Dalton, David Keyes, Rian Lowry",
88+
17: "The Theme Machine!: Daire Canny",
89+
18: "Crucial Media for a Internet Generation: Daniel Salmon",
9090
},
9191
"Tuesday": {
92-
9: "For the Plot: Leonor Selas Amaral, Shane Patrick Meleady, Lily Quinn",
93-
10: "Diabhal Scéal: Carla Reilly, Kate Rayel, Siobhra Behan",
94-
11: "Tipsy Tuesday: Jack Reynolds, Ronan Casey",
95-
12: "Kamil Kasza, Daire Canny, Anna Rzanek",
96-
13: "Dylan Hand, Ruby McManus, Alex Rowley",
97-
14: "Amelia O'Carroll, Essia Baouni, Leah Cahill",
98-
15: "Limelight: Lauren Joyce and Holly O'Neill",
99-
16: "The Dugout: Eoin O'Sullivan, Rian Lowry, Cian Mulligan, James Whittaker",
100-
17: "HerCampus Podcast: Lauren Joyce",
101-
18: "Eline Lund, Ceri Dunne, Marija Vasilonoka",
102-
19: "Unfocused: Eoin Murphy, Shane Codd",
103-
20: "Kle'epin it real: Gabby Klee",
92+
9: "The Dibs Boys: Matthew Willis, Finn McElwain, Luke Nolan",
93+
10: "Track Talk: Sabina Donnery, Paddy Wanna, Emma Montalbani",
94+
11: "Impreviews: Shane Codd",
95+
12: "Alex, Dylan and Ruby on DCUFM: Alex Rowley, Dylan Hand, Ruby McManus",
96+
13: "Send Help: Erin Reel, Saoirse MacCarthy",
97+
14: "CineChat: Torna Mulconry",
98+
15: "Tipsy Tuesdays: Jack Reynolds, Ronan Casey",
99+
16: "Newswire: Daniel Hayden, Grace Collins",
100+
17: "Perfecting Perfection: Aoibhín McEvoy and Dearbhla McCormack",
101+
18: "Screen Queens: Roisin McManus, Beatriz Antunes, Sophie Finn, Zuzana Palenikova",
104102
},
105103
"Wednesday": {
106-
9: "Journalism Away Days: Ciaran Kirk, Liam Rigley, Adam Balmer",
107-
10: "Dibs Boys: Matthew Willis, Finn McElwain, Luke Nolan",
108-
11: "Jake Dalton, Beth O’Connor, Shaney McConnon",
109-
12: "Tiarnán O’Kelly, Evan Dalton",
110-
13: "Fly on the wall: Katie Walsh, Holly Smith",
111-
14: "Cine Chat: Torna Mulconry, Dylan Hand",
112-
15: "Soundwaves: Sophie King, Sarah Duff",
113-
16: "Sabina Donnery, Emma Montalbani, Paddy Wanna",
114-
17: "The Morning debrief: Aoife Loughrey, Ella Geary, Katie Keating",
115-
18: "Football Fraudwatch: Matthew Joyce, Aaron Ingram",
116-
19: "The Football Show: Dylan Clarkin, Robert Curran",
117-
20: "Sound check",
104+
9: "Evan’s Double Entendre: Evan Dalton",
105+
10: "Show Ate: Kaitlyn Firmo",
106+
11: "Scene-It!: Iara Moreira, Aria Kazi",
107+
12: "The Grandstand Sports Show: Tiarnán O’Kelly and Evan Dalton",
108+
13: "Ah Here!: Alyson Stewart, Ava Shannon, Ellen McCahil, Ella Verveen and Georgia Ryan",
109+
14: "Fly on the wall: Katie Walsh, Holly Smith",
110+
15: "DCYouWantTheNews: Aaron Casey and Ailish Connor",
111+
16: "Five Stars from Comms: Lauren Joyce, Shona Kiely, Eanna Kavanagh, Sophie Egan, Eabha Kelly",
112+
17: "Is this it?: Helen Jenkins, Darragh Hallissy, Jack Dempsey, Max Daly, Daniel O’ Shea",
113+
18: "No shows on at the moment",
118114
},
119115
"Thursday": {
120-
9: "Theme Machine: Daire Canny",
121-
10: "The Lore: Jane O’Reilly, Shelby Brennan, Molly McGurrin, Allyson Lambe",
122-
11: "Amy Caffrey, Shona Nugent, Kaitlyn Firmo",
123-
12: "Iara Moreira, Louise Akpofure, Aria Kazi",
124-
13: "PS talking BS: Sarah Murtagh, Patrycja Sykula",
125-
14: "This and Yap: Mya Breen, Olivia Doyle",
126-
15: "Crow talk: David Keyes, Rian Lowry, Rory Dalton, Sam Kennedy",
127-
16: "CinePop Chronicles: Sophie Egan and guests",
128-
17: "The SU Crew: Karl Ormsby, Aoife Butler, Brandon Perry, Alishaer Ahmed, Jamie Mangan",
129-
18: "Is this it?",
130-
19: "The Original Sin: Sam Murray, Douglas Murray",
131-
20: "Huge Jazz: Al Power, Michael Murphy, Tyler Murphy",
116+
9: "Serial Thrillas: Sam Cummins agus Eoghan Murphy",
117+
10: "The Morning Debrief: Aoife Loughrey, Katie Keating, Ella Geary",
118+
11: "The Original Sin: Sam Murray - Douglas Murray",
119+
12: "Journalism Away Days: Patrick Walsh, Adam Balmer, Liam Rigley",
120+
13: "The Dugout: Eoin O'Sullivan, Rian Lowry, Cian Mulligan, James Whittaker",
121+
14: "The Lore: Molly McGurrin, Allyson Lambe, Shelby Brennan, Jane O’Reilly",
122+
15: "Show Y: Alex Lyons, Jack Mc Avinue",
123+
16: "Limelight: Lauren Joyce, Holly O'Neill",
124+
17: "Her Voice: Lauren Joyce",
125+
18: "Wellness Check with VP for Wellbeing: Jamie Mangan",
132126
},
133127
"Friday": {
134-
9: "Paddock to Pitch: Aimee Donnelly, Abby Whelan",
135-
10: "Hear us out: Dylan Tierney, Aine Foy, Sarah O’Donnell",
136-
11: "Ah Here!: Ava Shannon, Alyson Stewart, Georgia Ryan, Ella Verveen, Ellen McCahill",
137-
12: "Gossip girls: Zöe Percival, Kacey Matthews, Mia Mulvaney, Erin Miller",
138-
13: "Hot Girl Nonsense: Robyn Lawlor",
139-
14: "Congitive Dissonance: Éanna Kavanagh",
140-
15: "No shows on at the moment",
141-
16: "DCYou want the news? : Ailish Connor, Aaron Casey",
128+
9: "Diabhal scéal: Siobhra Behan, Carla Reilly, Kate Rayel",
129+
10: "Sound Check: Lauren textor, Adam Van ekereen, Katie monks",
130+
11: "Subway Wednesdays: Sean Baker, Aaron Conway",
131+
12: "For The Plot: Leonor Selas Amaral, Lily Quinn & Shane Meleady",
132+
13: "Soundwaves: Sarah Duff, Sophie King",
133+
14: "ChitChatFM: Emily Mullally, Clodagh Mahon, Ciara Stell",
134+
15: "Ode to Youth: Debby Ugoiwa",
135+
16: "No shows on at the moment",
142136
17: "No shows on at the moment",
143137
18: "No shows on at the moment",
144-
19: "No shows on at the moment",
145138
}
146139
}
147140

148-
if day_name in timetable and 9 <= hour <= 20:
149-
current_show = timetable[day_name].get(
150-
hour, "No shows on at the moment")
151-
previous_show = timetable[day_name].get(
152-
hour - 1, "No shows on at the moment")
153-
next_show = timetable[day_name].get(
154-
hour + 1, "No shows on at the moment")
141+
if day_name in timetable and 9 <= hour <= 18:
142+
current_show = timetable[day_name].get(hour, "No shows on at the moment")
143+
previous_show = timetable[day_name].get(hour - 1, "No shows on at the moment")
144+
next_show = timetable[day_name].get(hour + 1, "No shows on at the moment")
155145
else:
156146
current_show = previous_show = next_show = "No shows on at the moment"
157147

158148
return previous_show, current_show, next_show
159149

160150

151+
161152
def get_latest_video_id(channel_url):
162153
feed = feedparser.parse(channel_url)
163154

562 KB
Loading
620 KB
Loading
613 KB
Loading
251 KB
Loading
542 KB
Loading
56.9 KB
Loading
533 KB
Loading
51.3 KB
Loading

0 commit comments

Comments
 (0)