Browse Source

Updated readme.md and fixed some python code

master
Madiwka4 4 years ago
parent
commit
815b561592
2 changed files with 7 additions and 6 deletions
  1. +3
    -3
      open.py
  2. +4
    -3
      readme.md

+ 3
- 3
open.py View File

@@ -4,15 +4,15 @@ import sys, getopt


def main(argv): def main(argv):
inputfile = '' inputfile = ''
outputfile = ''
numberfile = ''
try: try:
opts, args = getopt.getopt(argv,"hi:o:",["ifile=","ofile="]) opts, args = getopt.getopt(argv,"hi:o:",["ifile=","ofile="])
except getopt.GetoptError: except getopt.GetoptError:
print ('spotitube.py -i <Search Keyword>')
print ('spotitube.py -i <Search Keyword> -o <Index>')
sys.exit(2) sys.exit(2)
for opt, arg in opts: for opt, arg in opts:
if opt == '-h': if opt == '-h':
print ('test.py -i <inputfile> -o <outputfile>')
print ('spotitube.py -i <Search Keyword> -o <Index>')
sys.exit() sys.exit()
elif opt in ("-i", "--ifile"): elif opt in ("-i", "--ifile"):
inputfile = arg inputfile = arg


+ 4
- 3
readme.md View File

@@ -1,7 +1,7 @@
# Spotitube # Spotitube


Basically, a tool to listen to music using YouTube search results. Basically, a tool to listen to music using YouTube search results.
# Instalation
# Installation
This only supports Debian and Arch. This only supports Debian and Arch.
```shell ```shell
chmod +x dependencies.sh chmod +x dependencies.sh
@@ -19,8 +19,9 @@ This app requires python3, pip3, and youtube-search python module to function pr


Arch: Arch:
```shell ```shell
sudo pacman -S python3 python-pip
pip install youtube-search
sudo pacman -S python3 python-pip mpv youtube-dl
pip install youtube-search
chmod +x spotitube.sh
``` ```


Debian/ubuntu: Debian/ubuntu:


Loading…
Cancel
Save