From bcfdb0e2c1458c64ea8fe5d16ff306343191ff13 Mon Sep 17 00:00:00 2001 From: obskyr Date: Thu, 30 Apr 2015 17:27:57 +0200 Subject: [PATCH] Search with dashes counting as spaces KHInsider's search takes spaces as separators, while soundtrack IDs replaces those with dashes. Now khinsider.py searches even when you've entered something in the format of a soundtrack ID. --- khinsider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/khinsider.py b/khinsider.py index 2553755..9876202 100644 --- a/khinsider.py +++ b/khinsider.py @@ -184,7 +184,7 @@ if __name__ == '__main__': try: download(ostName, outPath, verbose=True) except NonexistentSoundtrackError: - searchResults = search(' '.join(sys.argv[1:])) + searchResults = search(' '.join(sys.argv[1:]).replace('-', ' ')) print "\nThe soundtrack \"{}\" does not seem to exist.".format(ostName) if searchResults: # aww yeah we gon' do some searchin'