Fri, 13 Jun 2008 16:08:16 +0200 <thp@perli.net>
commit0aec290ec2859c08cc6b50a72c3fb20c73868fd7
authorThomas Perl <thp@perli.net>
Fri, 13 Jun 2008 14:13:27 +0000 (13 14:13 +0000)
committerThomas Perl <thp@perli.net>
Fri, 13 Jun 2008 14:13:27 +0000 (13 14:13 +0000)
tree38e430c1f76987a117e82dfe2abdd386ad51f7bd
parented11f1eef96fa86abbe5f8e5327bbd52a5ab236e
Fri, 13 Jun 2008 16:08:16 +0200 <thp@perli.net>
Merge patch to add experimental support for "normal" file naming

* src/gpodder/config.py: New option "experimental_file_naming" that
defaults to False and enables the new (but experimental!) normal file
naming mode in which the downloaded podcast episodes get their name
not from the md5sum of the download URL, but from the basename of the
download URL, which makes filenames more human-readable
* src/gpodder/libpodcasts.py: Change local_filename() in podcastItem
to decide if we use md5sums or the "new" file naming mode for creating
the local file name of an episode
* src/gpodder/sync.py: Change usage of the "encoding" detection in
gpodder.util (from detect_os_encoding() to simply encoding)
* src/gpodder/util.py: Only detect the filename encoding once (at
program start) and then make it accessible via a global "encoding"
variable in the gpodder.util module; add improvements to
file_extension_from_url() to be able to return the complete filename
and to support more creative URL schemes as implemented by podcast
feed authors (this hopefully makes more feeds work in a proper way)
(Closes: http://bugs.gpodder.org/show_bug.cgi?id=57)

Add line to the previous ChangeLog entry (which I forgot initially):
(Closes: http://bugs.gpodder.org/show_bug.cgi?id=124)

git-svn-id: svn://svn.berlios.de/gpodder/trunk@736 b0d088ad-0a06-0410-aad2-9ed5178a7e87
ChangeLog
src/gpodder/config.py
src/gpodder/libpodcasts.py
src/gpodder/sync.py
src/gpodder/util.py