pymedusa / Medusa

Automatic Video Library Manager for TV Shows. It watches for new episodes of your favorite shows, and when they are posted it does its magic.
https://pymedusa.com
GNU General Public License v3.0
1.74k stars 271 forks source link

nzbToSickbeard.py results in KeyError: (3, 11) (from eol.py) #11734

Closed scronkey closed 2 weeks ago

scronkey commented 3 weeks ago

Describe the bug Running nzbToSickbeard.py causes a KeyError: (3, 11) This comes from a call within eol.py Specifically time_left = PYTHON_EOL[(major, minor)] - now

To Reproduce Steps to reproduce the behavior:

  1. Have unprocessed media in Post=Processing Dir
  2. Run nzbToSickbeard.py
  3. See error
    Traceback (most recent call last):
    File "/opt/medusa/contrib/nzbToMedia/./nzbToSickBeard.py", line 270, in <module>
    import nzbToMedia
    File "/opt/medusa/contrib/nzbToMedia/nzbToMedia.py", line 727, in <module>
    eol.check()
    File "/opt/medusa/contrib/nzbToMedia/eol.py", line 100, in check
    warn_for_status(version, grace_period)
    File "/opt/medusa/contrib/nzbToMedia/eol.py", line 141, in warn_for_status
    days_left = lifetime(version)
                ^^^^^^^^^^^^^^^^^
    File "/opt/medusa/contrib/nzbToMedia/eol.py", line 71, in lifetime
    time_left = PYTHON_EOL[(major, minor)] - now
                ~~~~~~~~~~^^^^^^^^^^^^^^^^
    KeyError: (3, 11)

Expected behavior Expected behaviour is successful processing of the media to library

Medusa (please complete the following information):

Debug logs (at least 50 lines): No debug logs in Medusa, as this is nzbToMedia issue

Additional context autoProcessMedia.cfg is configured

p0psicles commented 2 weeks ago

if this is an nzbToMedia issue, why report it here?

scronkey commented 2 weeks ago

Ah, because it was in this repo and I've wrongly assumed it was maintained here - I didn't quite connect it is in the contrib directory until now.

I'll see if I can contact the original author or try to work it out myself.