Skip to content

Commit

Permalink
fix some codespell issues (#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
aw-was-here authored Dec 2, 2024
1 parent d1860c8 commit ce6be0f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .codespellrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[codespell]
skip = nowplaying/vendor/*
ignore-words-list = sur, nin, crate, blak
ignore-words-list = sur, nin, crate, blak, whats
2 changes: 1 addition & 1 deletion docs/output/webserver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ See also `Artist Extras <../extras/index.html>`_ for other URLs when that set of
REST API
--------

Currently, only a very rudimentary REST API is implememnted. ``/v1/last`` will return
Currently, only a very rudimentary REST API is implemented. ``/v1/last`` will return
a JSON-formatted string of the currently playing track.


Expand Down
10 changes: 5 additions & 5 deletions nowplaying/processes/trackpoll.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ async def checkskip(self, nextmeta):
return True
return False

async def _fillinmetadata(self, metadata): # pylint: disable=too-many-branches
async def _fill_inmetadata(self, metadata): # pylint: disable=too-many-branches
''' keep a copy of our fetched data '''

# Fill in as much metadata as possible. everything
Expand Down Expand Up @@ -302,7 +302,7 @@ async def gettrack(self): # pylint: disable=too-many-branches,
# fill in the blanks and make it live
oldmeta = self.currentmeta
try:
self.currentmeta = await self._fillinmetadata(nextmeta)
self.currentmeta = await self._fill_inmetadata(nextmeta)
except Exception as err: # pylint: disable=broad-except
logging.exception('Ignoring the %s crash and just keep going!', err)
await asyncio.sleep(5)
Expand Down Expand Up @@ -424,7 +424,7 @@ async def _process_imagecache(self):
type=bool) or not self.config.cparser.value('artistextras/enabled', type=bool):
return

def fillin(self):
def fill_in(self):
tryagain = False

if not self.imagecache:
Expand All @@ -445,8 +445,8 @@ def fillin(self):
return tryagain

# try to give it a bit more time if it doesn't complete the first time
if not fillin(self):
fillin(self)
if not fill_in(self):
fill_in(self)


def stop(pid):
Expand Down
2 changes: 1 addition & 1 deletion nowplaying/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@


class UpgradeDialog(QDialog): # pylint: disable=too-few-public-methods
''' Qt Dialog for asking the user to ugprade '''
''' Qt Dialog for asking the user to upgrade '''

def __init__(self, parent=None):
super().__init__(parent)
Expand Down

0 comments on commit ce6be0f

Please sign in to comment.