diff --git a/band b/band index e15828c..cad8500 100755 --- a/band +++ b/band @@ -1,15 +1,15 @@ #!/usr/bin/env python3 # -# http://github.com/mitchweaver/bin +# http://github.com/mitchweaver/metal-archives # # get a given band pic from metal-archives.com # # Usage: ./band 'judas iscariot' # -from bs4 import BeautifulSoup -import urllib import sys +import urllib +from bs4 import BeautifulSoup def band_pic(band): try: @@ -32,4 +32,5 @@ def band_pic(band): def main(): band_pic(sys.argv[1]) -if __name__ == "__main__": main() +if __name__ == "__main__": + main() diff --git a/cover b/cover index e568f70..382bf77 100755 --- a/cover +++ b/cover @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# http://github.com/mitchweaver/bin +# http://github.com/mitchweaver/metal-archives # # get a given album cover from metal-archives.com # @@ -60,4 +60,5 @@ def main(): url = find_album_url(arg[0], arg[1]) get_album_art(url) -if __name__ == "__main__": main() +if __name__ == "__main__": + main() diff --git a/genre b/genre index be563bd..6288cbf 100755 --- a/genre +++ b/genre @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# http://github.com/mitchweaver/bin +# http://github.com/mitchweaver/metal-archives # # get the genre of a given band from metal-archives # @@ -54,4 +54,5 @@ def parse(url): def main(): parse(url = 'https://www.metal-archives.com/bands/' + sys.argv[1]) -if __name__ == "__main__": main() +if __name__ == "__main__": + main() diff --git a/location b/location index e8cbd83..e274181 100755 --- a/location +++ b/location @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# http://github.com/mitchweaver/bin +# http://github.com/mitchweaver/metal-archives # # get the location of a given band from metal-archives # @@ -53,4 +53,5 @@ def parse(url): def main(): parse(url = 'https://www.metal-archives.com/bands/' + sys.argv[1]) -if __name__ == "__main__": main() +if __name__ == "__main__": + main() diff --git a/logo b/logo index 34828a1..286b118 100755 --- a/logo +++ b/logo @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# http://github.com/mitchweaver/bin +# http://github.com/mitchweaver/metal-archives # # get a given band logo from metal-archives.com # @@ -30,4 +30,5 @@ def band_logo(band): def main(): band_logo(sys.argv[1]) -if __name__ == "__main__": main() +if __name__ == "__main__": + main() diff --git a/lyrics b/lyrics index 1b13e27..d6a320c 100755 --- a/lyrics +++ b/lyrics @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# http://github.com/mitchweaver/bin +# http://github.com/mitchweaver/metal-archives # # grab lyrics from lyricswikia # @@ -22,4 +22,5 @@ def main(): arg = sys.argv[1].split(' - ') lyrics(arg[0], arg[1]) -if __name__ == "__main__": main() +if __name__ == "__main__": + main() diff --git a/makefile b/makefile index 587c0af..b6c1808 100644 --- a/makefile +++ b/makefile @@ -1,8 +1,7 @@ -PREFIX = /usr/local +PREFIX = /usr/local -.PHONY: all install uninstall - -all: install +all: + @>&2 echo "Use 'make install'" install: @echo 'Installing metal-archives scripts...' @@ -25,4 +24,3 @@ uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/lyrics rm -f $(DESTDIR)$(PREFIX)/bin/releases rm -f $(DESTDIR)$(PREFIX)/bin/songs - diff --git a/releases b/releases index be3be27..9082746 100755 --- a/releases +++ b/releases @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# http://github.com/mitchweaver/bin +# http://github.com/mitchweaver/metal-archives # # get releases of a band from metal-archives # @@ -108,4 +108,5 @@ def get_releases(band): def main(): get_releases(sys.argv[1]) -if __name__ == "__main__": main() +if __name__ == "__main__": + main() diff --git a/songs b/songs index c774306..fd7ab71 100755 --- a/songs +++ b/songs @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# http://github.com/mitchweaver/bin +# http://github.com/mitchweaver/metal-archives # # get songs from a given 'band - album' from metal-archives.com # @@ -97,4 +97,5 @@ def main(): url = find_album_url(arg[0], arg[1]) get_songs(url) -if __name__ == "__main__": main() +if __name__ == "__main__": + main()