Skip to content

Conversation

@antfred
Copy link

@antfred antfred commented Aug 30, 2018

Thanks a lot for your project, it is exactly what I was looking for!

Some podcasts provide always the same filename, or the file names are gibberish, see #20. I added a new option when downloading the episodes
(--rename-files) so that filenames are generated per episode using the schema:
%Y-%m-%d_<title>.
In addition, the title gets stripped of characters which would be illegal in some filesystems to prevent issues

It is probably not the most pytonic code but it seems to me to do its job, glad if I can give back to some users.

brtmr and others added 13 commits March 18, 2018 21:45
take filename from content-disposition header if present
* Added option to override file names

Some podcasts provide always the same filename, or meaningless file names. I added an option --rename-files to the episodes download function so that filenames are generated per episode using the schema:
%Y-%m-%d_<title>.<ext>
In addition, the title gets stripped of characters which would be illegal in some filesystems to prevent issues
* Added option to override file names

Some podcasts provide always the same filename, or meaningless file names. I added an option --rename-files to the episodes download function so that filenames are generated per episode using the schema:
%Y-%m-%d_<title>.<ext>
In addition, the title gets stripped of characters which would be illegal in some filesystems to prevent issues
Bumps [requests](https://github.com/requests/requests) from 2.11.1 to 2.20.0.
- [Release notes](https://github.com/requests/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/master/HISTORY.md)
- [Commits](psf/requests@v2.11.1...v2.20.0)

Signed-off-by: dependabot[bot] <support@github.com>
Sorry, I have not updated this project in a while. merged.
Bump requests from 2.11.1 to 2.20.0, to make dependabot happy.
@zachyordy
Copy link

Would love if this change could get merged into podfox. Podfox does exactly what I need, except for the odd podcast where each episode is named "stream.mp3". Thanks in advance for considering an update to the functionality of your utility!

hiwixxl and others added 8 commits September 27, 2020 19:41
Added mimetype "audio/x-mpeg" and check for troubling or missing publishing date
Add ability to prune old episodes via prune command.  Max age in days
can be set via configuration or passed in via command line.  This
requires tracking of the filename used to store the podcast episode,
so this has been added to the feed json.  Pulling the filename out of
the url can be used as a fallback; however, if the name has been pulled
out of the HTTP headers, then this feature will not be backwards
compatible for episodes named in this way and thus those will not be
pruned.
@fredthomsen
Copy link
Contributor

This is a good PR. I've started using this in conjunction with the prune PR I made #43. This makes it very easy for those of us who have podcasts on our network being shared via samba, nfs, or upnp so we can easily see what episode it actually is.

Python3.9 removes the `base64.encodingstring` and `base64.decodestring`
after being deprecated in an earlier version.  Update feedparser to a
version that doesn't reference these functions so that we don't crash on
python3.9.
@BrianEnigma
Copy link

Has this PR/project been abandoned? This PR from 2018 is just what I'm looking for for this weird subscription-based feed I have.

@dalepotter
Copy link

@brtmr Is this (or PR #48) an appropriate fix for issue #20 ?

Would be great if either of these could be considered for merge.

requirements.txt Outdated
docopt==0.6.2
feedparser==5.2.1
requests==2.20.0
tqdm=4.48.2 No newline at end of file

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tqdm needs adding to the setup.py too.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I merged the latest version from brtmr:master including this change, it should be good now!

@antfred antfred requested a review from dalepotter October 15, 2022 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants