mirror of
https://github.com/KevinMidboe/bulk-downloader-for-reddit.git
synced 2025-10-29 17:40:15 +00:00
Added remaining credits to log file
This commit is contained in:
20
script.py
20
script.py
@@ -486,15 +486,19 @@ def downloadPost(SUBMISSION):
|
|||||||
+ " Minutes " \
|
+ " Minutes " \
|
||||||
+ str(int(IMGUR_RESET_TIME%60)) \
|
+ str(int(IMGUR_RESET_TIME%60)) \
|
||||||
+ " Seconds")
|
+ " Seconds")
|
||||||
|
|
||||||
if credit['ClientRemaining'] < 25 or credit['UserRemaining'] < 25:
|
if credit['ClientRemaining'] < 25 or credit['UserRemaining'] < 25:
|
||||||
print(
|
printCredit = {"noPrint":False}
|
||||||
"==> Client: {} - User: {} - Reset {}".format(
|
else:
|
||||||
credit['ClientRemaining'],
|
printCredit = {"noPrint":True}
|
||||||
credit['UserRemaining'],
|
|
||||||
USER_RESET
|
print(
|
||||||
),end=""
|
"==> Client: {} - User: {} - Reset {}\n".format(
|
||||||
)
|
credit['ClientRemaining'],
|
||||||
|
credit['UserRemaining'],
|
||||||
|
USER_RESET
|
||||||
|
),end="",**printCredit
|
||||||
|
)
|
||||||
|
|
||||||
if not (credit['UserRemaining'] == 0 or \
|
if not (credit['UserRemaining'] == 0 or \
|
||||||
credit['ClientRemaining'] == 0):
|
credit['ClientRemaining'] == 0):
|
||||||
|
|||||||
Reference in New Issue
Block a user