-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script tries to sync Video Games from IMDB #104
Comments
Thanks for reporting this. I see the issue you're having. I'll look into this soon when I have some time and provide a fix for it in a future patch. |
Thanks for the update, it eliminated many of the errors but the issue doesn't look totally fixed. I still see games from IMDB trying to be ranked in trackt and failing. For example, It still tries to rate Read Dead Redemption 2 (tt6161168) Also, the version shows as 2.9.5, instead of 1.9.5? |
Thanks for noting the version number that was an oversight on my part. I did some tests with
Give v3.0.1 a try and let me know. If you're still having issues, provide me with a portion of your .csv ratings and .csv watchlist exports from this page https://www.imdb.com/exports/ and make sure it includes the items you're having issues with. That will help me better understand where the issue is. Thanks |
troubleshooting.csv |
Thanks for the csv file. Nothing looks out of the ordinary there. I tested those items from my end and couldn't get the same behavior on 3.0.3. I'm thinking there could be an issue with your install. There might be multiple versions of IMDBTraktSyncer installed on separate python versions. Just to clarify some things:
Appreciate your patience with this. |
I'm on a Mac, running latest macos. I also have Python3 installed only, and had to create a symlink to python to work around the error introduced in the previous version (I was getting the exact same errors before).
The problem is likely Python 3? |
Thanks for that info.
It's possible. It's hard for me to troubleshoot this since I'm unable to replicate it from my end. There could be an issue with different python versions parsing the csv file in different ways. Here's something else you could try. In title = row[header_index['Title']]
year = row[header_index['Year']]
imdb_id = row[header_index['Const']]
date_added = row[header_index['Created']]
media_type = row[header_index['Title Type']].strip().lower().title() In the same time.sleep(5)
# Delete csv files
for file in os.listdir(directory):
if file.endswith('.csv'):
os.remove(os.path.join(directory, file)) One more thing you could try, in the same for row in reader:
title = row[header_index['Title']]
year = row[header_index['Year']]
imdb_id = row[header_index['Const']]
date_added = row[header_index['Created']]
media_type = row[header_index['Title Type']]
# Convert date format
date_added = datetime.strptime(date_added, '%Y-%m-%d').strftime('%Y-%m-%dT%H:%M:%S.000Z')
if media_type == "TV Series" or media_type == "TV Mini Series":
media_type = "show"
elif media_type == "TV Episode":
media_type = "episode"
elif media_type == "Movie" or media_type == "TV Special" or media_type == "TV Movie" or media_type == "TV Short" or media_type == "Video":
media_type = "movie"
else:
media_type = "unknown"
if media_type != "unknown":
imdb_watchlist.append({
'Title': title,
'Year': year,
'IMDB_ID': imdb_id,
'Date_Added': date_added,
'Type': media_type
}) Give those solutions a try and let me know if it changes anything. If any of those solutions work in your case, I can add a patch for it. |
Sorry for not replying earlier, this issue seems to be resolved in the latest versions so I guess we can close this ticket. |
Is there already an issue for your problem?
Bug Description
If you rate video games in IMDB the script will try to sync them to Trakt on every execution without providing any error (like "not found"). The expected behavior would be to ignore video games in the first place.
Environment
OS: Windows 11
Screenshots
No response
The text was updated successfully, but these errors were encountered: