def process_audio_file_with_spotify_search(audio_file_path):
    shazam_data = shazam_recognize_song(audio_file_path)
    if shazam_data:
        artist_name = shazam_data['track']['subtitle']
        title = shazam_data['track']['title']
        print(f"Identified Song: {artist_name} - {title}")
        
        access_token = authenticate_spotify(CLIENT_ID, CLIENT_SECRET)
        song_info = search_spotify_for_song(access_token, artist_name, title)
        
        if song_info:
            print(json.dumps(song_info, indent=4))  # For debugging
            print("\n///////////////////////////////\n")
            
            album_name = song_info['album']['name']
            album_url = song_info['album']['external_urls']['spotify']
            track_number = song_info['track_number']
            release_date = song_info['album']['release_date']
            isrc = song_info.get('external_ids', {}).get('isrc', "Not Available")
            label = song_info['label'] if 'label' in song_info else "Not Available"
            explicit = str(song_info['explicit']) if 'explicit' in song_info else "Not Available"  # Convert to string
            genres = ", ".join(song_info['genres']) if 'genres' in song_info else "Not Available"
            author_url = song_info['artists'][0]['external_urls']['spotify'] if 'artists' in song_info else "Not Available"
            spotify_url = song_info['external_urls']['spotify']
            
            print(f"Track Number on Spotify: {track_number}")
            
            audiofile = eyed3.load(audio_file_path)
            if audiofile.tag is None:  # If the file has no tags, create a new tag
                audiofile.initTag(version=eyed3.id3.ID3_V2_3)
            
            # Set standard tags
            audiofile.tag.artist = artist_name
            audiofile.tag.album = album_name
            audiofile.tag.album_artist = artist_name
            audiofile.tag.title = title
            audiofile.tag.recording_date = release_date
            
            # Using helper function to add or update TXXX frames
            add_or_update_txxx_frame(audiofile, "Album URL", album_url)
            add_or_update_txxx_frame(audiofile, "Eurydice", "True")
            add_or_update_txxx_frame(audiofile, "Compilation", "KK")
            add_or_update_txxx_frame(audiofile, "Genre", genres)
            add_or_update_txxx_frame(audiofile, "Author URL", author_url)
            add_or_update_txxx_frame(audiofile, "Label", label)
            add_or_update_txxx_frame(audiofile, "Explicit", explicit)
            add_or_update_txxx_frame(audiofile, "ISRC", isrc)
            add_or_update_txxx_frame(audiofile, "Spotify URL", spotify_url)
            
            audiofile.tag.comments.set(f"ISRC: {isrc}, Label: {label}, Explicit: {explicit}")
            
            audiofile.tag.save()  # Save the metadata to the file
            
            print(f"Metadata embedded into the file: {audio_file_path}")

            # Fetch high-quality album art URL
            high_res_image_url = get_high_quality_album_art_url(song_info)
            
            if high_res_image_url:
                # Determine paths
                image_file_path = os.path.splitext(audio_file_path)[0] + ".jpg"

                # Save and embed album art
                if save_high_quality_album_art(high_res_image_url, image_file_path):
                    embed_album_art_to_song(audio_file_path, image_file_path)
                else:
                    print("Skipping album art embed due to download failure.")
            else:
                print("No album art available.")

            new_file_name = f"{track_number:02d}. {title} - {artist_name} - {album_name} - {isrc}.mp3"
            new_file_name = re.sub(r'[/:*?"<>|]', '', new_file_name)  # Clean up characters not allowed in file names
            new_file_path = os.path.join(os.path.dirname(audio_file_path), new_file_name)
            os.rename(audio_file_path, new_file_path)  # Rename file
            print(f"File has been renamed to: {new_file_name}")

            new_image_file_path = os.path.splitext(new_file_path)[0] + ".jpg"
            os.rename(image_file_path, new_image_file_path)
            print(f"Album art file has been renamed to: {os.path.basename(new_image_file_path)}")

            new_lyrics_file_path = os.path.split(new_file_path)

            lyrics = get_lyrics_from_genius(artist_name, title)
            if 'plain' in lyrics:
                lyrics_plain_text = lyrics['plain']
                print("Lyrics:\n", lyrics_plain_text)
                save_lyrics_to_lrc(lyrics_plain_text, new_file_name)
                print(f"Lyrics saved to: {new_file_name}")
            else:
                print("No lyrics available to save.")


Save lyics file name = track number trackname artist name album name isrc