Skip to content
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

ValueError: Year out of range #87

Open
rustymyers opened this issue Oct 29, 2017 · 0 comments
Open

ValueError: Year out of range #87

rustymyers opened this issue Oct 29, 2017 · 0 comments

Comments

@rustymyers
Copy link

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?

Source:
https://stackoverflow.com/questions/37521247/how-to-format-0000-00-00-000000-using-strftime-in-python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant