Jump to content

Problems with "Play next episode automatically"


Recommended Posts

redrobot2121
Posted

I have gdrive rclone mount with cache mode full. Here is my rclone config...

rclone mount drive: /drive \
--allow-other \
--dir-cache-time 5000h \
--log-file drive.log \
--poll-interval 1m \
--umask 002 \
--user-agent blahblah \
--rc \
--rc-addr :myport \
--rc-no-auth \
--cache-dir=/cache \
--vfs-cache-mode full \
--vfs-cache-max-size 250G \
--vfs-cache-max-age 5000h \
--vfs-cache-poll-interval 5m \
--vfs-read-ahead 2G \
--bwlimit-file 32M

Using nginx and configured following this post: link

All my media are into h264 mp4 so I can direct stream them. Transcoding is disabled.

Problem 1: Playing media from "Continue Watching" section results in a loading screen / spinning circle, no error but not playing either. It won't play unless the "Play next episode automatically" option is unticked from Settings -> Playback -> Advanced

Problem 2: Auto playing next episode results in Playback error

Note that internet quality from Settings -> Playback -> Video is set to max 4k - 120 mbps. 

Emby version: 4.6.7.0

redrobot2121
Posted
On 1/23/2022 at 7:41 AM, Luke said:

Hi there @redrobot2121 can we please look at an example?

Thanks !

I have read the full log and tried playing with directly with ip. Same problem occurred. That means no problem with nginx or cloudflare. These are the two only logs form embyserver.txt related to the content i was playing...

2022-01-24 08:37:05.947 Info Server: http/1.1 GET http://<mydomain>/emby/Shows/27369/Episodes?IsVirtualUnaired=false&IsMissing=false&UserId=<userid>&Fields=Chapters,ProductionYear,PremiereDate&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome&X-Emby-Device-Id=<deviceid>&X-Emby-Client-Version=4.6.7.0. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
  
2022-01-24 08:37:06.002 Info Server: http/1.1 Response 200 to <userip>. Time: 56ms. http://<mydomain>/emby/Shows/27369/Episodes?IsVirtualUnaired=false&IsMissing=false&UserId=<userid>&Fields=Chapters,ProductionYear,PremiereDate&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome&X-Emby-Device-Id=<deviceid>&X-Emby-Client-Version=4.6.7.0


after that there is that loading circle and nothing happens. I replaced mydomain, userip and userid 

redrobot2121
Posted
On 1/23/2022 at 7:41 AM, Luke said:

Hi there @redrobot2121 can we please look at an example?

Thanks !

there is some difference between request headers with that option turned on and off!

 

With "Play next episode automatically" ON

curl 'https://<mydomain>/emby/Shows/27369/Episodes?IsVirtualUnaired=false&IsMissing=false&UserId=<userid>&Fields=Chapters%2CProductionYear%2CPremiereDate&X-Emby-Client=Emby%20Web&X-Emby-Device-Name=Chrome&X-Emby-Device-Id=<deviceid>&X-Emby-Client-Version=4.6.7.0&X-Emby-Token=<token>' \
  -H 'authority: <mydomain>' \
  -H 'pragma: no-cache' \
  -H 'cache-control: no-cache' \
  -H 'sec-ch-ua: " Not;A Brand";v="99", "Google Chrome";v="97", "Chromium";v="97"' \
  -H 'accept: application/json' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36' \
  -H 'sec-ch-ua-platform: "Windows"' \
  -H 'sec-fetch-site: same-origin' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-dest: empty' \
  -H 'referer: https://<mydomain>/web/index.html' \
  -H 'accept-language: en-US,en;q=0.9' \
  -H 'dnt: 1' \
  -H 'sec-gpc: 1' \
  --compressed

This does not look right to me, with that option turned off few requests are sent, not just one

Posted

Hi, try turning off cloudfare caching and see if that helps.

redrobot2121
Posted
1 hour ago, Luke said:

Hi, try turning off cloudfare caching and see if that helps.

I have turned off cloudflare cache and everything. I played directly using the public emby ip:port which bypasses nginx & cloudflare all together. same issue. why does that request header looks like that though ?

Posted

What do you think is wrong about the request header?

redrobot2121
Posted
4 hours ago, Luke said:

What do you think is wrong about the request header?

2022-01-24 08:48:58.486 Info Server: http/1.1 GET http://<mydomain>/emby/Shows/27369/Episodes?SeasonId=85505&UserId=<userid>&Fields=PrimaryImageAspectRatio,BasicSyncInfo,CanDelete&Limit=12&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome&X-Emby-Device-Id=<deviceid>&X-Emby-Client-Version=4.6.7.0. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36

2022-01-24 08:48:58.492 Info Server: http/1.1 GET http://<mydomain>/emby/Users/<userid>/Items/274773/SpecialFeatures?X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome&X-Emby-Device-Id=<deviceid>&X-Emby-Client-Version=4.6.7.0. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36

2022-01-24 08:48:58.493 Info Server: http/1.1 GET http://<mydomain>/emby/Users/<userid>/Items?fields=PrimaryImageAspectRatio,UserData,CanDelete&IncludeItemTypes=Playlist,BoxSet&Recursive=true&SortBy=SortName&ListItemIds=274773&Limit=12&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome&X-Emby-Device-Id=<deviceid>&X-Emby-Client-Version=4.6.7.0. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36

2022-01-24 08:48:58.516 Info Server: http/1.1 GET http://<mydomain>/emby/Items/174408/Images/Primary?maxHeight=266&maxWidth=177&tag=7742a1604527c9b2e4353147222b6565&quality=90. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36

2022-01-24 08:48:58.598 Info Server: http/1.1 Response 200 to <userip>. Time: 106ms. http://<mydomain>/emby/Users/<userid>/Items/274773/SpecialFeatures?X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome&X-Emby-Device-Id=<deviceid>&X-Emby-Client-Version=4.6.7.0

2022-01-24 08:48:58.598 Info Server: http/1.1 Response 200 to <userip>. Time: 112ms. http://<mydomain>/emby/Shows/27369/Episodes?SeasonId=85505&UserId=<userid>&Fields=PrimaryImageAspectRatio,BasicSyncInfo,CanDelete&Limit=12&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome&X-Emby-Device-Id=<deviceid>&X-Emby-Client-Version=4.6.7.0

2022-01-24 08:48:58.600 Info Server: http/1.1 Response 200 to <userip>. Time: 107ms. http://<mydomain>/emby/Users/<userid>/Items?fields=PrimaryImageAspectRatio,UserData,CanDelete&IncludeItemTypes=Playlist,BoxSet&Recursive=true&SortBy=SortName&ListItemIds=274773&Limit=12&X-Emby-Client=Emby Web&X-Emby-Device-Name=Chrome&X-Emby-Device-Id=<deviceid>&X-Emby-Client-Version=4.6.7.0

2022-01-24 08:48:58.602 Info Server: http/1.1 Response 200 to <userip>. Time: 86ms. http://<mydomain>/emby/Items/174408/Images/Primary?maxHeight=266&maxWidth=177&tag=7742a1604527c9b2e4353147222b6565&quality=90

this is with the Play next episode automatically turned off. It consists of multiple requests, maybe there are few more. With turned on, as you can see from the above log, there is only get request and gets a ok status and that's it, nothing else happens after that. The request url is also different. I only replaced stuff in <>.

  • 2 weeks later...
Posted

That all looks ok to me. I would suggest comparing your nginx configuration to that of @pir8radio. Please let us know if this helps. Thanks.

 

pir8radio
Posted (edited)
On 1/24/2022 at 11:10 PM, redrobot2121 said:

this is with the Play next episode automatically turned off. It consists of multiple requests, maybe there are few more. With turned on, as you can see from the above log, there is only get request and gets a ok status and that's it, nothing else happens after that. The request url is also different. I only replaced stuff in <>.

 

11 hours ago, Luke said:

That all looks ok to me. I would suggest comparing your nginx configuration to that of @pir8radio. Please let us know if this helps. Thanks.

 

 

Humm....  I think luke tagged me in...     😆   
Ill test mine now, I don't watch too many series..    Just tested and I'm not able to recreate...    I have nginx and Cloudflare.   maybe remove ip's and share nginx config?
 

 

Edited by pir8radio
  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...