diff --git a/setup.py b/setup.py index 050be572..86963fc5 100644 --- a/setup.py +++ b/setup.py @@ -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__))) diff --git a/share/gpodder/examples/hello_world.py b/share/gpodder/examples/hello_world.py index be4a30b0..28c03ec2 100644 --- a/share/gpodder/examples/hello_world.py +++ b/share/gpodder/examples/hello_world.py @@ -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 diff --git a/share/gpodder/extensions/enqueue_in_mediaplayer.py b/share/gpodder/extensions/enqueue_in_mediaplayer.py index 5673ae87..1ff7c563 100644 --- a/share/gpodder/extensions/enqueue_in_mediaplayer.py +++ b/share/gpodder/extensions/enqueue_in_mediaplayer.py @@ -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 diff --git a/share/gpodder/extensions/notification-win32.py b/share/gpodder/extensions/notification-win32.py index c99f3796..52703874 100644 --- a/share/gpodder/extensions/notification-win32.py +++ b/share/gpodder/extensions/notification-win32.py @@ -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 diff --git a/share/gpodder/extensions/rockbox_coverart.py b/share/gpodder/extensions/rockbox_coverart.py index d3f90b86..10a22d2a 100644 --- a/share/gpodder/extensions/rockbox_coverart.py +++ b/share/gpodder/extensions/rockbox_coverart.py @@ -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 diff --git a/share/gpodder/extensions/tagging.py b/share/gpodder/extensions/tagging.py index 29d98dbe..ff666363 100644 --- a/share/gpodder/extensions/tagging.py +++ b/share/gpodder/extensions/tagging.py @@ -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 diff --git a/share/gpodder/extensions/youtube-dl.py b/share/gpodder/extensions/youtube-dl.py index f009da14..058e4ce4 100644 --- a/share/gpodder/extensions/youtube-dl.py +++ b/share/gpodder/extensions/youtube-dl.py @@ -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. diff --git a/src/gpodder/download.py b/src/gpodder/download.py index 3ee02cdf..df8e87b9 100644 --- a/src/gpodder/download.py +++ b/src/gpodder/download.py @@ -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) diff --git a/src/gpodder/gtkui/base.py b/src/gpodder/gtkui/base.py index 25cf3f3e..fd092423 100644 --- a/src/gpodder/gtkui/base.py +++ b/src/gpodder/gtkui/base.py @@ -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. diff --git a/src/gpodder/gtkui/draw.py b/src/gpodder/gtkui/draw.py index f6afa428..f2904b3d 100644 --- a/src/gpodder/gtkui/draw.py +++ b/src/gpodder/gtkui/draw.py @@ -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: diff --git a/src/gpodder/gtkui/main.py b/src/gpodder/gtkui/main.py index ea9c58ce..5742c78e 100644 --- a/src/gpodder/gtkui/main.py +++ b/src/gpodder/gtkui/main.py @@ -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() diff --git a/src/gpodder/model.py b/src/gpodder/model.py index 0b07d4d7..02018f4f 100644 --- a/src/gpodder/model.py +++ b/src/gpodder/model.py @@ -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! diff --git a/src/gpodder/sync.py b/src/gpodder/sync.py index c459d218..1b0e5148 100644 --- a/src/gpodder/sync.py +++ b/src/gpodder/sync.py @@ -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 diff --git a/src/gpodder/util.py b/src/gpodder/util.py index bd5757fb..61218469 100644 --- a/src/gpodder/util.py +++ b/src/gpodder/util.py @@ -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'''\g<0>''', @@ -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()) diff --git a/tools/mac-osx/adjust-modifiers.xsl b/tools/mac-osx/adjust-modifiers.xsl index dd5babab..6d17fd98 100644 --- a/tools/mac-osx/adjust-modifiers.xsl +++ b/tools/mac-osx/adjust-modifiers.xsl @@ -1,5 +1,5 @@ -