https://bugs.gpodder.org/show_bug.cgi?id=1502
--- Comment #4 from Bernd Schlapsi <[email protected]> 2011-11-26 12:13:49 GMT --- To hardcode the mime-type in the extension would be the easiest way but not quite right. If we want to do it right (since version 3.x) we should update the mime-type and the filesize beside the download_filename when we change the file format or convert the file in any other way. So I think It would make sense to provide a function like that: --------------------------------------------------------------- def update_episode(episode, new_filename): new_mime_type = .... new file_size = .... episode.download_filename = new_filename episode.mime_type = new_mime_type episode.file_size = new_file_size episode.save() --------------------------------------------------------------- So this function should be easily callable in a extension and takes care that the meta-data of a episode is "always" correct in the database. -- Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes. _______________________________________________ gPodder-Bugs mailing list [email protected] https://lists.berlios.de/mailman/listinfo/gpodder-bugs
