Some style fixes

This commit is contained in:
Foo 2017-08-02 15:05:35 +03:00
parent 544556f145
commit e3ee79d976

View File

@ -534,8 +534,10 @@ class MocPlayerSegment(PlayerSegment):
def get_player_status(self, pl): def get_player_status(self, pl):
'''Return Music On Console (mocp) player information. '''Return Music On Console (mocp) player information.
`mocp -i` returns current information i.e. ``mocp -i`` returns current information i.e.
.. code-block:: .. code-block::
File: filename.format File: filename.format
Title: full title Title: full title
Artist: artist name Artist: artist name
@ -550,11 +552,10 @@ class MocPlayerSegment(PlayerSegment):
AvgBitrate: 000kbps AvgBitrate: 000kbps
Rate: 00kHz Rate: 00kHz
For the information we are looking for we dont really care if For the information we are looking for we dont really care if we have
we have extra-timing information or bit rate level. The extra-timing information or bit rate level. The dictionary comprehension
dictionary comprehension in this method takes anything in in this method takes anything in ignore_info and brings the key inside
ignore_info and brings the key inside that to the right info of that to the right info of the dictionary.
the dictionary.
''' '''
now_playing_str = run_cmd(pl, ['mocp', '-i']) now_playing_str = run_cmd(pl, ['mocp', '-i'])
if not now_playing_str: if not now_playing_str:
@ -578,7 +579,7 @@ class MocPlayerSegment(PlayerSegment):
mocp = with_docstring(MocPlayerSegment(), mocp = with_docstring(MocPlayerSegment(),
('''Return MOC (Music On Console) player information ('''Return MOC (Music On Console) player information
Requires version >= 2.3.0 and `mocp` command be acessible from $PATH. Requires version >= 2.3.0 and ``mocp`` executable in ``$PATH``.
{0} {0}
''').format(_common_args.format('mocp'))) ''').format(_common_args.format('mocp')))