def process_result(result):
    """
    Process a result object by:
        1. Saving the lyrics to the corresponding file(if applicable).
        2. Printing the lyrics or the corresponding error/success message.
        3. Returning a boolean indicating if the lyrics were found or not.
    """
    found = result.source is not None
    if found:
        if hasattr(result.song, 'filename'):
            audiofile = eyed3.load(result.song.filename)
            audiofile.tag.lyrics.set(result.song.lyrics)
            audiofile.tag.save()
            print(f'{id_source(result.source)} Lyrics added for {result.song}')
        else:
            print(f"""FROM {id_source(result.source, full=True)}

{result.song.lyrics}
-----------------------------------------------------------------------------\
""")
    else:
        print(f'Lyrics for {result.song} not found')

    return found
def process_result ( result ) : found = result . source is not None if found : if hasattr ( result . song , 'filename' ) : audiofile = eyed3 . load ( result . song . filename ) audiofile . tag . lyrics . set ( result . song . lyrics ) audiofile . tag . save ( ) print ( f'{id_source(result.source)} Lyrics added for {result.song}' ) else : print ( f"""FROM {id_source(result.source, full=True)}
{result.song.lyrics}
-----------------------------------------------------------------------------\
""" ) else : print ( f'Lyrics for {result.song} not found' ) return found
Process a result object by:
        1. Saving the lyrics to the corresponding file(if applicable).
        2. Printing the lyrics or the corresponding error/success message.
        3. Returning a boolean indicating if the lyrics were found or not.