Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Add setlist search #2

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open

Conversation

rattboi
Copy link

@rattboi rattboi commented Jun 13, 2017

No description provided.

rattboi and others added 30 commits November 21, 2016 22:25
Last.fm is now a service started when the bot starts, and available to
all commands/hooks via self.bot.lastfm. This is a refactor to support
future commands/hooks.
Move Last.fm-related things to new service category
Added simple setlist command scaffolding
Added simple call to setlist.fm to find a setlist
Added support for services to use each other
Added basics of setlist.fm service
Added ability to lookup a song by searchterms and get the best result
from gmusic. Added this to the !now command to fill in missing album
info (last.fm often misses the album).
I made the assumption that if last.fm didn't know, the album, you could
definitely get the results from GPM, since you're listening to the music
there. However, since the hangouts bot masquerades as a separate user,
it won't know about uploaded music of a user. This can lead to GPM
searches with no album results.
Also, random small refactors/linting fixes
using "!convert <spotify embed url>", the bot will attempt to scrape
the playlist, find the songs, create a GPM playlist with the same
songs, and return the share url for that playlist.
'!playlist recent' shows 5 most recent playlist
'!playlist search' finds playlists that contain searchterm in them
'!playlist convert' takes the place of '!convert', to convert a spotify
     playlist to a gmusic playlist, hosted by the bot.

TODO: should limit results from search. Should also fail if searching
for ''
@ovkulkarni
Copy link
Owner

@rattboi I just saw this - didn't get an email for some reason - and it looks pretty good to me. I'll review it by tomorrow and then merge

@rattboi
Copy link
Author

rattboi commented Jul 6, 2017 via email

@ovkulkarni
Copy link
Owner

@rattboi even though it isn't part of the bot itself, people may like to use the commands you've written, so I'll probably end up merging your PR

@ovkulkarni
Copy link
Owner

@rattboi it may also be a good idea to take a look at the failed build for code readability purposes

@rattboi
Copy link
Author

rattboi commented Jul 7, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants