Improve the details in some of the logging
authorAlex Chan <alex@alexwlchan.net>
Wed, 19 Feb 2020 20:36:39 +0000 (20:36 +0000)
committerAlex Chan <alex@alexwlchan.net>
Wed, 19 Feb 2020 20:36:39 +0000 (20:36 +0000)
download_overcast_podcasts.py

index 981824d..e8a067d 100755 (executable)
@@ -201,7 +201,7 @@ def download_episode(episode, download_dir):
         logger.info(
             "Downloading %s: %s to %s", episode["podcast"]["title"], audio_url, filename
         )
-        download_url(url=audio_url, path=download_path, description="MP3 file")
+        download_url(url=audio_url, path=download_path, description=audio_url)
 
     # Save a blob of JSON with some episode metadata
     episode["filename"] = filename
@@ -226,7 +226,9 @@ def save_rss_feed(*, episode, download_dir):
 
     logger.info("Downloading RSS feed for %s", episode["podcast"]["title"])
     download_url(
-        url=episode["podcast"]["xml_url"], path=rss_path, description="RSS feed"
+        url=episode["podcast"]["xml_url"],
+        path=rss_path,
+        description="RSS feed for %s" % episode["podcast"]["title"],
     )