Bug fix
This commit is contained in:
parent
6e2c69d053
commit
bddac14804
|
@ -5,6 +5,7 @@ import urllib.request
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import imgurpython
|
import imgurpython
|
||||||
|
from multiprocessing import Queue
|
||||||
|
|
||||||
from src.errors import (AlbumNotDownloadedCompletely, FileAlreadyExistsError,
|
from src.errors import (AlbumNotDownloadedCompletely, FileAlreadyExistsError,
|
||||||
FileNameTooLong, ImgurLoginError,
|
FileNameTooLong, ImgurLoginError,
|
||||||
|
@ -175,7 +176,7 @@ class Imgur:
|
||||||
"""Initialize imgur api"""
|
"""Initialize imgur api"""
|
||||||
|
|
||||||
config = GLOBAL.config
|
config = GLOBAL.config
|
||||||
return ImgurClient(
|
return imgurpython.ImgurClient(
|
||||||
config['imgur_client_id'],
|
config['imgur_client_id'],
|
||||||
config['imgur_client_secret']
|
config['imgur_client_secret']
|
||||||
)
|
)
|
||||||
|
@ -209,7 +210,7 @@ class Imgur:
|
||||||
'type':'album'}
|
'type':'album'}
|
||||||
|
|
||||||
def get_credits():
|
def get_credits():
|
||||||
return Imgur.initImgur().get_credits()
|
return self.initImgur().get_credits()
|
||||||
|
|
||||||
class Gfycat:
|
class Gfycat:
|
||||||
def __init__(self,directory,POST):
|
def __init__(self,directory,POST):
|
||||||
|
|
Loading…
Reference in a new issue