Skip to content

Commit

Permalink
relaunch a number of EKS eps with YT links
Browse files Browse the repository at this point in the history
  • Loading branch information
Khemarato Bhikkhu committed Oct 18, 2024
1 parent 49862a3 commit 0867a6d
Show file tree
Hide file tree
Showing 13 changed files with 50 additions and 43 deletions.
4 changes: 2 additions & 2 deletions _content/av/1619.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
title: "1619"
subcat: podcast
authors: ["Nikole Hannah-Jones"]
external_url: "https://www.nytimes.com/2020/01/23/podcasts/1619-podcast.html"
external_url: "https://www.listennotes.com/podcasts/1619-the-new-york-times-Mgbv8_2FdjL/"
source_url: "https://www.nytimes.com/2020/01/23/podcasts/1619-podcast.html"
course: america
base_value: 0.4
status: featured
tags:
- caste
Expand Down
4 changes: 3 additions & 1 deletion _content/av/appreciating-difficult-beauty_cooper-jones.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ subcat: podcast
editor: "Tressie McMillan Cottom"
external_url: "https://www.nytimes.com/2022/09/06/podcasts/transcript-ezra-klein-show-chloe-cooper-jones.html"
source_url: "https://www.nytimes.com/2022/09/06/opinion/ezra-klein-podcast-chloe-cooper-jones.html"
course: feeling # solidly
status: rejected
reason: "The NYT put this episode behind a paywall"
tags:
- feeling
- disability
- sati
- inner
Expand Down
8 changes: 4 additions & 4 deletions _content/av/attention-fracking_burnett-d-g.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ authors:
- "Ezra Klein"
subcat: podcast
external_url: "https://nyt.simplecastaudio.com/3026b665-46df-4d18-98e9-d1ce16bbb1df/episodes/9b165a51-7275-4529-be04-d70d3b72fbf6/audio/128/default.mp3"
source_url: "https://www.nytimes.com/2024/05/31/opinion/ezra-klein-podcast-d-graham-burnett.html"
status: rejected # previously featured
reason: "The NYT put this episode behind a paywall"
source_url: "https://youtu.be/ihGEL8ICXVM"
status: featured # maybe rejected later if the links break
future_reason: "The NYT put this episode behind a paywall"
course: becon
tags:
- becon
- sati
- feeling
- present
Expand Down
7 changes: 3 additions & 4 deletions _content/av/built-for-loneliness_liming-sheila.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ authors:
- "Sheila Liming"
- "Ezra Klein"
subcat: podcast
external_url: "https://www.nytimes.com/2023/04/18/opinion/ezra-klein-podcast-sheila-liming.html"
status: rejected
reason: "The NYT put this episode behind a paywall"
external_url: "https://youtu.be/LE9bVNq7Hvc"
source_url: "https://www.nytimes.com/2023/04/18/opinion/ezra-klein-podcast-sheila-liming.html"
course: america
tags:
- america
- social
- media
- places
Expand Down
7 changes: 3 additions & 4 deletions _content/av/green-growth_ritchie-hannah.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ authors:
- "Hannah Ritchie"
subcat: podcast
editor: "Ezra Klein"
external_url: "https://www.nytimes.com/2024/04/30/opinion/ezra-klein-podcast-hannah-ritchie.html?showTranscript=1"
status: rejected
reason: "The NYT put this episode behind a paywall"
external_url: "https://youtu.be/Em98EioWeT4"
source_url: "https://www.nytimes.com/2024/04/30/opinion/ezra-klein-podcast-hannah-ritchie.html"
course: wider
tags:
- wider
- food
- future
- climate-change
Expand Down
9 changes: 5 additions & 4 deletions _content/av/how-being-animal_challenger-melanie.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ authors:
- "Melanie Challenger"
subcat: podcast
editor: "Ezra Klein"
external_url: "https://www.nytimes.com/2023/06/27/opinion/ezra-klein-podcast-melanie-challenger.html"
status: rejected # previously featured
reason: "The NYT put this episode behind a paywall"
external_url: "https://youtu.be/M3Wxyec3FjY"
source_url: "https://www.nytimes.com/2023/06/27/opinion/ezra-klein-podcast-melanie-challenger.html"
status: featured # maybe rejected soon
future_reason: "The NYT put this episode behind a paywall"
course: world
tags:
- world
- intellect
- the-west
- time
Expand Down
9 changes: 5 additions & 4 deletions _content/av/men-are-not-alright_reeves-richard.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ authors:
- "Richard Reeves"
subcat: podcast
editor: "Ezra Klein"
external_url: "https://www.nytimes.com/2023/03/10/opinion/ezra-klein-podcast-richard-reeves.html"
status: rejected # previously featured
reason: "The NYT put this episode behind a paywall"
external_url: "https://youtu.be/ZzoFRKnbwIU"
source_url: "https://www.nytimes.com/2023/03/10/opinion/ezra-klein-podcast-richard-reeves.html"
status: featured # maybe rejected soon
future_reason: "The NYT put this episode behind a paywall"
course: gender
tags:
- gender
- aging
- education
- the-west
Expand Down
7 changes: 3 additions & 4 deletions _content/av/relationship-to-pain_zoffness.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ authors:
- "Rachel Zoffness"
subcat: podcast
editor: "Ezra Klein"
external_url: "https://www.nytimes.com/2023/02/21/opinion/17eks-ezra-klein-podcast-rachel-zoffness.html"
status: rejected
reason: "The NYT put this episode behind a paywall"
external_url: "https://youtu.be/gZdtrY8NuUc"
source_url: "https://www.nytimes.com/2023/02/21/opinion/17eks-ezra-klein-podcast-rachel-zoffness.html"
course: inner
tags:
- inner
- pain
- feeling
- medicine
Expand Down
9 changes: 5 additions & 4 deletions _content/av/weird-wonderful_robinson-kim-s.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ authors:
- "Kim Stanley Robinson"
- "Ezra Klein"
subcat: podcast
external_url: "https://www.nytimes.com/2022/07/15/opinion/ezra-klein-podcast-kim-stanley-robinson.html"
status: rejected # previously featured
reason: "The NYT put this episode behind a paywall"
external_url: "https://youtu.be/GlawgaCBbG8"
source_url: "https://www.nytimes.com/2022/07/15/opinion/ezra-klein-podcast-kim-stanley-robinson.html"
status: featured # maybe rejected soon
future_reason: "The NYT put this episode behind a paywall"
course: ambulit
tags:
- ambulit
- wider
- nature
- natural
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ authors:
- Alison Gopnik
- Ezra Klein
subcat: podcast
external_url: "https://player.fm/series/the-ezra-klein-show/a-conversation-about-human-minds-for-human-minds"
external_url: "https://youtu.be/k-53O38848U"
source_url: "https://www.nytimes.com/2021/04/16/opinion/ezra-klein-podcast-alison-gopnik.html"
status: rejected # previously featured
reason: "The NYT put this episode behind a paywall"
status: featured # maybe rejected soon
future_reason: "The NYT put this episode behind a paywall"
course: aging
tags:
- aging
- intellect
- neuroscience
- time
Expand Down
8 changes: 3 additions & 5 deletions _content/av/youre-weird_henrich-joseph.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ authors:
- "Joseph Henrich"
subcat: podcast
editor: "Ezra Klein"
external_url: "https://www.nytimes.com/2023/05/26/opinion/ezra-klein-podcast-joseph-henrich.html"
status: rejected
reason: "The NYT put this episode behind a paywall"
external_url: "https://youtu.be/G5sji_kJJ5A"
source_url: "https://www.nytimes.com/2023/05/26/opinion/ezra-klein-podcast-joseph-henrich.html"
course: culture
tags:
- culture
- culture
- present
- the-west
year: 2023
Expand Down
4 changes: 4 additions & 0 deletions _data/drive_folders.json
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,10 @@
"private": "https://drive.google.com/drive/folders/1pUHJQoiPAzn0F6bNZ7Afxmm3Xps8Iyoe",
"public": null
},
"fame": {
"private": "https://drive.google.com/drive/folders/1v5odBKDjRG8xxVOpyECmyAFwGt249jZB",
"public": null
},
"families": {
"private": "https://drive.google.com/drive/folders/122bswlp_0lq4iA-L9qSKVsK7l_iH7vaS",
"public": null
Expand Down
9 changes: 6 additions & 3 deletions scripts/gdrive.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,9 @@ def htmlify_ytdesc(description):
def _yt_thumbnail(snippet):
if 'high' in snippet['thumbnails']:
return snippet['thumbnails']['high']['url']
return snippet['thumbnails']['default']['url']
if 'default' in snippet['thumbnails']:
return snippet['thumbnails']['default']['url']
return ''

def make_ytvideo_summary_html(vid):
from tag_predictor import YOUTUBE_DATA_FOLDER
Expand Down Expand Up @@ -667,14 +669,15 @@ def make_ytplaylist_summary_html(ytplid):
ret = ""
plsnip = get_ytplaylist_snippet(ytplid)
desc = htmlify_ytdesc(plsnip.get('description', ''))
defaultimg = _yt_thumbnail(plsnip)
if desc:
ret += f"""<h2>Description (from YouTube)</h2><p>{desc}</p>"""
videos = get_ytvideo_snippets_for_playlist(ytplid, maxResults=50)
videos = get_ytvideo_snippets_for_playlist(ytplid, maxResults=500)
if len(videos) > 0:
ret += "<h2>Videos</h2>"
for video in videos:
ret += f"""<h3>{int(video['position'])+1}. <a href="https://youtu.be/{video['resourceId']['videoId']}">{video['title']}</a></h3>"""
ret += f"""<p><img src="{_yt_thumbnail(video)}" /></p>"""
ret += f"""<p><img src="{_yt_thumbnail(video) or defaultimg}" /></p>"""
return ret

if __name__ == "__main__":
Expand Down

0 comments on commit 0867a6d

Please sign in to comment.