mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-12-08 20:39:08 +00:00
* Fixes #272 by refactoring global log to conventional global as used by logzero * Remove unnecessary logger from download_single, which was a test case * Remove unnecessary logger from main(), which was a test case
This commit is contained in:
committed by
Ritiek Malhotra
parent
803a677167
commit
32c2ace96c
@@ -1,6 +1,7 @@
|
||||
from bs4 import BeautifulSoup
|
||||
import urllib
|
||||
import pafy
|
||||
from logzero import logger as log
|
||||
|
||||
from spotdl import internals
|
||||
from spotdl import const
|
||||
@@ -8,8 +9,6 @@ from spotdl import const
|
||||
import os
|
||||
import pprint
|
||||
|
||||
log = const.log
|
||||
|
||||
# Fix download speed throttle on short duration tracks
|
||||
# Read more on mps-youtube/pafy#199
|
||||
pafy.g.opener.addheaders.append(('Range', 'bytes=0-'))
|
||||
|
||||
Reference in New Issue
Block a user