mirror of
git://git.acid.vegas/scroll.git
synced 2024-11-22 08:06:39 +00:00
Fixed incorrect path when playing art from the root directory
This commit is contained in:
parent
d714469d98
commit
a67d02291e
@ -253,8 +253,9 @@ class Bot():
|
|||||||
query = args[1]
|
query = args[1]
|
||||||
results = [dir+'/'+ascii for dir in self.db for ascii in self.db[dir] if query == ascii]
|
results = [dir+'/'+ascii for dir in self.db for ascii in self.db[dir] if query == ascii]
|
||||||
if results:
|
if results:
|
||||||
|
results = results[0].replace('root/','')
|
||||||
self.playing = True
|
self.playing = True
|
||||||
self.loops[chan] = asyncio.create_task(self.play(chan, results[0]))
|
self.loops[chan] = asyncio.create_task(self.play(chan, results))
|
||||||
else:
|
else:
|
||||||
await self.irc_error(chan, 'no results found', query)
|
await self.irc_error(chan, 'no results found', query)
|
||||||
except (UnicodeDecodeError, UnicodeEncodeError):
|
except (UnicodeDecodeError, UnicodeEncodeError):
|
||||||
|
Loading…
Reference in New Issue
Block a user