mirror of
https://github.com/vale981/clay
synced 2025-03-04 17:11:41 -05:00
Cleanup.
This commit is contained in:
parent
43345f2dd1
commit
36e3681d48
7 changed files with 2 additions and 16 deletions
|
@ -15,8 +15,6 @@ RUN apt-get install -y python3.6-dev python3-pip libvlc-dev vlc locales language
|
||||||
RUN locale-gen en_US.UTF-8
|
RUN locale-gen en_US.UTF-8
|
||||||
|
|
||||||
RUN useradd ${HOST_USER} -m -G audio -u ${HOST_UID}
|
RUN useradd ${HOST_USER} -m -G audio -u ${HOST_UID}
|
||||||
#RUN mkdir -p /home/${HOST_USER}/.config/clay
|
|
||||||
#RUN chown ${HOST_USER} /home/${HOST_USER}/.config/clay
|
|
||||||
|
|
||||||
WORKDIR /home/${HOST_USER}
|
WORKDIR /home/${HOST_USER}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
"""
|
"""
|
||||||
Events implemetation for signal handling.
|
Events implemetation for signal handling.
|
||||||
"""
|
"""
|
||||||
# pylint: disable=too-few-public-methods
|
|
||||||
|
|
||||||
|
|
||||||
class EventHook(object):
|
class EventHook(object):
|
||||||
|
|
|
@ -2,11 +2,7 @@
|
||||||
Google Play Music integration via gmusicapi.
|
Google Play Music integration via gmusicapi.
|
||||||
"""
|
"""
|
||||||
# pylint: disable=broad-except
|
# pylint: disable=broad-except
|
||||||
# pylint: disable=too-many-arguments
|
|
||||||
# pylint: disable=too-many-instance-attributes
|
|
||||||
# pylint: disable=too-many-return-statements
|
|
||||||
# pylint: disable=protected-access
|
# pylint: disable=protected-access
|
||||||
# pylint: disable=no-self-use
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from threading import Thread, Lock
|
from threading import Thread, Lock
|
||||||
from uuid import UUID
|
from uuid import UUID
|
||||||
|
@ -86,7 +82,7 @@ class Track(object):
|
||||||
SOURCE_PLAYLIST = 'playlist'
|
SOURCE_PLAYLIST = 'playlist'
|
||||||
SOURCE_SEARCH = 'search'
|
SOURCE_SEARCH = 'search'
|
||||||
|
|
||||||
def __init__(
|
def __init__( # pylint: disable=too-many-arguments
|
||||||
self,
|
self,
|
||||||
title, artist, duration, source,
|
title, artist, duration, source,
|
||||||
library_id=None, store_id=None, playlist_item_id=None,
|
library_id=None, store_id=None, playlist_item_id=None,
|
||||||
|
|
|
@ -43,7 +43,6 @@ class MyLibraryPage(urwid.Columns, AbstractPage):
|
||||||
if error:
|
if error:
|
||||||
notification_area.notify('Failed to load my library: {}'.format(str(error)))
|
notification_area.notify('Failed to load my library: {}'.format(str(error)))
|
||||||
return
|
return
|
||||||
# self.notification.close()
|
|
||||||
self.songlist.populate(tracks)
|
self.songlist.populate(tracks)
|
||||||
self.app.redraw()
|
self.app.redraw()
|
||||||
|
|
||||||
|
|
|
@ -91,8 +91,6 @@ class MyPlaylistListBox(urwid.ListBox):
|
||||||
)
|
)
|
||||||
items.append(myplaylistlistitem)
|
items.append(myplaylistlistitem)
|
||||||
|
|
||||||
# self.notification.close()
|
|
||||||
|
|
||||||
self.walker[:] = items
|
self.walker[:] = items
|
||||||
|
|
||||||
self.app.redraw()
|
self.app.redraw()
|
||||||
|
|
|
@ -16,10 +16,6 @@ class Slider(urwid.Widget):
|
||||||
_sizing = frozenset([urwid.FLOW])
|
_sizing = frozenset([urwid.FLOW])
|
||||||
|
|
||||||
CHARS = [
|
CHARS = [
|
||||||
# '_',
|
|
||||||
# u'\u2581',
|
|
||||||
# u'\u2500',
|
|
||||||
# u'\u2594'
|
|
||||||
u'\u2584',
|
u'\u2584',
|
||||||
u'\u25A0',
|
u'\u25A0',
|
||||||
u'\u2580',
|
u'\u2580',
|
||||||
|
|
|
@ -9,7 +9,7 @@ try:
|
||||||
# Python 3.x
|
# Python 3.x
|
||||||
from string import ascii_letters
|
from string import ascii_letters
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# Python 2.3
|
# Python 2.x
|
||||||
from string import letters as ascii_letters
|
from string import letters as ascii_letters
|
||||||
import urwid
|
import urwid
|
||||||
from clay.notifications import notification_area
|
from clay.notifications import notification_area
|
||||||
|
|
Loading…
Add table
Reference in a new issue