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

Plex.tv web not skipping #17

Closed
mikethebos opened this issue Jun 10, 2022 · 12 comments
Closed

Plex.tv web not skipping #17

mikethebos opened this issue Jun 10, 2022 · 12 comments

Comments

@mikethebos
Copy link

Thanks for a great application.

When I log in to the web player via my_ip:32400 when on LAN, autoskip works ok. However, if I login via app.plex.tv, I get the debug level errors below. I have tried configs with either plex.tv credentials or 127.0.0.1 with port 32400. My smart TVs have no issues. My SSL settings are set to Preferred.

I'm on Win11.

Thanks for your help.

2022-06-10 14:51:43 - __main__ - INFO - Found new session 15 [2117] (iCarly (2021) s02e04 - iHire a New Assistant) Chrome viewOffset 0 ['mikethebos'], sessions: 2
2022-06-10 14:51:51 - __main__ - INFO - Found skippable chapter Advertisement for media 15 [2117] (iCarly (2021) s02e04 - iHire a New Assistant) Chrome with range 7818-29584 and viewOffset 8068
2022-06-10 14:51:51 - __main__ - INFO - Seeking Plex Web player playing 15 [2117] (iCarly (2021) s02e04 - iHire a New Assistant) Chrome from 8069 to 29584
2022-06-10 14:51:51 - __main__ - ERROR - BadRequest Error, see https://github.com/mdhiggins/PlexAutoSkip/wiki/Troubleshooting#badrequest-error
2022-06-10 14:51:51 - __main__ - DEBUG - Player Chrome (Plex Web) does not support direct IP connections, nothing to fall back upon, returning None
2022-06-10 14:51:56 - __main__ - DEBUG - Skipping update session 15 [2117] (iCarly (2021) s02e04 - iHire a New Assistant) Chrome is actively seeking
```
@mdhiggins
Copy link
Owner

Did you follow the link in that error and try those setting adjustments? The web player has no viable fallback since it's not a dedicated client so the TV may still work via direct IP connection while the web player will fail without GDM enabled

@mikethebos
Copy link
Author

I just toggled GDM, added all the UDP GDM ports to Windows Defender Firewall, and rebooted. No luck. I also tried accessing app.plex.tv from another system on my LAN. No luck. Any ideas?

@mdhiggins
Copy link
Owner

Not really. Are the computers you're accessing the web client from on the same subnet as your server?

Other than that, it's got to be something wrong with your local network. I'm curious if the logs for your players that do work indicate if it's forced to use the fallback method, if you wanted to check and post that. That would just confirm my suspicions

Without GDM working though there's no alternative way to send commands to the web player.

I can at least confirm that the web player does work on multiple other users and on my own setup.

@mikethebos
Copy link
Author

Here's an example debug log when using an iOS app client.

2022-06-11 12:39:05 - __main__ - INFO - Found new session 7 [2117] (iCarly (2021) s02e04 - iHire a New Assistant) Chrome viewOffset 0 ['mikethebos'], sessions: 2
2022-06-11 12:39:12 - __main__ - INFO - Found skippable chapter Advertisement for media 7 [2117] (iCarly (2021) s02e04 - iHire a New Assistant) Chrome with range 7818-29584 and viewOffset 8593
2022-06-11 12:39:12 - __main__ - INFO - Seeking Plex Web player playing 7 [2117] (iCarly (2021) s02e04 - iHire a New Assistant) Chrome from 8593 to 29584
2022-06-11 12:39:14 - __main__ - DEBUG - Updating session 7 [2117] (iCarly (2021) s02e04 - iHire a New Assistant) Chrome viewOffset 30000, old 30905, diff -905 (1s since last update)
2022-06-11 12:39:14 - __main__ - DEBUG - Recent seek successful, server offset update 30000 meets/exceeds target 29584, setting seeking to False
2022-06-11 12:39:45 - __main__ - DEBUG - Session 7 [2117] (iCarly (2021) s02e04 - iHire a New Assistant) Chrome hasn't been updated in 30 seconds
2022-06-11 12:39:45 - __main__ - DEBUG - Deleting session 7 [2117] (iCarly (2021) s02e04 - iHire a New Assistant) Chrome, sessions: 2
2022-06-11 15:32:04 - __main__ - INFO - Found new session 8 [2117] (iCarly (2021) s02e04 - iHire a New Assistant) Mike’s iPhone viewOffset 0 ['mikethebos'], sessions: 2
2022-06-11 15:32:09 - __main__ - DEBUG - Updating session 8 [2117] (iCarly (2021) s02e04 - iHire a New Assistant) Mike’s iPhone viewOffset 5304, old 5259, diff 45 (5s since last update)
2022-06-11 15:32:12 - __main__ - INFO - Found skippable chapter Advertisement for media 8 [2117] (iCarly (2021) s02e04 - iHire a New Assistant) Mike’s iPhone with range 7818-29584 and viewOffset 7913
2022-06-11 15:32:12 - __main__ - INFO - Seeking Plex for iOS player playing 8 [2117] (iCarly (2021) s02e04 - iHire a New Assistant) Mike’s iPhone from 7913 to 29584
2022-06-11 15:32:12 - __main__ - DEBUG - Updating session 8 [2117] (iCarly (2021) s02e04 - iHire a New Assistant) Mike’s iPhone viewOffset 29584, old 29805, diff -221 (0s since last update)
2022-06-11 15:32:12 - __main__ - DEBUG - Recent seek successful, server offset update 29584 meets/exceeds target 29584, setting seeking to False
2022-06-11 15:32:12 - __main__ - DEBUG - Updating session 8 [2117] (iCarly (2021) s02e04 - iHire a New Assistant) Mike’s iPhone viewOffset 29584, old 29584, diff 0 (0s since last update)
2022-06-11 15:32:17 - __main__ - DEBUG - Updating session 8 [2117] (iCarly (2021) s02e04 - iHire a New Assistant) Mike’s iPhone viewOffset 34567, old 34608, diff -41 (5s since last update)
2022-06-11 15:32:22 - __main__ - DEBUG - Updating session 8 [2117] (iCarly (2021) s02e04 - iHire a New Assistant) Mike’s iPhone viewOffset 39839, old 39830, diff 9 (5s since last update)

@mdhiggins
Copy link
Owner

Hm this shows chrome working for the skip in addition to iOS. Out of curiosity. When you're playing these things back via the web play using Plex.tv, does the status show these as being LAN sessions and is it using the relay at all?

@mikethebos
Copy link
Author

Relay is disabled. The bandwidth showed in status is all local. I will try running PlexAutoSkip from another box...

@mikethebos
Copy link
Author

I just tried running PlexAutoSkip from a Mac on my subnet. Same BadRequest error...

@mdhiggins
Copy link
Owner

In that case I'm out of ideas. Does disabling SSL change anything?

@mikethebos
Copy link
Author

No. Just tried ignore-certs = False.

It's alright. Just a minor issue. I will reopen if I find a fix. Cheers!

@mdhiggins
Copy link
Owner

How about turning off SSL entirely on the Plex server? Just as a test

@mikethebos
Copy link
Author

I only have Preferred and Required as options in Plex settings. It has been on Preferred the whole time.

@mdhiggins
Copy link
Owner

Ah yeah that's my bad I thought there was some kind of a None type option, remembered incorrectly

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

2 participants