* Extracts the video ID from a playlist item, preferring the stable * `contentDetails.videoId` over the legacy `snippet.resourceId.videoId`.
(item: PlaylistItem)
| 172 | * `contentDetails.videoId` over the legacy `snippet.resourceId.videoId`. |
| 173 | */ |
| 174 | function getVideoId(item: PlaylistItem): string { |
| 175 | return item.contentDetails?.videoId ?? item.snippet?.resourceId?.videoId ?? '' |
| 176 | } |
| 177 | |
| 178 | /** |
| 179 | * Reads the optional `publishedAfter` cutoff from sourceConfig as a timestamp (ms), |
no outgoing calls
no test coverage detected