Fixes #272 by refactoring global log to conventional global... (#358)

* 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:
Arryon Tijsma
2018-09-22 07:43:26 +02:00
committed by Ritiek Malhotra
parent 803a677167
commit 32c2ace96c
8 changed files with 12 additions and 13 deletions

View File

@@ -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-'))