pannal / Sub-Zero.bundle

Subtitles for Plex, as good you would expect them to be.
Other
1.76k stars 120 forks source link

Some episodes are ignored by the scheduler and never get subtitles unless manually refreshing that specific episode in subzero. #345

Open Wouter93 opened 7 years ago

Wouter93 commented 7 years ago

I managed to reconstruct my issue by downloading an episode of Game of Thrones s02e02

After this download finished and refreshing my Plex library (and waiting 5 minutes for good measure) the new episode is visible in plex, but without subtitles.

An error is shown in the subzero log file: (Full log file at https://pastebin.com/raw/qc2u2Yez)

CRITICAL (core:574) - Exception in the update function of agent named 'Sub-Zero Subtitles (TV, 2.0.26.1695)', called with guid 'com.plexapp.agents.thetvdb://121361?lang=nl' (most recent call last): File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-3497d6779\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 1076, in _update agent.update(obj, media, lang, **kwargs) File "C:\Users\redacted\AppData\Local\Plex Media Server\Plug-ins\Sub-Zero.bundle\Contents\Code\__init__.py", line 144, in update videos = media_to_videos(media, kind=self.agent_type) File "C:\Users\redacted\AppData\Local\Plex Media Server\Plug-ins\Sub-Zero.bundle\Contents\Code\support\plex_media.py", line 100, in media_to_videos stream_info = get_plexapi_stream_info(plex_episode) File "C:\Users\redacted\AppData\Local\Plex Media Server\Plug-ins\Sub-Zero.bundle\Contents\Code\support\plex_media.py", line 57, in get_plexapi_stream_info data["audio_channels"] = "5.1" AttributeError: 'NoneType' object has no attribute 'upper'

Now running the scheduler manually, there is no mention of Game of Thrones S02E02 in the log file, and no subtitles are downloaded: https://pastebin.com/raw/HvzqM2hy

(This issue happens in Subzero v2.0.26.1695 , Plex v1.8.4.4249 on Windows 10)

pannal commented 7 years ago

Do you have any errors related to #342?

Wouter93 commented 7 years ago

Nope, that seems unrelated

pannal commented 6 years ago

Sorry for the long response delay.

I've seen someone talk in the SZ Slack support channel about the error you've mentioned.

I've fixed that issue in the current develop branch. Would you care to try it out? Please refer to the wiki on how to install SZ in development mode.