Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-2724

Crash in track search dialog if artist name translation is enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 2.9.2
    • 2.9.1
    • Lookup & Match
    • None
    • Arch Linux

      Traceback (most recent call last): 
       File "/usr/lib/python3.11/site-packages/picard/webservice/__init__.py", line 568, in _process_reply 
         self._handle_reply(reply, request) 
       File "/usr/lib/python3.11/site-packages/picard/webservice/__init__.py", line 554, in _handle_reply 
         handler(document, reply, error) 
       File "/usr/lib/python3.11/site-packages/picard/ui/searchdialog/track.py", line 134, in handle_reply 
         tracks = (result.track for result in sort_by_similarity(candidates)) 
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
       File "/usr/lib/python3.11/site-packages/picard/util/__init__.py", line 875, in sort_by_similarity 
         return sorted( 
                ^^^^^^^ 
       File "/usr/lib/python3.11/site-packages/picard/ui/searchdialog/track.py", line 131, in <genexpr> 
         metadata.compare_to_track(track, File.comparison_weights) 
       File "/usr/lib/python3.11/site-packages/picard/metadata.py", line 363, in compare_to_track 
         b = artist_credit_from_node(artist_credits)[0] 
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
       File "/usr/lib/python3.11/site-packages/picard/mbjson.py", line 345, in artist_credit_from_node 
         translated_name, sort_name = _translate_artist_node(artist, config=config) 
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
       File "/usr/lib/python3.11/site-packages/picard/mbjson.py", line 315, in _translate_artist_node 
         full_locales, root_locales = _locales_from_aliases(node['aliases']) 
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
       File "/usr/lib/python3.11/site-packages/picard/mbjson.py", line 261, in _locales_from_aliases 
         if alias['type-id'] == ALIAS_TYPE_ARTIST_NAME_ID: 
            ~~~~~^^^^^^^^^^^ 
      KeyError: 'type-id' 
      Aborted (core dumped) 

       

            outsidecontext Philipp Wolfer
            nijahplays nijahplays
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Version Package
                2.9.2