'youtube_preferred_fmt_id': (int, 18, ('The preferred video format that should be downloaded from YouTube.')), # gpodder.net general settings 'mygpo_username': (str, '', ("The user's gPodder web services username.")), 'mygpo_password': (str, '', ("The user's gPodder web services password.")), 'mygpo_enabled': (bool, False, ("Synchronize subscriptions with the web service.")), 'mygpo_server': (str, 'gpodder.net', ('The hostname of the mygpo server in use.')), # gpodder.net device-specific settings 'mygpo_device_uid': (str, util.get_hostname(), ("The UID that is assigned to this installation.")), 'mygpo_device_caption': (str, _('gPodder on %s') % util.get_hostname(), ("The human-readable name of this installation.")), 'mygpo_device_type': (str, 'desktop', ("The type of the device gPodder is running on.")), # Paned position 'paned_position': ( int, 200, ("The width of the channel list.")), # Preferred mime types for podcasts with multiple content types 'mimetype_prefs': (str, '', ("A comma-separated list of mimetypes, descending order of preference")), }
defaults = { # External applications used for playback 'player': { 'audio': 'default', 'video': 'default', }, # gpodder.net settings 'mygpo': { 'enabled': False, 'server': 'gpodder.net', 'username': '', 'password': '', 'device': { 'uid': util.get_hostname(), 'type': 'desktop', 'caption': _('gPodder on %s') % util.get_hostname(), }, }, # Various limits (downloading, updating, etc..) 'limit': { 'bandwidth': { 'enabled': False, 'kbps': 500.0, # maximum kB/s per download }, 'downloads': { 'enabled': True, 'concurrent': 1, },
import shutil import time import logging _ = gpodder.gettext defaults = { # External applications used for playback "player": {"audio": "default", "video": "default"}, # gpodder.net settings "mygpo": { "enabled": False, "server": "gpodder.net", "username": "", "password": "", "device": {"uid": util.get_hostname(), "type": "desktop", "caption": _("gPodder on %s") % util.get_hostname()}, }, # Various limits (downloading, updating, etc..) "limit": { "bandwidth": {"enabled": False, "kbps": 500.0}, # maximum kB/s per download "downloads": {"enabled": True, "concurrent": 1}, "episodes": 200, # max episodes per feed }, # Behavior of downloads "downloads": {"chronological_order": True}, # download older episodes first # Automatic feed updates, download removal and retry on download timeout "auto": { "update": {"enabled": False, "frequency": 20}, # minutes "cleanup": {"days": 7, "played": False, "unplayed": False, "unfinished": True}, "retries": 3, # number of retries when downloads time out },