Various extension-related fixes
This commit is contained in:
parent
b85d95f73a
commit
181d38dd76
2
README
2
README
|
@ -167,7 +167,7 @@
|
|||
[ EXTENSIONS ]
|
||||
|
||||
Extensions are normally loaded from gPodder's "extensions/" folder (in
|
||||
share/gpodder/extensions/) and from $GPODDER_HOME/Extensions/ You can
|
||||
share/gpodder/extensions/) and from $GPODDER_HOME/Extensions/ - you can
|
||||
override this by setting an environment variable:
|
||||
|
||||
export GPODDER_EXTENSIONS="/path/to/extension1.py extension2.py"
|
||||
|
|
|
@ -7,7 +7,7 @@ logger = logging.getLogger(__name__)
|
|||
__title__ = 'Hello World Extension'
|
||||
__description__ = 'Explain in one sentence what this extension does.'
|
||||
__only_for__ = 'gtk, cli, qml'
|
||||
__author__ = 'Thomas Perl <m@thp.io>'
|
||||
__authors__ = 'Thomas Perl <m@thp.io>'
|
||||
|
||||
class gPodderExtension:
|
||||
# The extension will be instantiated the first time it's used
|
||||
|
|
|
@ -22,7 +22,7 @@ _ = gpodder.gettext
|
|||
|
||||
__title__ = _('Convert .flv files from YouTube to .mp4')
|
||||
__description__ = _('Useful for playing downloaded videos on hardware players')
|
||||
__author__ = 'Thomas Perl <thp@gpodder.org>, Bernd Schlapsi <brot@gmx.info>'
|
||||
__authors__ = 'Thomas Perl <thp@gpodder.org>, Bernd Schlapsi <brot@gmx.info>'
|
||||
|
||||
DefaultConfig = {
|
||||
'context_menu': True, # Show the conversion option in the context menu
|
||||
|
|
|
@ -18,7 +18,7 @@ _ = gpodder.gettext
|
|||
|
||||
__title__ = _('Convert M4A audio to MP3 or OGG')
|
||||
__description__ = _('Transcode .m4a files to .mp3 or .ogg using ffmpeg')
|
||||
__author__ = 'Bernd Schlapsi <brot@gmx.info>, Thomas Perl <thp@gpodder.org>'
|
||||
__authors__ = 'Bernd Schlapsi <brot@gmx.info>, Thomas Perl <thp@gpodder.org>'
|
||||
|
||||
|
||||
DefaultConfig = {
|
||||
|
|
|
@ -20,7 +20,7 @@ _ = gpodder.gettext
|
|||
|
||||
__title__ = _('Normalize audio with re-encoding')
|
||||
__description__ = _('Normalize the volume of audio files with normalize-audio')
|
||||
__author__ = 'Bernd Schlapsi <brot@gmx.info>'
|
||||
__authors__ = 'Bernd Schlapsi <brot@gmx.info>'
|
||||
|
||||
|
||||
DefaultConfig = {
|
||||
|
|
|
@ -15,7 +15,7 @@ _ = gpodder.gettext
|
|||
|
||||
__title__ = _('Rename episodes after download')
|
||||
__description__ = _('Rename episodes to "<Episode Title>.<ext>" on download')
|
||||
__author__ = 'Bernd Schlapsi <brot@gmx.info>, Thomas Perl <thp@gpodder.org>'
|
||||
__authors__ = 'Bernd Schlapsi <brot@gmx.info>, Thomas Perl <thp@gpodder.org>'
|
||||
|
||||
|
||||
class gPodderExtension:
|
||||
|
|
|
@ -36,7 +36,7 @@ _ = gpodder.gettext
|
|||
|
||||
__title__ = _('Remove cover art from OGG files')
|
||||
__description__ = _('removes coverart from all downloaded ogg files')
|
||||
__author__ = 'Bernd Schlapsi <brot@gmx.info>'
|
||||
__authors__ = 'Bernd Schlapsi <brot@gmx.info>'
|
||||
|
||||
|
||||
DefaultConfig = {
|
||||
|
|
|
@ -25,7 +25,7 @@ _ = gpodder.gettext
|
|||
|
||||
__title__ = _('Convert video files to MP4 for Rockbox')
|
||||
__description__ = _('Converts all videos to a Rockbox-compatible format')
|
||||
__author__ = 'Guy Sheffer <guysoft@gmail.com>, Thomas Perl <thp@gpodder.org>, Bernd Schlapsi <brot@gmx.info>'
|
||||
__authors__ = 'Guy Sheffer <guysoft@gmail.com>, Thomas Perl <thp@gpodder.org>, Bernd Schlapsi <brot@gmx.info>'
|
||||
|
||||
|
||||
DefaultConfig = {
|
||||
|
|
|
@ -37,7 +37,7 @@ _ = gpodder.gettext
|
|||
|
||||
__title__ = _('Tag downloaded files using Mutagen')
|
||||
__description__ = _('Add episode and podcast titles to MP3/OGG tags')
|
||||
__author__ = 'Bernd Schlapsi <brot@gmx.info>'
|
||||
__authors__ = 'Bernd Schlapsi <brot@gmx.info>'
|
||||
|
||||
|
||||
DefaultConfig = {
|
||||
|
|
|
@ -420,9 +420,6 @@ def get_free_disk_space(path):
|
|||
function returns zero.
|
||||
"""
|
||||
|
||||
if path == '':
|
||||
raise ValueError(_("Can't get free disk space at path ''"))
|
||||
|
||||
if not os.path.exists(path):
|
||||
return 0
|
||||
|
||||
|
|
Loading…
Reference in a new issue