mirror of
https://github.com/obskyr/khinsider.git
synced 2025-03-13 22:49:43 +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:
parent
306dcb8336
commit
bcfdb0e2c1
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user