Skip to content

Commit

Permalink
Add fallback for videoId on invidious plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dyeray committed Jan 23, 2024
1 parent b4df80d commit 797f735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/invidious.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def _get_items(self, entries: SelectorList) -> list[PodcastItem]:
return [self._get_item(entry) for entry in entries]

def _get_item(self, entry: Selector):
video_id = entry.css('videoId::text').get()
video_id = entry.css('videoId::text').get() or entry.css('id::text').get().split(':')[-1]
description = entry.css('content').get()
return PodcastItem(
item_id=video_id,
Expand Down

0 comments on commit 797f735

Please sign in to comment.