Fix various typos

Found via `codespell -q 3 -S *.po -L bloc,extracter,parms`
This commit is contained in:
luzpaz 2023-07-14 12:13:50 +00:00
parent 407e930f1a
commit 8a995cb097
17 changed files with 27 additions and 27 deletions

View File

@ -25,7 +25,7 @@ from distutils.core import setup
installing = ('install' in sys.argv and '--help' not in sys.argv)
# distutils depends on setup.py beeing executed from the same dir.
# distutils depends on setup.py being executed from the same dir.
# Most of our custom commands work either way, but this makes
# it work in all cases.
os.chdir(os.path.dirname(os.path.realpath(__file__)))

View File

@ -60,7 +60,7 @@ class gPodderExtension:
#
# https://docs.python.org/3/library/subprocess.html#subprocess.Popen
#
# This is expecially important for extensions responding to
# This is especially important for extensions responding to
# on_episode_downloaded(), which runs whenever a download finishes.
#
# Otherwise that process will inherit ALL file descriptors gPodder

View File

@ -242,7 +242,7 @@ RESUMERS = [
# with https://github.com/Serranya/deadbeef-mpris2-plugin
MPRISResumer('resume in deadbeef', 'DeaDBeeF', ['deadbeef'], 'org.mpris.MediaPlayer2.DeaDBeeF'),
# the gPodder Dowloads directory must be in gmusicbrowser's library
# the gPodder Downloads directory must be in gmusicbrowser's library
MPRISResumer('resume in gmusicbrowser', 'gmusicbrowser', ['gmusicbrowser'], 'org.mpris.MediaPlayer2.gmusicbrowser'),
# Audacious doesn't implement MPRIS2.OpenUri

View File

@ -100,7 +100,7 @@ try {{
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier($APP_ID).Show($toast)
Remove-Item -LiteralPath $MyInvocation.MyCommand.Path -Force # Delete this script temp file.
}} else {{
# use older Baloon notification when not on Windows 10
# use older Balloon notification when not on Windows 10
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
$o = New-Object System.Windows.Forms.NotifyIcon

View File

@ -39,7 +39,7 @@ class gPodderExtension:
device_folder = device.get_episode_folder_on_device(episode)
episode_art = os.path.join(episode_folder, "folder.jpg")
device_art = os.path.join(device_folder, self.config.art_name_on_device)
# make sure we have art to copy and it doesnt already exist
# make sure we have art to copy and it doesn't already exist
if os.path.isfile(episode_art) and not os.path.isfile(device_art):
logger.info('Syncing cover art for %s', episode.channel.title)
# copy and rename art

View File

@ -131,7 +131,7 @@ class AudioFile(object):
def get_cover_picture(self, cover):
""" Returns mutagen Picture class for the cover image
Usefull for OGG and FLAC format
Useful for OGG and FLAC format
Picture type = cover image
see http://flac.sourceforge.net/documentation_tools_flac.html#encoding_options

View File

@ -42,7 +42,7 @@ __doc__ = 'https://gpodder.github.io/docs/extensions/youtubedl.html'
want_ytdl_version_msg = _('Your version of youtube-dl/yt-dlp %(have_version)s has known issues, please upgrade to %(want_version)s or newer.')
DefaultConfig = {
# youtube-dl downloads and parses each video page to get informations about it, which is very slow.
# youtube-dl downloads and parses each video page to get information about it, which is very slow.
# Set to False to fall back to the fast but limited (only 15 episodes) gpodder code
'manage_channel': True,
# If for some reason youtube-dl download doesn't work for you, you can fallback to gpodder code.
@ -390,7 +390,7 @@ class gPodderYoutubeDL(download.CustomDownloader):
"""
Fetch a channel or playlist contents.
Doesn't yet fetch video entry informations, so we only get the video id and title.
Doesn't yet fetch video entry information, so we only get the video id and title.
"""
# Duplicate a bit of the YoutubeDL machinery here because we only
# want to parse the channel/playlist first, not to fetch video entries.

View File

@ -170,7 +170,7 @@ class ContentRange(object):
return None
value = value.strip()
if not value.startswith('bytes '):
# Unparseable
# Unparsable
return None
value = value[len('bytes '):].strip()
if '/' not in value:
@ -588,7 +588,7 @@ class DownloadTask(object):
_('Finished'), _('Failed'), _('Cancelling'), _('Cancelled'), _('Pausing'), _('Paused'))
(NEW, QUEUED, DOWNLOADING, DONE, FAILED, CANCELLING, CANCELLED, PAUSING, PAUSED) = list(range(9))
# Wheter this task represents a file download or a device sync operation
# Whether this task represents a file download or a device sync operation
ACTIVITY_DOWNLOAD, ACTIVITY_SYNCHRONIZE = list(range(2))
# Minimum time between progress updates (in seconds)

View File

@ -74,7 +74,7 @@ class GtkBuilderWidget(object):
Convert widget names to attributes of this object.
It means a widget named vbox-dialog in GtkBuilder
is refered using self.vbox_dialog in the code.
is referred using self.vbox_dialog in the code.
"""
for widget in self.builder.get_objects():
# Just to be safe - every widget from the builder is buildable
@ -100,7 +100,7 @@ class GtkBuilderWidget(object):
def new(self):
"""
Method called when the user interface is loaded and ready to be used.
At this moment, the widgets are loaded and can be refered as self.widget_name
At this moment, the widgets are loaded and can be referred as self.widget_name
"""
def main(self):
@ -132,7 +132,7 @@ class GtkBuilderWidget(object):
"""
Starts the main loop of processing events checking for Control-C.
The default implementation checks wheter a Control-C is pressed,
The default implementation checks whether a Control-C is pressed,
then calls on_keyboard_interrupt().
Use this method for starting programs.

View File

@ -77,7 +77,7 @@ def draw_rounded_rectangle(ctx, x, y, w, h, r=10, left_side_width=None,
def rounded_rectangle(ctx, x, y, width, height, radius=4.):
"""Simple rounded rectangle algorithmn
"""Simple rounded rectangle algorithm
http://www.cairographics.org/samples/rounded_rectangle/
"""
@ -126,7 +126,7 @@ def draw_text_box_centered(ctx, widget, w_width, w_height, text, font_desc=None,
def draw_cake(percentage, text=None, emblem=None, size=None):
# Download percentage bar icon - it turns out the cake is a lie (d'oh!)
# ..but the inital idea was to have a cake-style indicator, but that
# ..but the initial idea was to have a cake-style indicator, but that
# didn't work as well as the progress bar, but the name stuck..
if size is None:

View File

@ -398,7 +398,7 @@ class gPodder(BuilderWidget, dbus.service.Object):
def inject_extensions_menu(self):
"""
Update Extras/Extensions menu.
Called at startup and when en/dis-abling extenstions.
Called at startup and when en/dis-abling extensions.
"""
def gen_callback(label, callback):
return lambda action, param: callback()

View File

@ -1283,7 +1283,7 @@ class PodcastChannel(PodcastModelObject):
# This *might* cause episodes to be skipped if there were more than
# limit.episodes items added to the feed between updates.
# The benefit is that it prevents old episodes from apearing as new
# The benefit is that it prevents old episodes from appearing as new
# in certain situations (see bug #340).
self.db.purge(max_episodes, self.id) # TODO: Remove from self.children!

View File

@ -113,7 +113,7 @@ def episode_filename_on_device(config, episode):
"""
# get the local file
from_file = episode.local_filename(create=False)
# get the formated base name
# get the formatted base name
filename_base = util.sanitize_filename(episode.sync_filename(
config.device_sync.custom_sync_name_enabled,
config.device_sync.custom_sync_name),
@ -829,7 +829,7 @@ class SyncTask(download.DownloadTask):
if self.status != SyncTask.DOWNLOADING:
return False
# We are synching this file right now
# We are syncing this file right now
self._notification_shown = False
sync_result = SyncTask.DOWNLOADING

View File

@ -294,7 +294,7 @@ def normalize_feed_url(url):
if scheme not in ('http', 'https', 'ftp', 'file'):
return None
# urlunsplit might return "a slighty different, but equivalent URL"
# urlunsplit might return "a slightly different, but equivalent URL"
return urllib.parse.urlunsplit((scheme, netloc, path, query, fragment))
@ -842,7 +842,7 @@ def extract_hyperlinked_text(html):
def nice_html_description(img, description):
"""
basic html formating + hyperlink highlighting + video thumbnail
basic html formatting + hyperlink highlighting + video thumbnail
"""
description = re.sub(r'''https?://[^\s]+''',
r'''<a href="\g<0>">\g<0></a>''',
@ -1278,7 +1278,7 @@ def get_real_url(url):
def find_command(command):
"""
Searches the system's PATH for a specific command that is
executable by the user. Returns the first occurence of an
executable by the user. Returns the first occurrence of an
executable binary in the PATH, or None if the command is
not available.
@ -2229,7 +2229,7 @@ class Popen(subprocess.Popen):
def _parse_mimetype_sorted_dictitems(mimetype):
""" python 3.5 unorderd dict compat for doctest. don't use! """
""" python 3.5 unordered dict compat for doctest. don't use! """
r = parse_mimetype(mimetype)
return r[0], r[1], sorted(r[2].items())

View File

@ -1,5 +1,5 @@
<?xml version="1.0" ?>
<!-- this stylesheet ajusts menu item accelerators:
<!-- this stylesheet adjusts menu item accelerators:
- Command-, for preferences
- Command-? for user manual

View File

@ -110,7 +110,7 @@ print('System Path:\n', '\n'.join(sys.path))
# see https://gpodder.github.io/docs/user-manual.html#gpodder-home-folder-and-download-location
# To override gPodder home and/or download directory:
# 1. uncomment (remove the pound sign and space) at the begining of the relevant line
# 1. uncomment (remove the pound sign and space) at the beginning of the relevant line
# 2. replace ~/gPodderData or ~/gPodderDownloads with the path you want for your gPodder home
# (you can move the original folder in the Finder first,
# then drag and drop to the launcher.py in TextEdit to ensure the correct path is set)
@ -125,7 +125,7 @@ for k, v in os.environ.items():
def gpodder_home():
# don't inadvertently create the new gPodder home,
# it would be prefered to the old one
# it would be preferred to the old one
default_path = join(os.environ['HOME'], 'Library', 'Application Support', 'gPodder')
cands = [
os.environ.get('GPODDER_HOME'),

View File

@ -199,7 +199,7 @@ Function custom_gui_init
; uninstall failed
Abort
rm_instdir:
; either the uninstaller was successfull or
; either the uninstaller was successful or
; the uninstaller.exe wasn't found
RMDir /r "$INSTDIR"
do_continue: