mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
remove warnings
This commit is contained in:
parent
b7d6ad8c07
commit
8ed5d9fdc4
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ import shutil
|
||||||
import stat
|
import stat
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import beets.mediafile
|
import mediafile as mediafiletool
|
||||||
import guessit
|
import guessit
|
||||||
from six import text_type
|
from six import text_type
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ def move_file(mediafile, path, link):
|
||||||
file_ext = os.path.splitext(mediafile)[1]
|
file_ext = os.path.splitext(mediafile)[1]
|
||||||
try:
|
try:
|
||||||
if file_ext in core.AUDIO_CONTAINER:
|
if file_ext in core.AUDIO_CONTAINER:
|
||||||
f = beets.mediafile.MediaFile(mediafile)
|
f = mediafiletool.MediaFile(mediafile)
|
||||||
|
|
||||||
# get artist and album info
|
# get artist and album info
|
||||||
artist = f.artist
|
artist = f.artist
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue