Skip to content

Commit

Permalink
Merge pull request #97 from RileyXX/minor-change-when-prompting-user-…
Browse files Browse the repository at this point in the history
…to-enter-imdb-username

Minor change when prompting for IMDB username
  • Loading branch information
RileyXX authored Jun 16, 2024
2 parents 803de2f + cdd0e85 commit fbe5c93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions IMDBTraktSyncer/verifyCredentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,12 @@ def prompt_get_credentials():

# Check if any of the values are "empty" and prompt the user to enter them
for key in values.keys():
if values[key] == "empty" and (key != "trakt_access_token" and key != "trakt_refresh_token"):
values[key] = input(f"Please enter a value for {key}: ").strip()
if values[key] == "empty" and key not in ["trakt_access_token", "trakt_refresh_token"]:
if key == "imdb_username":
prompt_message = f"Please enter a value for {key} (email or phone number): "
else:
prompt_message = f"Please enter a value for {key}: "
values[key] = input(prompt_message).strip()
with open(file_path, 'w', encoding='utf-8') as f:
json.dump(values, f)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
with codecs.open(os.path.join(here, "README.md"), 'r', encoding="utf-8") as fh:
long_description = "\n" + fh.read()

VERSION = '1.9.2'
VERSION = '1.9.3'
DESCRIPTION = 'A python script that syncs user watchlist, ratings and reviews for Movies, TV Shows and Episodes both ways between Trakt and IMDB.'

# Setting up
Expand Down

0 comments on commit fbe5c93

Please sign in to comment.