Last active
February 10, 2023 06:52
-
-
Save parkr/0eb300c93d84365c737c9896a1d97062 to your computer and use it in GitHub Desktop.
SQL query to export recommended/starred/favorited Overcast episodes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
feed_item.feedID, | |
feed.title as feedTitle, | |
feed_item.title, | |
feed_item.userRecommendedTime, | |
STRFTIME('%Y-%m-%d', CAST(feed_item.userRecommendedTime AS float),'unixepoch') AS userRecommendedTimeHuman, | |
feed.link as feedLink, | |
feed_item.url as episodeURL, | |
feed.artworkURL as feedArtworkURL | |
FROM OCFeedItem AS feed_item | |
INNER JOIN OCFeed AS feed ON (feed_item.feedID = feed.id) | |
WHERE feed_item.userRecommendedTime IS NOT NULL | |
AND feed_item.userRecommendedTime > 0 | |
AND feed.isPrivate = 0 | |
ORDER BY feed_item.userRecommendedTime DESC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment