https://bugs.gpodder.org/show_bug.cgi?id=1658

             Bug #: 1658
           Summary: Sortable date format for episode file naming
    Classification: Unclassified
           Product: gPodder
           Version: Git "master" branch
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: low
         Component: Portable device synchronization
        AssignedTo: [email protected]
        ReportedBy: [email protected]


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.

-- 
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

Reply via email to