Skip to content

Commit 77a2234

Browse files
authored
fix
1 parent 5c9ee33 commit 77a2234

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plexapi/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
from getpass import getpass
1010
from threading import Thread, Event
1111
from tqdm import tqdm
12-
from plexapi import compat, log
12+
from plexapi import compat
1313
from plexapi.exceptions import NotFound
1414

15+
log = logging.getLogger('plexapi')
1516

1617
# Search Types - Plex uses these to filter specific media types when searching.
1718
# Library Types - Populated at runtime
@@ -257,8 +258,6 @@ def download(url, token, filename=None, savepath=None, session=None, chunksize=4
257258
>>> download(a_episode.getStreamURL(), a_episode.location)
258259
/path/to/file
259260
"""
260-
261-
from plexapi import log
262261
# fetch the data to be saved
263262
session = session or requests.Session()
264263
headers = {'X-Plex-Token': token}

0 commit comments

Comments
 (0)