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


+ 4
- 3
readme.md View File

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

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

Arch:
```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:


Loading…
Cancel
Save