mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
Fix beets.mediafile deprecation warning
This commit is contained in:
parent
0c5f7be263
commit
05a66141a6
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ import shutil
|
|||
import stat
|
||||
import time
|
||||
|
||||
import beets.mediafile
|
||||
from mediafile import MediaFile
|
||||
import guessit
|
||||
from six import text_type
|
||||
|
||||
|
@ -28,7 +28,7 @@ def move_file(mediafile, path, link):
|
|||
file_ext = os.path.splitext(mediafile)[1]
|
||||
try:
|
||||
if file_ext in core.AUDIO_CONTAINER:
|
||||
f = beets.mediafile.MediaFile(mediafile)
|
||||
f = MediaFile(mediafile)
|
||||
|
||||
# get artist and album info
|
||||
artist = f.artist
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue