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

Feature request: Customizable request timeout #90

Open
redvers76 opened this issue Feb 8, 2023 · 3 comments
Open

Feature request: Customizable request timeout #90

redvers76 opened this issue Feb 8, 2023 · 3 comments
Assignees

Comments

@redvers76
Copy link

When using a large Plex library and a slow device displaying HomeAssistant, I hit the 10s timeout that is allowed for the Plex API calls... Please can this be amended to either a) increase the timeout value as a hardcoded entry, or b) make it something that can be parameterised in the configuration?

Checks
Please check below if true:

[ ] I am running Home Assistant on HTTP protocol
[X] I am running BOTH Home Assistant AND Plex on HTTPS protocol
[X] My Plex server is accessible through protocol, port and ip/hostname I have specified for the card.
[X] My Plex server is running on HTTPS and has a valid certificate.

Card Configuration
type: custom:plex-meets-homeassistant
protocol: https
sort: originallyAvailableAt:desc
playTrailer: false
showExtras: false
showSearch: false
ip: my.plex.url
token: token
port: '443'
entity:

  • media_player.sony_kd_65xh9296
    libraryName: Films
    maxCount: '10'
    maxRows: '1'
    useHorizontalScroll: 'Yes'
    useShuffle: 'No'
    displayTitleMain: 'Yes'
    displaySubtitleMain: 'Yes'
    minWidth: ''
    minEpisodeWidth: ''
    minExpandedWidth: ''
    fontSize1: ''
    fontSize2: ''
    fontSize3: ''
    fontSize4: ''
    minExpandedHeight: ''
    title: Latest Films
    runBefore: ''
    runAfter: ''

Card Version
3.6.5

Plex Version
1.30.2.6563

Device information
Raspberry PI 2B using slow-ass wifi, running Chromium in kiosk mode on top of raspberry os

Additional context
Films library has 6611 entries... so sorting those descending takes a while ;)

@JurajNyiri JurajNyiri changed the title Question / Feature request Feature request: Customizable request timeout Jan 12, 2024
@JurajNyiri
Copy link
Owner

JurajNyiri commented Jan 12, 2024

This is not possible currently. You can change the value here: https://github.com/JurajNyiri/PlexMeetsHomeAssistant/blob/main/src/modules/Plex.ts#L18 in the meantime.

@douginoz
Copy link

douginoz commented Mar 21, 2024

Same problem. Several thousand movies. If I want to display by 'addedAt', by default it shows the oldest movies added, not the newest. If I try to append either :asc or :desc to 'addedAt', I hit the 10000ms timeout.

Can the change to the source be done after installation or does it need to be compiled or something?

@LionCityGaming
Copy link

LionCityGaming commented Aug 30, 2024

Same here. Could the timeout be standardised to be something much longer to accommodate those of use with much larger libraries? Just 2,500 movies here, and keep hitting the timeout. Would love to change the variable myself like you've mentioned above, but no idea how to even do it.

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

4 participants