#Overlays Error. Value Error: Year
1 messages · Page 1 of 1 (latest)
Welcome!
It looks like you have not yet completed #938455615741775902, this will allow us to help you quicker.
Someone from <@&938443185347244033> will assist when they're available.
Including the meta.log from the beginning is a huge help, type !logs for more information.
You can press the "Close Post" button above or type !close at any time to close this post.
Hm I don't think I've seen that before
Going to tag @fluid niche to review when he's available
Thanks
@stuck slate side note, i would suggest setting up mdblist because you are getting one error related to that
so that you can update mass_audience_rating to mdb_tomatoesaudience
this is odd
basiclly its erroring out when i try and grab all collections from your server
from some reason the plexapi module is throwing an error trying to build one of the objects
Any suggestions on how to fix that?
Likely going to be something for Sohjiro to fix
not really anything i can do tbh
personally id delete all collections
one of them broke somewhere
hard to tell which one
if you comfortable with python i can walk you though how to figure it out without deleting collections
or if your server is public and your comfortable with me trying you can send me your credentials
let's try first by you walking me through the process, if you don't mind. If my basic programming knowledge is not letting us fixing the problem, then of course I can give you access to my server
im fine with either ok first off you know how to run a python script correct?
On my local computer and I am using it to connect to a headless server
headless remote server
ok so you have python installed on your local computer?
yes
do a pip install PlexAPI
ok
ok first lets make sure the error is still happening
import plexapi
from plexapi.server import PlexServer
PLEX_URL = ""
PLEX_TOKEN = ""
LIBRARY_NAME = "Movies"
ps = PlexServer(PLEX_URL, PLEX_TOKEN, timeout=600)
lib = next((s for s in ps.library.sections() if s.title == LIBRARY_NAME), None)
collections = lib._search(f"/library/sections/{lib.key}/all?type=18", None, 0, plexapi.X_PLEX_CONTAINER_SIZE)
for c in collections:
print(c.title)
run this filling in the PLEX_URL, PLEX_TOKEN, and LIBRARY_NAME
SyntaxError: invalid syntax
This error normally implies that you are running an unsupported version of Python.
The python versions supported are as follows:
Plex Meta Manager: python 3.7 - 3.11
Plex Image Cleanup: python 3.11
PMM Overlay Reset: python 3.11
With the above in mind, we strongly recommend users run python 3.11 so that they are fully compliant with the suite of PMM products.
I've installed 3.11 and getting the same error
no leave the quotes
like this
import plexapi
from plexapi.server import PlexServer
PLEX_URL = "http://192.168.0.1:32400"
PLEX_TOKEN = "fghfdghdfghdfghgf"
LIBRARY_NAME = "Movies"
ps = PlexServer(PLEX_URL, PLEX_TOKEN, timeout=600)
lib = next((s for s in ps.library.sections() if s.title == LIBRARY_NAME), None)
collections = lib._search(f"/library/sections/{lib.key}/all?type=18", None, 0, plexapi.X_PLEX_CONTAINER_SIZE)
for c in collections:
print(c.title)
Thanks
I got the following error
Carloss-MacBook-Pro:~ carlosenriquetorrez$ python3 plex.py
Traceback (most recent call last):
File "/Users/carlosenriquetorrez/plex.py", line 11, in <module>
collections = lib._search(f"/library/sections/{lib.key}/all?type=18", None, 0, plexapi.X_PLEX_CONTAINER_SIZE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/plexapi/library.py", line 1532, in _search
subresults = self.fetchItems(key, container_start=container_start,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/plexapi/library.py", line 450, in fetchItems
items = self.findItems(data, cls, ekey, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/plexapi/base.py", line 313, in findItems
item = self._buildItemOrNone(elem, cls, initpath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/plexapi/base.py", line 102, in _buildItemOrNone
return self._buildItem(elem, cls, initpath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/plexapi/base.py", line 94, in _buildItem
return ecls(self._server, elem, initpath)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/plexapi/base.py", line 57, in init
self._loadData(data)
File "/usr/local/lib/python3.11/site-packages/plexapi/collection.py", line 76, in _loadData
self.collectionPublished = utils.cast(bool, data.attrib.get('collectionPublished', '0'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/plexapi/utils.py", line 154, in cast
raise ValueError(value)
ValueError: Year
same error on PMM
I'm also getting this error
[2023-04-30 16:19:39,984] [meta.py:1393] [INFO] | Blade II Metadata |
[2023-04-30 16:19:39,984] [meta.py:1393] [INFO] |====================================================================================================|
[2023-04-30 16:19:39,984] [meta.py:1527] [DEBUG] | |
[2023-04-30 16:19:39,984] [meta.py:1528] [DEBUG] | Validating Method: year |
[2023-04-30 16:19:39,984] [meta.py:1593] [ERROR] | Metadata Error: year attribute is blank |
[2023-04-30 16:19:39,984] [meta.py:1392] [INFO] | |
[2023-04-30 16:19:39,984] [meta.py:1393] [INFO] |```
When I run nightly, its broken. When I run latest, it works
so definitely something changed
My config for what its worth
and my logs
@heady musk its a completely different issue please open a separate thread
run this
import plexapi
from plexapi.server import PlexServer
PLEX_URL = "http://192.168.0.1:32400"
PLEX_TOKEN = "fghfdghdfghdfghgf"
LIBRARY_NAME = "Movies"
ps = PlexServer(PLEX_URL, PLEX_TOKEN, timeout=600)
lib = next((s for s in ps.library.sections() if s.title == LIBRARY_NAME), None)
print(lib.key)
The result is 73
then in your browser go to PLEXURL/library/sections/73/all?type=18&X-Plex-Token=PLEXTOKEN
switch the PLEXURL and PLEXTOKEN out
got it
ex http://192.168.0.1:32400/library/sections/73/all?type=18&X-Plex-Token=fghfdghdfghdfghgf
download the xml file and send it to me please
I got the following error message
401 Unauthorized
then you have the url formatted wrong or the token is wrong
you were correct
in plex
can you edit the Batman Collection
go to advance and screenshot whats there
humm not sure why but theres collectionPublished="Year" for that collection only
im willing to bet if you delete the collection youll be good
Actually it did fix the problema. The Batman Collection was the problem. Thank you for all the help.