Skip to content

Commit

Permalink
Print credits in the same line
Browse files Browse the repository at this point in the history
  • Loading branch information
aliparlakci committed Jul 24, 2018
1 parent 8ac02e7 commit bfea548
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions script.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ def downloadPost(SUBMISSION):

if SUBMISSION['postType'] in downloaders:

print(SUBMISSION['postType'].upper())
print(SUBMISSION['postType'].upper(),end=" ")

if SUBMISSION['postType'] == "imgur":

Expand All @@ -484,11 +484,11 @@ def downloadPost(SUBMISSION):
+ " Seconds")

print(
"Client: {} - User: {} - Reset {}".format(
"==> Client: {} - User: {} - Reset {}".format(
credit['ClientRemaining'],
credit['UserRemaining'],
USER_RESET
)
),end=""
)

if not (credit['UserRemaining'] == 0 or \
Expand All @@ -509,6 +509,7 @@ def downloadPost(SUBMISSION):

raise ImgurLimitError('{} LIMIT EXCEEDED\n'.format(KEYWORD.upper()))

print()
downloaders[SUBMISSION['postType']] (directory,SUBMISSION)

else:
Expand Down

0 comments on commit bfea548

Please sign in to comment.