spotisub: Python error

Here I am again. After more than an hour I took a look at Navidrome and nothing new appeared. So I checked the Subdify log and found this:

2024-09-12 16:59:07 ERROR    Job "artist_reccomendations (trigger: interval[1:00:00], next run at: 2024-09-12 17:59:07 CEST)" raised an exception
Traceback (most recent call last):
  File "/home/user/.local/lib/python3.10/site-packages/apscheduler/executors/base.py", line 125, in run_job
    retval = job.func(*job.args, **job.kwargs)
  File "/home/user/subtify/./main.py", line 145, in artist_reccomendations
    generate_playlists.show_recommendations_for_artist(random.choice(generate_playlists.get_artists_array_names()))
  File "/home/user/subtify/./generate_playlists.py", line 41, in get_artists_array_names
    artists = pysonic.getArtists()
  File "/home/user/.local/lib/python3.10/site-packages/libsonic/connection.py", line 1611, in getArtists
    res = self._doInfoReq(req)
  File "/home/user/.local/lib/python3.10/site-packages/libsonic/connection.py", line 2720, in _doInfoReq
    res = self._opener.open(req)
  File "/usr/local/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/local/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/local/lib/python3.10/urllib/request.py", line 563, in error
    return self._call_chain(*args)
  File "/usr/local/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python3.10/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 405: Method Not Allowed

Everything looks fine, the service is green, but something still blocks it.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (10 by maintainers)

Most upvoted comments

No, I meant I don’t think L’Aura is similar to the artists in the generated playlist. Anyway, looking at the logs, I see many songs considered not found that are 100% present in my library

This is spotify fault, I insert in those playlists what spotify send me.

 WARNING  Track Sheryl Crow - Everyday Is A Winding Road not found in your music library
2024-09-13 12:08:51 INFO     Searching Amy Macdonald - Mr Rock & Roll in your music library
2024-09-13 12:08:52 WARNING  Track Amy Macdonald - Mr Rock & Roll not found in your music library
2024-09-13 12:08:52 INFO     Searching fun. - Some Nights in your music library
2024-09-13 12:08:54 WARNING  Track fun. - Some Nights not found in your music library
2024-09-13 12:08:54 INFO     Searching Norah Jones - Sunrise in your music library
2024-09-13 12:08:55 WARNING  Track Norah Jones - Sunrise not found in your music library
2024-09-13 12:08:55 INFO     Searching George Michael - Freedom! '90 - Remastered in your music library
2024-09-13 12:08:57 WARNING  Track George Michael - Freedom! '90 - Remastered not found in your music library
2024-09-13 12:08:57 INFO     Searching Kate Bush - Running Up That Hill (A Deal With God) in your music library
2024-09-13 12:08:58 WARNING  Track Kate Bush - Running Up That Hill (A Deal With God) not found in your music library
2024-09-13 12:08:58 INFO     Searching Seal - Kiss from a Rose in your music library
2024-09-13 12:09:00 WARNING  Track Seal - Kiss from a Rose not found in your music library
2024-09-13 12:09:00 INFO     Searching Of Monsters and Men - Mountain Sound in your music library
2024-09-13 12:09:01 WARNING  Track Of Monsters and Men - Mountain Sound not found in your music library
2024-09-13 12:09:01 INFO     Searching Train - Drive By in your music library
2024-09-13 12:09:03 WARNING  Track Train - Drive By not found in your music library
2024-09-13 12:09:03 INFO     Searching Eliza Doolittle - Pack Up in your music library
2024-09-13 12:09:04 WARNING  Track Eliza Doolittle - Pack Up not found in your music library
2024-09-13 12:09:04 INFO     Searching The Police - Every Little Thing She Does Is Magic in your music library
2024-09-13 12:09:05 WARNING  Track The Police - Every Little Thing She Does Is Magic not found in your music library
2024-09-13 12:09:05 INFO     Searching Paloma Faith - Never Tear Us Apart in your music library

How does it parse the library? I have a heavily curated library with metadata mostly from Musicbrainz.

He parse the library using song artist and song name. But like I said before this is a work in progress and some songs may not be found yet.

Anyways this is my log from today (saved tracks) , I almost have everything and the log is this:

subtify    | 2024-09-13 10:51:53 INFO     Searching Punkreas - Déjà-Vu in your music library
subtify    | 2024-09-13 10:51:53 INFO     Track Punkreas - Déjà-Vu found in your music library
subtify    | 2024-09-13 10:51:53 INFO     Searching Punkreas - I Signori Della Guerra in your music library
subtify    | 2024-09-13 10:51:53 INFO     Track Punkreas - I Signori Della Guerra found in your music library
subtify    | 2024-09-13 10:51:53 INFO     Searching Punkreas - Disagio (feat. Raphael) in your music library
subtify    | 2024-09-13 10:51:54 INFO     Track Punkreas - Disagio (feat. Raphael) found in your music library
subtify    | 2024-09-13 10:51:54 INFO     Searching Raphael - Disagio (feat. Raphael) in your music library
subtify    | 2024-09-13 10:51:54 INFO     Track Raphael - Disagio (feat. Raphael) found in your music library
subtify    | 2024-09-13 10:51:54 INFO     Searching Punkreas - Giorno Perfetto in your music library
subtify    | 2024-09-13 10:51:54 INFO     Track Punkreas - Giorno Perfetto found in your music library
subtify    | 2024-09-13 10:51:54 INFO     Searching Punkreas - Uomo Medioevo in your music library
subtify    | 2024-09-13 10:51:54 INFO     Track Punkreas - Uomo Medioevo found in your music library
subtify    | 2024-09-13 10:51:54 INFO     Searching Punkreas - Il Prossimo Show - Electric Version in your music library
subtify    | 2024-09-13 10:51:54 WARNING  Excluding search result Punkreas - Il Prossimo Show - Acoustic - Funny Goes Acoustic because it contains excluded words
subtify    | 2024-09-13 10:51:54 WARNING  Excluding search result Punkreas - Il Prossimo Show - Acoustic - Funny Goes Acoustic because it contains excluded words
subtify    | 2024-09-13 10:51:54 WARNING  Excluding search result Punkreas - Il Prossimo Show - Acoustic - Il Prossimo Show (Acoustic) because it contains excluded words
subtify    | 2024-09-13 10:51:54 WARNING  Excluding search result Punkreas - Il Prossimo Show - Acoustic - Il Prossimo Show (Acoustic) because it contains excluded words
subtify    | 2024-09-13 10:51:54 INFO     Track Punkreas - Il Prossimo Show - Electric Version found in your music library
subtify    | 2024-09-13 10:51:54 INFO     Searching Punkreas - Battaglia Persa in your music library
subtify    | 2024-09-13 10:51:55 INFO     Track Punkreas - Battaglia Persa found in your music library
subtify    | 2024-09-13 10:51:55 INFO     Searching Punkreas - Tempi Distorti in your music library
subtify    | 2024-09-13 10:51:55 INFO     Track Punkreas - Tempi Distorti found in your music library
subtify    | 2024-09-13 10:51:55 INFO     Searching Punkreas - Non C'è Più Tempo in your music library
subtify    | 2024-09-13 10:51:55 INFO     Track Punkreas - Non C'è Più Tempo found in your music library
subtify    | 2024-09-13 10:51:55 INFO     Searching Punkreas - Dai Dai Dai (Die Die Die) (feat. Giancane) in your music library
subtify    | 2024-09-13 10:51:55 INFO     Track Punkreas - Dai Dai Dai (Die Die Die) (feat. Giancane) found in your music library
subtify    | 2024-09-13 10:51:55 INFO     Searching Giancane - Dai Dai Dai (Die Die Die) (feat. Giancane) in your music library
subtify    | 2024-09-13 10:51:56 INFO     Track Giancane - Dai Dai Dai (Die Die Die) (feat. Giancane) found in your music library
subtify    | 2024-09-13 10:51:56 INFO     Searching Punkreas - Le Mani In Alto in your music library
subtify    | 2024-09-13 10:51:56 INFO     Track Punkreas - Le Mani In Alto found in your music library
subtify    | 2024-09-13 10:51:56 INFO     Searching Punkreas - Ciao Ciao in your music library
subtify    | 2024-09-13 10:51:56 INFO     Track Punkreas - Ciao Ciao found in your music library
subtify    | 2024-09-13 10:51:56 INFO     Searching Punkreas - Modena - Milano in your music library
subtify    | 2024-09-13 10:51:56 INFO     Track Punkreas - Modena - Milano found in your music library
subtify    | 2024-09-13 10:51:56 INFO     Searching Modena City Ramblers - Modena - Milano in your music library
subtify    | 2024-09-13 10:51:56 INFO     Track Modena City Ramblers - Modena - Milano found in your music library
subtify    | 2024-09-13 10:51:56 INFO     Searching Punkreas - Dai Dai Dai (Die Die Die) (feat. Giancane) in your music library
subtify    | 2024-09-13 10:51:57 INFO     Track Punkreas - Dai Dai Dai (Die Die Die) (feat. Giancane) found in your music library
subtify    | 2024-09-13 10:51:57 INFO     Searching Giancane - Dai Dai Dai (Die Die Die) (feat. Giancane) in your music library
subtify    | 2024-09-13 10:51:57 INFO     Track Giancane - Dai Dai Dai (Die Die Die) (feat. Giancane) found in your music library
subtify    | 2024-09-13 10:51:57 INFO     Searching AC/DC - Fire Your Guns in your music library
subtify    | 2024-09-13 10:51:57 WARNING  Track AC/DC - Fire Your Guns not found in your music library
subtify    | 2024-09-13 10:51:57 INFO     Searching Skid Row - Youth Gone Wild in your music library
subtify    | 2024-09-13 10:51:57 WARNING  Track Skid Row - Youth Gone Wild not found in your music library
subtify    | 2024-09-13 10:51:57 INFO     Searching Warrant - Cherry Pie in your music library
subtify    | 2024-09-13 10:51:58 WARNING  Track Warrant - Cherry Pie not found in your music library
subtify    | 2024-09-13 10:51:58 INFO     Searching The Offspring - Make It All Right in your music library
subtify    | 2024-09-13 10:51:58 WARNING  Track The Offspring - Make It All Right not found in your music library
subtify    | 2024-09-13 10:51:58 INFO     Searching Corey Taylor - Beyond in your music library
subtify    | 2024-09-13 10:51:58 WARNING  Track Corey Taylor - Beyond not found in your music library
subtify    | 2024-09-13 10:51:58 INFO     Searching Alestorm - Drink in your music library
subtify    | 2024-09-13 10:51:58 INFO     Track Alestorm - Drink found in your music library
subtify    | 2024-09-13 10:51:58 INFO     Searching Serj Tankian - Sky Is Over in your music library
subtify    | 2024-09-13 10:51:58 INFO     Track Serj Tankian - Sky Is Over found in your music library
subtify    | 2024-09-13 10:51:58 INFO     Searching Punkreas - Il mondo in your music library
subtify    | 2024-09-13 10:51:59 INFO     Track Punkreas - Il mondo found in your music library
subtify    | 2024-09-13 10:51:59 INFO     Searching Piotta - Il mondo in your music library
subtify    | 2024-09-13 10:51:59 WARNING  Track Piotta - Il mondo not found in your music library
subtify    | 2024-09-13 10:51:59 INFO     Searching Punkreas - Il Mercato Del Niente in your music library
subtify    | 2024-09-13 10:51:59 INFO     Track Punkreas - Il Mercato Del Niente found in your music library
subtify    | 2024-09-13 10:51:59 INFO     Searching Punkreas - Battaglia Persa in your music library
subtify    | 2024-09-13 10:51:59 INFO     Track Punkreas - Battaglia Persa found in your music library
subtify    | 2024-09-13 10:51:59 INFO     Searching Finley - I MIEI AMICI (feat. Punkreas) in your music library

EDIT Is it maybe because I have /music/GENRE/artist/albums?

no.

I am implementing better track matching and word exclusion in the next release planned for today.

Anyways we’re going offtopic now, the python error looks solved and you’re correctly running subtify. If you need any other help just PM me or add me on discord.

Credentials and ports are ok, I can’t ping from inside container (in Portainer), because “ping” is missing and cannot be installed. Anyway, I have merged the 2 composes, will see what happens and check back.