src/bbc_meet_spotify/spotify.py
def _get_song_id(self, song: Song) -> str:
        """
        Get song id from spotify.
        Will attempt to first search keeping apostrophes in text, if that fails then
        the song will be searched again without apostrophes
        Underscore so I don't get it mixed up with get_song_ids
        :param song: Song
        :return: song_id or None if song was not found
        """
        song_id = None
        try:
            song_id = self.query_spotify(song.artist, song.song_title)
        except IndexError:
            # try fixing the strings with removing apostrophes
            try:
                song_id = self.query_spotify(song.artist.replace("'", "").replace(".", ""),
                                             song.song_title.replace("'", "").replace(".", ""))
            except IndexError:
                self.songs_not_found.append(f"{song.get_track_string()}")
        return song_id

        Get song id from spotify.
        Will attempt to first search keeping apostrophes in text, if that fails then
        the song will be searched again without apostrophes
        Underscore so I don't get it mixed up with get_song_ids
        :param song: Song
        :return: song_id or None if song was not found
        
Get song id from spotify.
Will attempt to first search keeping apostrophes in text, if that fails then
the song will be searched again without apostrophes
Underscore so I don't get it mixed up with get_song_ids
Get song id from spotify . Will attempt to first search keeping apostrophes in text if that fails then the song will be searched again without apostrophes Underscore so I don ' t get it mixed up with get_song_ids
def _get_song_id(self, song: Song) -> str:
        song_id = None
        try:
            song_id = self.query_spotify(song.artist, song.song_title)
        except IndexError:
            try:
                song_id = self.query_spotify(song.artist.replace("'", "").replace(".", ""),
                                             song.song_title.replace("'", "").replace(".", ""))
            except IndexError:
                self.songs_not_found.append(f"{song.get_track_string()}")
        return song_id
def _get_song_id ( self , song : Song ) -> str : song_id = None try : song_id = self . query_spotify ( song . artist , song . song_title ) except IndexError : try : song_id = self . query_spotify ( song . artist . replace ( "'" , "" ) . replace ( "." , "" ) , song . song_title . replace ( "'" , "" ) . replace ( "." , "" ) ) except IndexError : self . songs_not_found . append ( f"{song.get_track_string()}" ) return song_id
Get song id from spotify.
Get song id from spotify .
"""
        Get song id from spotify.
        Will attempt to first search keeping apostrophes in text, if that fails then
        the song will be searched again without apostrophes
        Underscore so I don't get it mixed up with get_song_ids
        :param song: Song
        :return: song_id or None if song was not found
        """ # try fixing the strings with removing apostrophes
song_id or None if song was not found
song_id or None if song was not found
self
song
Song
None