Turns out I can't have media that's older than 1902. This occurred on some audiobooks where the text was originally released before 1902.
Traceback (most recent call last):
File "/opt/plexemail/scripts/plexEmail.py", line 1580, in <module>
print time.strftime(sections[section[0]]['format'], time.strptime(displayText, '%Y-%m-%d %H:%M:%S'))
ValueError: year out of range
Work around is to delete or modify date on album to eliminate issue. Perhaps a check for this and a skip?
Turns out I can't have media that's older than 1902. This occurred on some audiobooks where the text was originally released before 1902.
Work around is to delete or modify date on album to eliminate issue. Perhaps a check for this and a skip?
Source:
https://stackoverflow.com/questions/37521247/how-to-format-0000-00-00-000000-using-strftime-in-python