https://bugs.gpodder.org/show_bug.cgi?id=1658
--- Comment #1 from Thomas Perl <[email protected]> 2012-08-28 22:57:28 BST --- (In reply to comment #0) > The locale preferred date format may not be good for sorting. Sync file > renaming should have something a little more robust. > > A proposed fix: > def sortable_pubdate(self): > return str(datetime.datetime.fromtimestamp(self.published). > strftime('%F')) > > pubsortdate_prop = property(fget=sortable_pubdate) > > And use {episode.pubsortdate_prop} instead of {episode.pubdate_prop} for a > default renaming pattern. Sounds good to me - maybe shorten the name to "sortdate" and just provide it as property, e.g. like that: @property def sortdate(self): return ... It would be good if you could provide a patch or a pull request on Github. -- 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
