Skip to content

Commit 91a29f2

Browse files
committed
Overcast.fm was updated, so the episode and podcast title html changed.
1 parent b8f4c5c commit 91a29f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

overcast.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def get_episode_detail(self, episode_id, time_remaining_seconds=None):
7575

7676
return {
7777
'id': episode_href.lstrip('/'),
78-
'title': doc.cssselect('div.titlestack div.title')[0].text_content(),
79-
'podcast_title': doc.cssselect('div.titlestack div.caption2 a')[0].text_content(),
78+
'title': doc.cssselect('div.centertext h2')[0].text_content(),
79+
'podcast_title': doc.cssselect('div.centertext h3 a')[0].text_content(),
8080
'offsetMillis': time_elapsed_seconds * 1000,
8181
'duration': duration,
8282
'data_item_id': doc.cssselect('audio#audioplayer')[0].attrib['data-item-id'],
@@ -89,7 +89,7 @@ def get_episode_detail(self, episode_id, time_remaining_seconds=None):
8989

9090
def get_episode_time_remaining_seconds(self, episode_id, episode_html):
9191
log.debug('''getting the remaining time. episode id is %s''', episode_id)
92-
podcast_id = episode_html.cssselect('div.titlestack div.caption2 a')[0].attrib['href']
92+
podcast_id = episode_html.cssselect('div.centertext h3 a')[0].attrib['href']
9393
podcast_href = urlparse.urljoin('https://overcast.fm', podcast_id)
9494
doc = self._get_html(podcast_href)
9595

0 commit comments

Comments
 (0)