Skip to content

Change in feed tries to overwrite every file in spool directory #45

Description

@tonywhitmore

I've experienced a few times when something changes in a feed that is otherwise up-to-date. (I don't know what that "something" is but it has happened to me on multiple feeds.) Running castget against that feed prompts that a file already exists. Deleting that file and re-running castget then downloads the previously duplicated file, and errors on the next file in the feed. I've pasted an example below. I don't know what it is that causes castget to try to download the files again - perhaps there is a modification date in the feed?

One workaround is to move all the files out of the spool directory, run castget and then move all the files back in. This works until the "something" happens again.

I'm not sure what the best expected behaviour here would be. Ideally there would be a way for castget determine if a file has already been downloaded and not try to re-download it, even if something in the feed relating to that file has changed. Alternatively a "force-overwrite" option would do it.

tony@azal:~$ castget BabbleOn
Updating channel BabbleOn...
Enclosure file /home/tony/podcasts/BabbleOn/906915376-hollywoodbabbleon-371-caped-commentaries-9.mp3 already exists.
tony@azal:~$ rm /home/tony/podcasts/BabbleOn/906915376-hollywoodbabbleon-371-caped-commentaries-9.mp3
tony@azal:~$ castget BabbleOn
Updating channel BabbleOn...
Enclosure file /home/tony/podcasts/BabbleOn/893438968-hollywoodbabbleon-370-caped-commentaries-8.mp3 already exists.
tony@azal:~$ rm /home/tony/podcasts/BabbleOn/893438968-hollywoodbabbleon-370-caped-commentaries-8.mp3
tony@azal:~$ castget BabbleOn
Updating channel BabbleOn...
Enclosure file /home/tony/podcasts/BabbleOn/890189104-hollywoodbabbleon-369-caped-commentaries-7.mp3 already exists.
tony@azal:~$ castget BabbleOn
Updating channel BabbleOn...
Enclosure file /home/tony/podcasts/BabbleOn/886485790-hollywoodbabbleon-368-caped-commentaries-6.mp3 already exists.

etc. etc.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions