Closed LinuxSuRen closed 2 years ago
hi @SlyMarbo , thanks for your quick response.
I am not familiar with the spec of RSS. Thanks for giving the link. I'm not sure if the humanized enclosure length is common. I'll try to contact the author. This is the place where my project tried to read it.
By the way, I try to cache the RSS data into a local file in my project (a CLI for podcast). Do you have any suggestions about the below changes?
Hi @LinuxSuRen. Could you achieve the same result by fetching the feed directly (using http.Get(rssURL)
), then caching the data before calling rss.Parse(data)
? I'm slightly reluctant to store the raw data in the feed object, as it will increase memory usage considerably.
hi @SlyMarbo thanks for your suggestion. It's great!
I'm going to close this PR until I have a better idea.
Hi @LinuxSuRen. Thanks for your contribution, I really appreciate it. Do you have any data on how widespread 'humanized' enclosure lengths are? The spec gives the length as a simple number, so I'm reluctant to accept other formats unless they are widespread. If there's only one source that gives this format, would it be possible to request the source use the correct format instead?