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

Problems with Login since 0.49 #96

Closed
clipse2004 opened this issue Feb 24, 2025 · 3 comments
Closed

Problems with Login since 0.49 #96

clipse2004 opened this issue Feb 24, 2025 · 3 comments

Comments

@clipse2004
Copy link

Describe the Bug
I've tried all of this now. With version 0.48 I can still log in without any problems. But when I update, I have to add Plex again. Then neither my local IP nor the Plex direct address works.

The Error

Error setting up entry Zuletzt for plex_recently_added
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 637, in __async_setup_with_context
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/plex_recently_added/init.py", line 36, in async_setup_entry
client = await setup_client(
^^^^^^^^^^^^^^^^^^^
...<11 lines>...
)
^
File "/config/custom_components/plex_recently_added/helpers.py", line 19, in setup_client
await client.update()
File "/config/custom_components/plex_recently_added/plex_api.py", line 132, in update
parsed_data = parse_data(self._hass, data[k], self._max, info_url, self._token, identifier, k, self._images_base_url, k == "all")
File "/config/custom_components/plex_recently_added/parser.py", line 99, in parse_data
art_IDs = extract_metadata_and_type(art)
File "/config/custom_components/plex_recently_added/parser.py", line 35, in extract_metadata_and_type
match = pattern.search(path)
TypeError: expected string or bytes-like object, got 'NoneType'

Indicate if you followed all steps in the troubleshooting doc
Well, did you? yes
When I try this (filled with my data, of course) it works:
http(s)://[IP]:[port]/library/recentlyAdded?X-Plex-Token=[token]

What data does the sensor display if any?
Feel free to censor information pertaining to titles, networks, etc.

What displays when visiting the API URL from the troubleshooting guide?
<MediaContainer size="50" allowSync="0" identifier="com.plexapp.plugins.library" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1738863612" mixedParents="1"> <Directory allowSync="1" librarySectionID="1" librarySectionTitle="Musik" librarySectionUUID="0b2e438f-9a04-49d8-84dd-7f4c2b27e76d" ratingKey="98582" key="/library/metadata/98582/children" parentRatingKey="83837" guid="local://98582" parentGuid="local://83837" type="album" title="" titleSort="Unknown Album]" parentKey="/library/metadata/83837" parentTitle="FoarCass" summary="" index="1" year="2025" thumb="/library/metadata/98582/thumb/1740010506" originallyAvailableAt="2025-01-01" leafCount="1" viewedLeafCount="0" addedAt="1740010505" updatedAt="1740010506" loudnessAnalysisVersion="2"> <Image alt="" type="coverPoster" url="/library/metadata/98582/thumb/1740010506"/> <UltraBlurColors topLeft="13361a" topRight="133715" bottomRight="040b03" bottomLeft="113f37"/> <Genre tag="Techno"/> </Directory> <Directory allowSync="1" librarySectionID="1" librarySectionTitle="Musik" librarySectionUUID="0b2e438f-9a04-49d8-84dd-7f4c2b27e76d" ratingKey="98580" key="/library/metadata/98580/children" parentRatingKey="1" guid="local://98580" parentGuid="plex://artist/5d07bbfc403c6402904a5ec9" type="album" title="" titleSort="Unknown Album]" parentKey="/library/metadata/1" parentTitle="Various Artists" summary="" index="1" thumb="/library/metadata/1/thumb/1736346355" art="/library/metadata/1/art/1736346355" parentThumb="/library/metadata/1/thumb/1736346355" leafCount="1" viewedLeafCount="0" addedAt="1739463630" updatedAt="1739463630" loudnessAnalysisVersion="2"> <Image alt="" type="coverPoster" url="/library/metadata/1/thumb/1736346355"/> <Image alt="" type="background" url="/library/metadata/1/art/1736346355"/> </Directory>

Does the default Home Assistant Plex component work for you?
Yes Works, but same adress http://xxxxxxx:32400 not working with plex recently added

Home Assistant Version
Hassio Core 2025.2.5

Additional Context
Add any other context about the problem here.

@mkanet
Copy link
Collaborator

mkanet commented Feb 24, 2025

Can you please try removing the integration completely from Home Assistant and rebooting, then install the latest version from scratch? Let me know if you still have the same issue.

EDIT: Please install from scratch version 0.5.3. It should prevent the issue you are seeing as long as you remove the integration and install from scratch/cleanly.

mkanet added a commit that referenced this issue Feb 24, 2025
@Makhuta
Copy link
Contributor

Makhuta commented Feb 24, 2025

I think it should work even if he only upgraded but if not the clean installation should surely work

@clipse2004
Copy link
Author

Hello guys,
sorry for the delay and yes know i works again!

Nice Thanks

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

3 participants