If i add a Podcast like "Anna und die wilden Tiere" or "Checkpod", the get_song_info function fails. It is probably because of the podcast format. The data looks empty and there are no tracks found.
Hope there is a simple solution for this, like using dummy data for the necessary fields.
2024-04-01 06:15:05,177 | Failed to parse TRACKS_URL response: 'NoneType' object is not subscriptable
{
"tracks" : [ null ]
}
Traceback (most recent call last):
File "/app/spoonie.py", line 166, in get_song_info
for data in info['tracks'][0]['artists']:
~~~~~~~~~~~~~~~~~^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/spoonie.py", line 375, in main
(artists, raw_artists, album_name, name, image_url, release_year, disc_number,track_number, scraped_song_id, is_playable, duration_ms) = get_song_info(spotifySession,track_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/spoonie.py", line 186, in get_song_info
raise ValueError(f'Failed to parse TRACKS_URL response: {str(e)}\n{raw}')
ValueError: Failed to parse TRACKS_URL response: 'NoneType' object is not subscriptable
{
"tracks" : [ null ]
}
If i add a Podcast like "Anna und die wilden Tiere" or "Checkpod", the get_song_info function fails. It is probably because of the podcast format. The data looks empty and there are no tracks found.
Hope there is a simple solution for this, like using dummy data for the necessary fields.
Example spotify track: https://open.spotify.com/episode/4bK5cKclzHMhPYo4YpNeNp?si=80a31887561d4ac2