Hello, On Sun, 25 Feb 2018, Stroller wrote: >> On 25 Feb 2018, at 14:40, David M. Fellows <[email protected]> wrote: >>> >>> However the files are named by ID, which is meaningless to humans: >>> >>> $ ls podcasts/2018-02-24/ | head 20150424_blog_pmoney.mp3 >>> 20150429_blog_pmoney.mp3 20150501_blog_pmoney.mp3 >>> 20150506_blog_pmoney.mp3 20150508_blog_pmoney.mp3 >>> 20150513_blog_pmoney.mp3 20150516_blog_pmoney.mp3 >>> 20150522_blog_pmoney2.mp3 20150522_blog_pmoney.mp3 >>> 20150527_blog_pmoney.mp3 $ >> >> Those look like dates to me. Probably the date the program was first aired. > >Yeah, they're the filenames of the files on NPR's website. > >https://www.npr.org/sections/money/ > >If you go to the page for any of the individual episodes and then >hover over the "download" link you'll see them to have this kind of >naming convention (it may have changed slightly since 2015, though). > >I would have assumed the podcast feed (RSS or whatever?) would >contain both the link to the episode, with a filename like this, and >also a human readable name, such as "Episode #566 - The Zoo Economy".
$ youtube-dl --download-archive .yt-dl-archive -f mpeg 'https://www.npr.org/rss/podcast.php?id=510289' [generic] podcast: Requesting header WARNING: Falling back on generic information extractor. [generic] podcast: Downloading webpage [generic] podcast: Extracting information [download] Downloading playlist: Planet Money [generic] playlist Planet Money: Collected 300 video ids (downloading 300 of them) [download] Downloading video 1 of 300 [generic] 20180223_pmoney_pmpod826: Requesting header [redirect] Following redirect to https://16543.mc.tritondigital.com:443/NPR_510289/media-session/9309ea03-306a-49b4-82ac-28f16c6b5fa5/anon.npr-mp3/npr/pmoney/2018/02/20180223_pmoney_pmpod826.mp3?orgId=1&d=1227&p=510289&story=588345420&t=podcast&e=588345420&ft=pod&f=510289 [generic] 20180223_pmoney_pmpod826: Requesting header [download] Destination: 826_-_The_Vodka_Proof__20180225__20180223_pmoney_pmpod826.mp3 [download] 21.1% of 18.96MiB at 2.28MiB/s ETA 00:06^C ERROR: Interrupted by user $ The --download-archive .yt-dl-archive records the already-downloaded media (their source (npr) and ids) in the file .yt-dl-archive in the current directory (adjust path to your liking...). And 'https://www.npr.org/rss/podcast.php?id=510289' is the url you get if you subscribe to the podcast. Oh, and I've set the output format by: ==== ~/.config/youtube-dl/config ==== --output '%(title)s__%(upload_date)s__%(id)s.%(ext)s' ==== HTH, -dnh -- Give a man fire, and he will be warm for a day, set a man on fire, and he will be warm for the rest of his life. -- Terry Pratchett

