Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion #1

Open
git-anish opened this issue Apr 21, 2021 · 2 comments
Open

suggestion #1

git-anish opened this issue Apr 21, 2021 · 2 comments

Comments

@git-anish
Copy link

since you're already parsing XML data would it be possible to add the ability to rename downloaded files, edit ID3 tags, and add images based on the parsed data?

I currently run the script every week to archive the new episodes but have to rework the files through a mp3id3 editor

thanks for making the utility!

@git-anish
Copy link
Author

hey @lpar Matthew,

Thanks for writing podtools, its honestly written extremely well and really easy to understand.

I ended up implementing:

  • writing ID3 tags where they don't exist
  • renaming podcast files by date - title - file extension
  • writing titles to the downloaded files
  • writing artists to the downloaded files
  • writing titles to the downloaded files
  • writing release dates per episode to the downloaded files
  • writing tagged images per episode to the downloaded files
  • writing comments from XML descriptions to the downloaded files
  • mp3, mp4, aac, ogg, wmv, wav, and flac support

I think podtools was meant to be a lot simpler and catch-all compared to what I've done so I'll push it on my page in a week or so.

Please feel free to use my code as pseudo code if you'd like, it's WIP. It currently requires a few dependencies as I'm experimenting with a few utilities. I'll reduce it down to one in the next month based on changes in tageditor by Martchus.

I did want to ask if theres a speed limit you've set somewhere in the code? for some reason I can only download at a max speed of 30mbps/~4MBps using podtools.

Thanks again

@lpar
Copy link
Owner

lpar commented Apr 27, 2021

I think it would make sense to have some sort of file renaming feature... Maybe something that works like sprintf, where you have % escapes for various pieces of information from the XML.

I'm not convinced tagging is a good feature to build in. Podcast files should already have tags for the podcast player to use, untagged should be the rare exception. Also, as you've probably noticed, it's tough finding a good pure Go library to handle all the different tag types, or at least mp3 and m4a.

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

No branches or pull requests

2 participants