ValueError: year 0 is out of range when importing Movies
Closed this issue · 0 comments
sanjeevstunner commented
Traceback (most recent call last):
File "/mnt/c/users/sanjeev/desktop/trakt/TvTimeToTrakt/TimeToTrakt.py", line 166, in <module>
start()
File "/mnt/c/users/sanjeev/desktop/trakt/TvTimeToTrakt/TimeToTrakt.py", line 156, in start
process_watched_movies()
File "/mnt/c/users/sanjeev/desktop/trakt/TvTimeToTrakt/TimeToTrakt.py", line 110, in process_watched_movies
movie = TVTimeMovie(row)
File "/mnt/c/users/sanjeev/desktop/trakt/TvTimeToTrakt/searcher.py", line 147, in __init__
release_date = datetime.strptime(
File "/usr/lib/python3.10/_strptime.py", line 568, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
File "/usr/lib/python3.10/_strptime.py", line 534, in _strptime
julian = datetime_date(year, month, day).toordinal() - \
ValueError: year 0 is out of range
record that's triggering the exception
,08c1f0a2-581f-476c-bbd8-643a7426635f,follow,follow-08c1f0a2-581f-476c-bbd8-643a7426635f-0,3.695118e+07,,2020-01-18 01:16:12,2020-01-18 01:16:12,,,movie,,Avengers: Endgame,,0000-12-31 20:06:12,,,0,,,,,,,,,,,,
There're multiple entries like this, it would be great if you can replace the 0 with current date time or something