1
0
mirror of https://github.com/obskyr/khinsider.git synced 2025-03-14 15:09:42 +01:00

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.
This commit is contained in:
obskyr 2015-04-30 17:27:57 +02:00
parent 306dcb8336
commit bcfdb0e2c1

View File

@ -184,7 +184,7 @@ if __name__ == '__main__':
try: try:
download(ostName, outPath, verbose=True) download(ostName, outPath, verbose=True)
except NonexistentSoundtrackError: 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) print "\nThe soundtrack \"{}\" does not seem to exist.".format(ostName)
if searchResults: # aww yeah we gon' do some searchin' if searchResults: # aww yeah we gon' do some searchin'