ZeroQI / YouTube-Agent.bundle

Plex Metadata Agent for Movies and TV Series libraries
452 stars 43 forks source link

AttributeTypeMismatch: (2101, "Provided content of type 'float' is not of the required type 'int'.") #53

Closed TheBinaryLoop closed 3 years ago

TheBinaryLoop commented 3 years ago
2020-12-11 19:24:50,988 (7f4f0f7fe700) :  CRITICAL (agentkit:1095) - Exception in the update function of agent named 'YouTubeSeries', called with guid 'com.plexapp.agents.youtube://youtube|kUL2Dk4jlbM|Horizon - Zero Dawn/1/2?lang=xn' (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-b509cc236/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1093, in _update
    agent.update(obj, media, lang, **kwargs)
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/YouTube-Agent.bundle/Contents/Code/__init__.py", line 678, in update
    def update (self, metadata, media, lang, force ):  Update (metadata, media, lang, force,  False)
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/YouTube-Agent.bundle/Contents/Code/__init__.py", line 667, in Update
    episode_metadata_retrieved = populate_episode_metadata_from_info_json(series_root_folder, filename, episode, metadata, first, episodes, genre_array, channel_title)
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/YouTube-Agent.bundle/Contents/Code/__init__.py", line 361, in populate_episode_metadata_from_info_json
    episode.duration                = Dict(video_details, 'duration');                                                     Log.Info('[ ] duration: "{}"'.format(episode.duration))
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-b509cc236/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/attributes.py", line 31, in __setattr__
    self._attributes[name]._setcontent(value)
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-b509cc236/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/modelling/attributes.py", line 120, in _setcontent
    raise Framework.exceptions.AttributeTypeMismatch("Provided content of type '%s' is not of the required type '%s'." % (type(content).__name__, type(self)._type.__name__))