dplocki / podcast-downloader

The Python script for downloading new mp3 from RSS given channels
GNU General Public License v3.0
115 stars 14 forks source link

Can't download from this RSS #26

Closed luckybencosmos closed 1 year ago

luckybencosmos commented 1 year ago

Describe the bug Can't download from this RSS: "https://www.omnycontent.com/d/playlist/6dd8413b-ede6-483a-bf4e-ab80014939de/20f4bf02-d62f-40b2-b532-af10011ba71b/2bdbf0f4-e0ca-4343-9fb2-af10011ba729/podcast.rss"

To Reproduce jason file:

{
    "if_directory_empty": "download_from_4_days",
    "podcasts": [
        {
            "name": " Listening Time",
            "rss_link": "https://www.omnycontent.com/d/playlist/6dd8413b-ede6-483a-bf4e-ab80014939de/20f4bf02-d62f-40b2-b532-af10011ba71b/2bdbf0f4-e0ca-4343-9fb2-af10011ba729/podcast.rss",
            "path": "./ttt",
            "file_name_template": "[%publish_date%] %title%.%file_extension%"
        }
    ]
}

Command: python3 -m podcast_downloader

Expected behavior Download episodes.

Error message

[2023-02-05 14:48:21] Loading configuration (from file: "~/.podcast_downloader_config.json")
[2023-02-05 14:48:21] Checking " Listening Time"
[2023-02-05 14:48:22] Last downloaded file "<none>"
[2023-02-05 14:48:22]  Listening Time: Nothing new
[2023-02-05 14:48:22] ------------------------------
[2023-02-05 14:48:22] Finished

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

dplocki commented 1 year ago

Hi, according to your configuration, you if have empty directory, the script will download all episodes since last four days. The last episode from the RSS you provided, has been publish 30 Jan, so six days ago.

If you change the value from download_from_4_days to download_from_6_days (today at least, tomorrow it has be 7 days), it will download the episode from 30 Jan. Eventually use option download_last.

JorgeQuevedoC commented 1 year ago

Hi, I am trying to download an episode of this feed, but not sure what to use in the path configuration value. I haven't been able to run it with the demo in the Readme

{ "if_directory_empty": "download_from_4_days", "podcasts": [ { "name": "The Skeptic Guide", "rss_link": "http://www.theskepticsguide.org/feed/rss.aspx", "path": "~/podcasts/SGTTU" } ] }

image

dplocki commented 1 year ago

Hi. It is MacOS? Thanks for reporting the issue. Before I the fix, you may enter the whole path instead of ~ (I am guessing /Users/Jorge/podcasts/SGTTU -> make sure that path exists).

JorgeQuevedoC commented 1 year ago

Hi. It did solve it, but now I am getting a different error image

I am using download_last

dplocki commented 1 year ago

You are using the older code, I have already fix that error: https://github.com/dplocki/podcast-downloader/commit/cc7aa114a14671cc646202e60df63d5e1d8c7274

JorgeQuevedoC commented 1 year ago

@dplocki it works beautifully!!

dplocki commented 1 year ago

Hi - Just making sure: your problem has been solved?

Edit: Assuming, that it is solved. Closing