Guessing track number and title from filename fails with "index out of range"

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 3.0.0a4, 2.14
    • Affects Version/s: 2.13.3, 3.0.0a3
    • Component/s: Tags & Metadata
    • None
    • Environment:
      Manjaro Linux

      Cut and Pasta from log file:

      Traceback (most recent call last):
        File "/usr/lib/python3.14/site-packages/picard/tagger.py", line 817, in event
          event.run()
          ~~~~~~~~~^^
        File "/usr/lib/python3.14/site-packages/picard/util/thread.py", line 54, in run
          self.func(*self.args, **self.kwargs)
          ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3.14/site-packages/picard/file.py", line 388, in _loading_finished
          self._copy_loaded_metadata(result, postprocessors)
          ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3.14/site-packages/picard/file.py", line 402, in _copy_loaded_metadata
          processor(metadata)
          ~~~~~~~~~^^^^^^^^^^
        File "/usr/lib/python3.14/site-packages/picard/file.py", line 409, in _guess_tracknumber_and_title
          guessed = tracknum_and_title_from_filename(self.base_filename)
        File "/usr/lib/python3.14/site-packages/picard/util/_init_.py", line 675, in tracknum_and_title_from_filename
          dot_offset = 1 if stripped_filename[tnlen:][0] == '.' else 0
                            ~~~~~~~~~~~~~~~~~~~~~~~~~^^^
      IndexError: string index out of range

      End Cut and Pasta

      I'm not developer so unless you got a real specific question with instructions this is all I got, your welcome

            Assignee:
            Philipp Wolfer
            Reporter:
            gecko1969
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Version Package
                3.0.0a4
                2.14