Skip to content
This repository has been archived by the owner on Jun 30, 2019. It is now read-only.

当扫描到一些不是视频文件的时候出错 #6

Closed
stardiviner opened this issue Mar 3, 2018 · 1 comment
Closed

当扫描到一些不是视频文件的时候出错 #6

stardiviner opened this issue Mar 3, 2018 · 1 comment

Comments

@stardiviner
Copy link

我有一些MV视频在歌曲文件夹里面。当运行 fuo --debug的时候报错:

[INFO] [__main__ main 17] : Release mode.
Traceback (most recent call last):
  File "/home/stardiviner/.virtualenvs/python3.6/bin/fuo", line 11, in <module>
    sys.exit(main())
  File "/home/stardiviner/.virtualenvs/python3.6/lib/python3.6/site-packages/fuocore/__main__.py", line 20, in main
    local_provider = LocalProvider()
  File "/home/stardiviner/.virtualenvs/python3.6/lib/python3.6/site-packages/fuocore/local/provider.py", line 48, in __init__
    self.library_paths = library_paths
  File "/home/stardiviner/.virtualenvs/python3.6/lib/python3.6/site-packages/fuocore/local/provider.py", line 57, in library_paths
    self._songs = self.scan()
  File "/home/stardiviner/.virtualenvs/python3.6/lib/python3.6/site-packages/fuocore/decorators.py", line 13, in wrapper
    result = func(*args, **kwargs)
  File "/home/stardiviner/.virtualenvs/python3.6/lib/python3.6/site-packages/fuocore/local/provider.py", line 84, in scan
    songs = [self.model_from_fpath(fpath) for fpath in media_files]
  File "/home/stardiviner/.virtualenvs/python3.6/lib/python3.6/site-packages/fuocore/local/provider.py", line 84, in <listcomp>
    songs = [self.model_from_fpath(fpath) for fpath in media_files]
  File "/home/stardiviner/.virtualenvs/python3.6/lib/python3.6/site-packages/fuocore/local/provider.py", line 93, in model_from_fpath
    metadata = EasyMP3(fpath)
  File "/home/stardiviner/.virtualenvs/python3.6/lib/python3.6/site-packages/mutagen/_file.py", line 49, in __init__
    self.load(*args, **kwargs)
  File "/home/stardiviner/.virtualenvs/python3.6/lib/python3.6/site-packages/mutagen/_util.py", line 140, in wrapper
    return func(self, h, *args, **kwargs)
  File "/home/stardiviner/.virtualenvs/python3.6/lib/python3.6/site-packages/mutagen/id3/_file.py", line 406, in load
    self.info = self._Info(fileobj, offset)
  File "/home/stardiviner/.virtualenvs/python3.6/lib/python3.6/site-packages/mutagen/_util.py", line 169, in wrapper
    return func(*args, **kwargs)
  File "/home/stardiviner/.virtualenvs/python3.6/lib/python3.6/site-packages/mutagen/mp3/__init__.py", line 403, in __init__
    raise HeaderNotFoundError("can't sync to MPEG frame")
mutagen.mp3.HeaderNotFoundError: can't sync to MPEG frame
@cosven cosven closed this as completed in 53bbd1b Mar 3, 2018
@cosven
Copy link
Owner

cosven commented Mar 3, 2018

谢谢,(理论上)已经修复了 ~

@dissipator dissipator mentioned this issue Jul 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants