Fix README.md and update mediaplayer.py
This commit is contained in:
parent
79e8c96121
commit
4899da37f9
|
@ -10,7 +10,7 @@ $ cd dotfiles
|
||||||
$ chmod +x artix-install.sh
|
$ chmod +x artix-install.sh
|
||||||
$ ./artix-install.sh # For Artix
|
$ ./artix-install.sh # For Artix
|
||||||
$ ./fedora-install.sh # For Fedora
|
$ ./fedora-install.sh # For Fedora
|
||||||
$ ./termux-install # For Termux
|
$ ./termux-install.sh # For Termux
|
||||||
$ ./ubuntu-install.sh # For Ubuntu
|
$ ./ubuntu-install.sh # For Ubuntu
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import logging
|
import logging
|
||||||
import sys
|
import sys
|
||||||
|
@ -80,7 +79,7 @@ def signal_handler(sig, frame):
|
||||||
def parse_arguments():
|
def parse_arguments():
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
|
|
||||||
# Increase verbosity with every occurence of -v
|
# Increase verbosity with every occurrence of -v
|
||||||
parser.add_argument('-v', '--verbose', action='count', default=0)
|
parser.add_argument('-v', '--verbose', action='count', default=0)
|
||||||
|
|
||||||
# Define for which player we're listening
|
# Define for which player we're listening
|
||||||
|
@ -111,6 +110,7 @@ def main():
|
||||||
|
|
||||||
signal.signal(signal.SIGINT, signal_handler)
|
signal.signal(signal.SIGINT, signal_handler)
|
||||||
signal.signal(signal.SIGTERM, signal_handler)
|
signal.signal(signal.SIGTERM, signal_handler)
|
||||||
|
signal.signal(signal.SIGPIPE, signal.SIG_DFL)
|
||||||
|
|
||||||
for player in manager.props.player_names:
|
for player in manager.props.player_names:
|
||||||
if arguments.player is not None and arguments.player != player.name:
|
if arguments.player is not None and arguments.player != player.name:
|
||||||
|
|
Loading…
Reference in a new issue