Skip to content

embed-lrc crash: NotImplementedError: Mutagen type <class 'NoneType'> not implemented #1

@sbrl

Description

@sbrl

When running this tool over my music collection (not in nested mode), I get a crash. Target files include a few .mp3 files, and a .flac. Installed via pip (pip3 install tagpatch).

tagpatch embed-lrc
Traceback (most recent call last):
  File "/home/sbrl/.local/bin/tagpatch", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/sbrl/.local/lib/python3.11/site-packages/tagpatch/__main__.py", line 82, in main
    cli()
  File "/home/sbrl/.local/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sbrl/.local/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/home/sbrl/.local/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sbrl/.local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sbrl/.local/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sbrl/.local/lib/python3.11/site-packages/tagpatch/options.py", line 17, in wrapper
    return f(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^
  File "/home/sbrl/.local/lib/python3.11/site-packages/tagpatch/options.py", line 31, in wrapper
    return f(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^
  File "/home/sbrl/.local/lib/python3.11/site-packages/tagpatch/options.py", line 46, in wrapper
    return f(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^
  File "/home/sbrl/.local/lib/python3.11/site-packages/tagpatch/options.py", line 61, in wrapper
    return f(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^
  File "/home/sbrl/.local/lib/python3.11/site-packages/tagpatch/__main__.py", line 76, in embed_lrc
    patch.apply()
  File "/home/sbrl/.local/lib/python3.11/site-packages/tagpatch/patches/embed_lrc.py", line 76, in apply
    f: mutagen.FileType = music_tag.load_file(dst_file)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/sbrl/.local/lib/python3.11/site-packages/music_tag/__init__.py", line 66, in load_file
    raise NotImplementedError("Mutagen type {0} not implemented"
NotImplementedError: Mutagen type <class 'NoneType'> not implemented

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions