Quantcast
Channel: Recent Discussions — Plex Forums
Viewing all 151235 articles
Browse latest View live

Can't hit Plex outside LAN from web application: application is trying to connect via internal IP

$
0
0

I have Synology DS1517+ NAS running Plex attached to a Nighthawk R7000 router. At some point, I used to be able to use Plex from work via the web app. Something changed, and I don't know what it was, but now I can not.

I'm a web app developer, so while at work, I popped into Chrome's developer console and checked the connection the web app was trying to make. It was trying to reach this URL:

http://192.168.1.19:32400/?X-Plex-Product=Plex%20Web&X-Plex-Version=3.10.0&X-Plex-Client-Identifier=dad7c41b-7510-455d-ac10-e27358613cb0&X-Plex-Platform=Chrome&X-Plex-Platform-Version=59.0&X-Plex-Device=Windows&X-Plex-Device-Name=Plex%20Web%20%28Chrome%29&X-Plex-Device-Screen-Resolution=1920x950%2C1920x1080&X-Plex-Token=US2WMgLyCMixF2dnbnr2

192.168.1.19 is the static IP address I reserve in my router for the Synology device. So it's technically the correct IP address, but it's not one that makes sense outside of my private LAN.

However, as far as the app is concerned, the following is my connection information:

Which seems correct. Am I doing something especially stupid here?

Thank you, kind ladies and sirs,

Jeff


Bug: Plex App does not buffer, does not load more than a few megabytes of the video at a time.

$
0
0

Edit: I'm bumping this response to the very top of this post. This is not a network issue, it is a PMS buffer issue.

@bryananderson said:
figured I would run nload (network load) on my PMS, so you can visually see the buffering behavior. Same 1080p high bitrate movie used in all tests. You can see the Plex client on ATV gets small chunks of the stream in bursts then sits idle, whereas all other clients get a steady stream.

Apple TV - Plex Client:

Apple TV - VLC Client using Plex DLNA Server:

Apple TV - Infuse Client using Plex DLNA Server:

Mac - Plex Media Player:

Since everyone is blaming the native player, I figured I would try playing the same file on the ATV via iTunes Home Sharing. If you can make it out, the transfer rate is higher (similar to the max value of the ATV Plex Client), but there is no idle time.

Native Client - iTunes Home Sharing:

@bryananderson said:
Amazon Fire TV (2nd Gen) on wired connection, playing the same bitstream as the other examples:


Original Post continues below:

I'm breaking out this discussion into a new thread. The other thread about the bug's symptoms was perhaps masking the real issue.

This is definitely an issue with Plex. It used to be an issue with both Homesharing via the Computer app in tvOS 9.0 and Plex, but now it is only happening in Plex. I've been tracking it down and think I've got it reproducible. (See below for details on my environment.)

Bug: Plex App Doesn't Buffer

The core problem is that Plex does not buffer the content on the ATV. This was the same problem that used to occur when watching a video via Homesharing, but in tvOS 9.1, you can watch as the whole movie gets buffered.

I'm monitoring network traffic from the Mac my Plex server is on, and while the movie is playing, Plex is intermittently uploading to the ATV. It uploads in small chunks. 1-4mbps for a second or two, then nothing for a while.

If I pause the movie, all uploading stops. That shouldn't be. It should keep uploading. This is the core problem. Plex never tries to buffer the movie, only ever grabbing the next 10-20mb.

Intermittent Stuttering Symptom of the No-Buffering Bug

Really the above is a bug in itself, and should be enough to reproduce and implement a fix, but I'll go further into the details of the symptoms, which are highly variable due to a large number of influences (media location, server state, network latency, etc).

The most commonly reported symptom of this problem is intermittent stuttering. I've been able to track down how to make this occur.

Under my setup, many movies play fine. I generally rip my own media with quality settings very similar to people like YIFY at 1080p. So, I'm playing 2h h264 movies which are under 2GB in size (and thus pretty low bitrate).

However, if it is an exceedingly complex scene in the movie, and the variable bitrate goes above a certain threshold, Plex has to grab its 10-20mb chunks more frequently. When this magic threshold is reached, it can take longer to get the next 'chunk' than the previous chunk takes to play, thus you get stuttering or pausing of the movie while the next chunk loads.

A variety of factors affect how long it takes to grab the next chunk, and depending on the bitrate of the movie at the given moment, there may be stuttering when all of the factors line up, or when just a few of them line up.

In my testing, the stuttering occurs on my movies when the Mac hosting the Plex server is asleep AND the bitrate on the movies I'm watching jumps above a certain threshold. When I wake the Mac, it must shave a second or two off the time to load the media (hosted on a networked drive, see below), and this is typically enough to load the next chunk before the previous finishes playing (even in scenes of high visual complexity). Often, Plex gets through a movie fine, even when the Mac is asleep, but when bitrate climbs above the sleeping Mac's response-latency (which is variable of course), stuttering occurs.

For example, I can reliably reproduce stuttering while watching Star Wars Episode II (Don't judge, I'm rewatching the prequels after reading about Mike Klimo's prequel Ring Theory. Spoiler, I think Klimo is guilty of selection bias, choosing only the myriad references to the OT that fit his theory.).

I've got a ~2.0GB x264 in m4v file, and the film plays well, even with the Mac asleep, but around about the 16min mark, when the speeder chase scene kicks off, it starts to stutter, to stop and try to load every 10-15 seconds (spinning wheel, sometimes with the audio progressing, often not).

If I wake the Mac, this scene progresses without any trouble. However, I have experienced stuttering due to no buffering on other movies, even when I forced my Mac not to sleep (one of the first things I tried, which didn't fix the problem on that movie, likely because the overall bitrate, or perhaps just the bitrate spikes, was still too high).

Also, even if I wait for it to load (which often takes way too long, as if the stuttering confuses the server, causing it to lose its place), and even if I get say a minute of the scene to play, if I rewind and try to watch that minute again, the stuttering still occurs (it's not only not pre-buffering, it's not buffering the content already streamed to the ATV).

So, reproduce away, but really, all that needs to be done is to reproduce the fact that the Plex ATV app is not trying to buffer the content. Once that's fixed, all the stuttering will go away.

Environment

Plex Server: 0.9.15.1
Plex Server OS: 10.11.2
Plex tvOS App: 1.04
(All up to date as of this writing.)

Movies are shared off the network drive connected to my Mac. ATV is connected via ethernet to Airport Extreme. Mac is connected to same AE via 802.11ac, Tx rate is 750-900 Mbps (hold option while clicking the wifi icon on the Mac's menubar). My network is fast and has no interference. It easily sustains dozens and dozens of times the bitrate of the videos I'm trying to play (I'm in a rural setting with no neighbour networks). This setup has worked flawlessly on the ATV1-3, and after tvOS 9.1 now that it buffers, works flawlessly under Homesharing on the ATV4. The only app that's having the issue now is Plex, simply because it doesn't try to buffer the video.).

Random crashes

$
0
0

Over the past week, I have observed the Plex tvOS client crashing while watching media, though there is no obvious pattern. When it happens, ATV returns to the home screen as if I pressed the TV button on the ATV remote (complete with the sound effect). Sometimes it happens after 5-10 seconds of playback, sometimes 3-5 minutes, sometimes 12-15 minutes, and the crashes do not discriminate between 720p and 1080p media.

Once dumped back to the ATV home screen, I can relaunch and restart playback as if nothing happened...until it happens again.

This issue only presents itself on the tvOS client. The iOS client has consistent and reliable playback.

Technical specs:

  • Apple TV A1625 (64 GB)
  • tvOS 10.2 (14W265)
  • Plex 1.9 (5581)

I have tried reinstalling Plex for tvOS. I have tried restarting my Apple TV. I have tried restarting Plex Media Server (before I knew that Plex for iOS works). Thoughts?

UPDATE: I noticed that Plex updated the tvOS client to 1.10. The issue appears to have been resolved.

Remote Connectivity issues

$
0
0

Server: Server 2008R2
Plex: 1.7.5.4035

Able to connect to Plex within the network, but any remote connections fail. Remote was working yesterday prior to 1.7.5 update.
Logs contain numerous localhost:32401 connection errors:

Jun 30, 2017 09:42:00.906 [7840] WARN - PubSub: Received notifyConnectivity event with incorrect async identifier (af92fd3d-5a4e-4e58-88d4-98f4e32e412a, expected 3fc1fcf0-efc3-4adf-b42d-eec0dbd1625c)
Jun 30, 2017 09:43:00.873 [8436] WARN - PubSub: Received notifyConnectivity event with incorrect async identifier (5583051f-bef9-4dfd-8b7e-d656fbdecc94, expected 3fc1fcf0-efc3-4adf-b42d-eec0dbd1625c)
Jun 30, 2017 09:43:11.009 [8564] ERROR - Error issuing curl_easy_perform(handle): 7
Jun 30, 2017 09:43:11.009 [8564] WARN - HTTP error requesting GET 10.1.10.5 (0, No error) (Failed connect to 10.1.10.5:80; No error)
Jun 30, 2017 09:44:00.873 [3428] WARN - PubSub: Received notifyConnectivity event with incorrect async identifier (9cc1d5ad-9ccc-459d-9ad0-5c429b2d7558, expected 3fc1fcf0-efc3-4adf-b42d-eec0dbd1625c)
Jun 30, 2017 09:44:16.244 [9492] ERROR - Timeout or error reading status line from plug-in pipe [com.plexapp.agents.imdb], we're killing it.
Jun 30, 2017 09:44:16.244 [9492] ERROR - Error received reading configuration for com.plexapp.agents.imdb
Jun 30, 2017 09:44:16.245 [9492] ERROR - PlexClient::downloadContainer: expected MediaContainer element, found html
Jun 30, 2017 09:44:16.245 [9492] ERROR - IVA: failed to get IMDB prefs
Jun 30, 2017 09:44:17.208 [9492] ERROR - PlexClient::downloadContainer: expected MediaContainer element, found html
Jun 30, 2017 09:44:17.208 [9492] ERROR - IVA: Error downloading trailers for source 1.
Jun 30, 2017 09:44:17.438 [9492] ERROR - PlexClient::downloadContainer: expected MediaContainer element, found html
Jun 30, 2017 09:44:17.438 [9492] ERROR - IVA: Error downloading trailers for source 2.
Jun 30, 2017 09:45:01.101 [1508] WARN - PubSub: Received notifyConnectivity event with incorrect async identifier (f63b2714-f6f8-41e1-a9d7-0671c7408db6, expected 3fc1fcf0-efc3-4adf-b42d-eec0dbd1625c)
Jun 30, 2017 09:46:00.867 [10120] WARN - PubSub: Received notifyConnectivity event with incorrect async identifier (b07be434-82b6-46f0-9117-7cb3910e43c2, expected 3fc1fcf0-efc3-4adf-b42d-eec0dbd1625c)
Jun 30, 2017 09:47:01.091 [9468] WARN - PubSub: Received notifyConnectivity event with incorrect async identifier (19d3da43-fa6d-430f-a8ac-f5752b7dc6db, expected 3fc1fcf0-efc3-4adf-b42d-eec0dbd1625c)
Jun 30, 2017 09:47:08.888 [8580] ERROR - [PlexRelay] kex protocol error: type 7 seq 11
Jun 30, 2017 09:47:09.448 [2996] INFO - [PlexRelay] Allocated port 12771 for remote forward to localhost:32401
Jun 30, 2017 09:47:10.677 [8580] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:47:11.752 [2996] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:47:28.926 [8580] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:47:29.998 [9248] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:47:50.918 [8580] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:47:51.990 [9388] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:48:00.048 [8580] WARN - SLOW QUERY: It took 249.601593 ms to retrieve 50 items.
Jun 30, 2017 09:48:13.929 [8580] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:48:14.999 [7064] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:48:37.950 [8580] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:48:39.024 [9828] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:49:00.047 [8580] WARN - SLOW QUERY: It took 249.601593 ms to retrieve 50 items.
Jun 30, 2017 09:49:02.942 [8580] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:49:04.020 [1700] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:49:28.971 [8580] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:49:30.119 [3396] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:49:56.009 [8580] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:49:57.708 [7540] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:50:00.056 [8580] WARN - SLOW QUERY: It took 265.201691 ms to retrieve 50 items.
Jun 30, 2017 09:50:09.098 [8580] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:50:16.941 [7540] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:50:18.015 [8580] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:50:23.941 [7540] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:50:25.033 [8580] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:50:54.628 [7540] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:50:55.734 [7236] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:51:00.076 [7540] WARN - SLOW QUERY: It took 265.201691 ms to retrieve 50 items.
Jun 30, 2017 09:51:25.628 [7540] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:51:26.703 [9824] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:51:56.631 [7540] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:51:58.623 [2984] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:52:00.116 [7540] WARN - SLOW QUERY: It took 296.401886 ms to retrieve 50 items.
Jun 30, 2017 09:52:27.634 [7540] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:52:28.728 [2332] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:52:58.635 [7540] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:52:59.713 [7516] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:53:00.051 [7540] WARN - SLOW QUERY: It took 249.601593 ms to retrieve 50 items.
Jun 30, 2017 09:53:30.438 [9908] ERROR - [PlexRelay] kex protocol error: type 7 seq 11
Jun 30, 2017 09:53:30.985 [3092] INFO - [PlexRelay] Allocated port 26707 for remote forward to localhost:32401
Jun 30, 2017 09:53:32.212 [9908] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:53:33.284 [3092] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:53:33.578 [10132] WARN - PubSub: Received notifyConnectivity event with incorrect async identifier (aa2122b7-d5df-4aeb-b7b6-4179fe0cab14, expected e8b99905-fb11-4c0d-bb53-3478e0836f87)
Jun 30, 2017 09:53:54.601 [9412] INFO - AutoUpdate: no updates available
Jun 30, 2017 09:53:59.134 [8808] WARN - PubSub: Received notifyConnectivity event with incorrect async identifier (b7596446-8a88-43cb-b878-e5b657867b97, expected d288212b-57a7-4d88-a621-d613566c5efc)
Jun 30, 2017 09:54:00.052 [2316] WARN - SLOW QUERY: It took 249.601593 ms to retrieve 50 items.
Jun 30, 2017 09:54:00.689 [2316] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:54:01.808 [6944] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:54:08.714 [8808] WARN - PubSub: Received notifyConnectivity event with incorrect async identifier (215231b3-e48b-4f6b-ad0c-417025b483af, expected 555af1fa-1864-45f6-ad5d-4ba258e727a7)
Jun 30, 2017 09:54:29.717 [9248] WARN - NAT: PMP, got an error: NATPMP_ERR_RECVFROM.
Jun 30, 2017 09:54:31.555 [1468] WARN - NAT: PMP, got an error: NATPMP_ERR_RECVFROM.
Jun 30, 2017 09:54:32.520 [9412] ERROR - [PlexRelay] kex protocol error: type 7 seq 11
Jun 30, 2017 09:54:32.667 [9412] ERROR - [PlexRelay] kex protocol error: type 7 seq 11
Jun 30, 2017 09:54:33.081 [8596] INFO - [PlexRelay] Allocated port 19421 for remote forward to localhost:32401
Jun 30, 2017 09:54:33.201 [9412] INFO - [PlexRelay] Allocated port 21321 for remote forward to localhost:32401
Jun 30, 2017 09:54:34.305 [8596] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:54:35.380 [6944] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:54:53.480 [9640] WARN - PubSub: Received notifyConnectivity event with incorrect async identifier (1363de92-9204-49af-8ac2-0a4a5d254c69, expected e292fbe8-d797-4e79-995e-22edd46b8f2c)
Jun 30, 2017 09:54:54.291 [9640] WARN - PubSub: Received notifyConnectivity event with incorrect async identifier (b253ead5-0f66-40bd-9a52-514adfdf0907, expected e292fbe8-d797-4e79-995e-22edd46b8f2c)
Jun 30, 2017 09:55:00.059 [8596] WARN - SLOW QUERY: It took 249.601593 ms to retrieve 50 items.
Jun 30, 2017 09:55:02.643 [8596] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:55:02.660 [9640] WARN - PubSub: Received notifyConnectivity event with incorrect async identifier (cf1b2665-acfa-44be-ad77-dc5f9ae66498, expected e6637633-063b-406a-bffa-ff457469d73d)
Jun 30, 2017 09:55:03.817 [1192] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:55:33.643 [8596] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:55:34.719 [8292] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:56:00.050 [8596] WARN - SLOW QUERY: It took 249.601593 ms to retrieve 50 items.
Jun 30, 2017 09:56:04.643 [8596] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:56:05.716 [2524] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:56:35.645 [8596] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:56:36.715 [8560] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:57:00.057 [8596] WARN - SLOW QUERY: It took 249.601593 ms to retrieve 50 items.
Jun 30, 2017 09:57:06.645 [8596] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:57:08.617 [9808] ERROR - [PlexRelay] connect_to localhost port 32401: failed.
Jun 30, 2017 09:57:34.027 [7640] INFO - Killing PlexScriptHost.exe process with pid 8796
Jun 30, 2017 09:57:34.028 [7640] INFO - Killing PlexScriptHost.exe process with pid 8704
Jun 30, 2017 09:57:34.030 [7640] INFO - Killing PlexScriptHost.exe process with pid 2984
Jun 30, 2017 09:57:34.032 [7640] INFO - Killing PlexScriptHost.exe process with pid 3380
Jun 30, 2017 09:57:34.048 [7640] INFO - Killing PlexRelay.exe process with pid 9404
Jun 30, 2017 09:57:34.049 [7640] INFO - Killing PlexRelay.exe process with pid 6820
Jun 30, 2017 09:57:34.055 [7640] INFO - Killing Plex Tuner Service.exe process with pid 3780

Anything else I should be looking at?

Transcoder error - exit code 1 when syncing

$
0
0

I am experiencing a transcoder error with exit code 1 when I intend to transcode any type of TV show or movie (tested avi and mkv) for syncing to my mobile. Since my server is really low on power, I normally don't transcode at all, but for syncing to mobile this would be beneficial due to space requirements. The same happens when I try to create an optimized version from web app, which is what I did when pulling the logs attached. Searched the forums/web but didn't find a solution.

Server Version 1.7.5.4035 on ubuntu server 16.04
Transcoding starts at Jun 30, 2017 11:57:58.100 in the logs.
Server is an Asus Chromebox with an underpowered Celeron CPU.

Would appreciate your help.

PlexEmail - Email Recently Added Media

$
0
0
PayPal donate button

Plex Email


Update 2/26/2016: 
This script has been updated to now handle music along with TV and movies.

Hey everyone.  The other day I saw someone looking for an application that could send out a newsletter email with recently added TV and movies from the previous week. The only options that I could find were PlexWatch, which sends out emails for every new addition and PlexReport which does not support Windows.

 

So I decided to create my own script that can work on all OSes (that can execute a python script) which would send out an email once a week to a configured list of recipients.  While I was doing this, I decided to have it also create a web page that can be viewed outside email (this requires a web server).

 

The script has already expanded to be fairly configurable, so please look at the Readme to see all the options.

 

Github Repo: https://github.com/jakewaldron/PlexEmail

Latest Release: https://github.com/jakewaldron/PlexEmail/releases/latest

Readme: https://github.com/jakewaldron/PlexEmail/blob/master/README.md (screenshots included here)

 

Donations: I've recently been asked about donations.  If you would like to donate to this project, you can do so here: Paypal Donation

 

Introduction

 

This script aggregates all new TV and movie releases for the past x days then writes to your web directory and sends out an email.

 

Supported Environments

  • Windows - Tested
  • Linux - Tested
  • FreeBSD/FreeNAS - Tested
  • Mac - Not Tested

 

Supported Email Protocols

  • SMTP

 

Prerequisites

  1. Python 2.7 - Windows: 32 bit - https://www.python.org/ftp/python/2.7.9/python-2.7.9.msi
  2. 32 bit DLL for SQLite version 3.8.8.3
  3. Requests module for Python. pip install requests or download it here and put it in the LIb folder of your Python installation: https://pypi.python.org/packages/source/r/requests/requests-2.5.3.tar.gz#md5=23bf4fcc89ea8d353eb5353bb4a475b1
  4. If web reports are wanted, a web server (apachenginxXAMPPWampServerEasyPHPlighttpdMAMP, etc)

Installation (Windows)

  1. Clone this repo or download the zip
  2. Copy the contents of scripts to where you want the script to run from
  3. Copy the contents of web to your web folder
  4. Update the config.conf file inside the scripts folder
  5. Schedule a weekly task to execute plexEmail.vbs (on windows) or plexEmail.py (on linux/mac) from the scripts folder (make sure to set the start in folder as the folder where the vbs script resides)

Installation (Linux)

  1. Install python 2.7.9
  2. pip install requests
  3. Copy the contents of scripts to where you want the script to run from
  4. Copy the contents of web to your web folder
  5. Update the config.conf file inside the scripts folder
  6. Schedule a weekly cron job to execute the plexEmail.py script


Installation (CentOS)

https://forums.plex.tv/topic/151619-plexemail-in-development/page-7#entry879778

 

Installation (FreeNAS)

Thanks to adrianwi:

https://forums.freenas.org/index.php?threads/guide-for-installing-plexemail.40748/#post-257799

 

Installation (QNAP)

Thanks to nickiman:

https://forum.qnap.com/viewtopic.php?f=177&t=125414


Usage

 

Normal Usage

python plexEmail.py

Alternate Usage

 

Pass in an alternate config file.  For example the default config file sends out a daily email (using Cloudinary), while an alternate config file is set up for a weekly web page.

python plexEmail.py -c C:\files\plexEmailWeekly.conf

Run in test mode.  This will only send the email to the sender.

python plexEmail.py -t

Config File

 

The config file is in the scripts folder. Before first run of the script, please update this file with your information.

 

 

Field Explanations:

 

Folder Paths

  • plex_data_folder - Location where the Plex Media Server folder is located - i.e. E:\\Library\\Plex\\
  • web_folder - Location of web/www/public_html folder is located - i.e. C:\\wamp\\www\\

 

General

  • date_format - Format to use for the date
  • date_days_back_to_search - Number of days to search backwards
  • date_hours_back_to_search - Number of hours to search backwards
  • date_minutes_back_to_search - Number of minutes to search backwards

 

Image Hosting

 

Cloudinary - Sign up for a free account at: http://cloudinary.com/

  • upload_use_cloudinary - Use Cloudinary image hosting
  • upload_cloudinary_cloud_name - Cloudinary cloud name
  • upload_cloudinary_api_key - Cloudinary api key
  • upload_cloudinary_api_secret - Cloudinary api secret

 

Web

  • web_enabled - Enable the creation of the web page
  • web_domain - Domain name of the web page
  • web_path - Path on the domain to the web page
  • web_delete_previous_images - True to delete all .jpg images in the web image folder prior to copying over current images
  • web_skip_if_no_additions - True to skip creating a web page if there are no new additions

 

Email

  • email_enabled - Enable the creation and sending of an email
  • email_individually - True to send out emails individually to each address in the email_to setting
  • email_to - Array of email addresses to send the email
  • email_from - Email address to send the email from
  • email_from_name - Friendly name of sender
  • email_smtp_address - SMTP address of the email service
  • email_smtp_port - SMTP port of the email service
  • email_use_ssl - Use SSL - Note that the port must be an SSL port for this to work i.e. 465
  • email_username - SMTP authentication username
  • email_password - SMTP authentication password
  • email_use_web_images - Use images from the web server instead of attaching them directly to the email
  • email_skip_if_no_additions - True to skip sending emails if there are no new additions

 

Filtering

  • filter_show_movies - True to show recently added movies
  • filter_show_shows - True to show recently added TV shows
  • filter_show_seasons - True to show recently added TV seasons
  • filter_show_episodes - True to show recently added TV episodes
  • filter_libraries - A list of library names to filter out -
  • filter_sections_movies - Movie specific filters
  • filter_sections_TV - TV specific filters
    • Possible fields: tagline, summary, content_rating, duration, year, rating, studio, tags_genre, tags_director, tags_star
    • order - The order this field should appear for each title
    • show - Whether or not this field should be shown for each title
    • preText - The text that should be added before this field for each title
    • postText - The text that should be added after this field for each title
    • include - A list of values that are each title must match at least one to be shown
    • exclude - A list of values that if the title matches any of, will not be shown

 

Messages

  • msg_email_teaser - Teaser text on the email
  • msg_web_title - Title of the webpage
  • msg_email_subject Subject of email
  • msg_header1 - First header text
  • msg_header2 - Second header text
  • msg_header3 - Third header text. Only used in the email
  • msg_top_link - Header link text to go to top of the page
  • msg_movies_link - Header link text to go to new movies
  • msg_shows_link - Header link text to go to new shows
  • msg_seasons_link - Header link text to go to new seasons
  • msg_episodes_link - Header link text to go to new episodes
  • msg_new_movies_header - Section header text for new movies
  • msg_new_shows_header - Section header text for new shows
  • msg_new_seasons_header - Section header text for new seasons
  • msg_new_episodes_header - Section header text for new episodes
  • msg_footer - Footer text at the bottom of the page
  • msg_no_new_content - Message to be displayed if no new content has been added

Sorting

  • movie_sort_1 - Highest priority sort
  • movie_sort_1_reverse - Reverse the default sort
  • movie_sort_2 - Second priority sort
  • movie_sort_2_reverse - Reverse the default sort
  • movie_sort_3 - Third Priority sort
  • movie_sort_3_reverse - Reverse the default sort

 

  • show_sort_1 - Highest priority sort

  • show_sort_1_reverse - Reverse the default sort
  • show_sort_2 - Second priority sort
  • show_sort_2_reverse - Reverse the default sort
  • show_sort_3 - Third Priority sort
  • show_sort_3_reverse - Reverse the default sort

 

  • season_sort_1 - Highest priority sort

  • season_sort_1_reverse - Reverse the default sort
  • season_sort_2 - Second priority sort
  • season_sort_2_reverse - Reverse the default sort
  • season_sort_3 - Third Priority sort
  • season_sort_3_reverse - Reverse the default sort

 

  • episode_sort_1 - Highest priority sort

  • episode_sort_1_reverse - Reverse the default sort
  • episode_sort_2 - Second priority sort
  • episode_sort_2_reverse - Reverse the default sort
  • episode_sort_3 - Third Priority sort
  • episode_sort_3_reverse - Reverse the default sort

plex local port

$
0
0

hi i would like to know is there a reason i cant change the local port from 32400 to any other port
reason for asking is i made a local dns record on my router to point to my local server but port 80 would be so much easier for me

plex server

$
0
0

I have captured many shows without any problems until Buffy. I double check the name format and I did not see anything wrong. This is the general name format that I am using in my other shows

This is one of the shows was detected fine:

tvshows -> Band of Brothers -> Season 01 ->
Band Brothers - S01E01.mp4
Band Brothers - S01E02.mp4
...
Band Brothers - S01E10.mp4

This shows was not detected:
tvshows -> Season 01 -> Buffy The Vampire Slayer ->
Buffy The Vampire Slayer - S01E01.mp4
Buffy The Vampire Slayer - S01E02.mp4
...
Buffy The Vampire Slayer - S01E12.mp4

The show Stargate SG-1 was partially detected

named
Stargate SG-1 S01E01.mp4

Any ideas?


Plexpy startet nicht

$
0
0

Hallo.
Ich bekomme Plexpy nicht zum laufen.
Auf dem Rechner läuft Ubuntu 14.04.
Früher hat das ohne Probleme geklappt. Als ich es nicht mehr gebraucht habe, habe ich den Ordner /plexpy gelöscht.

Nun wollte ich was testen und habe plexpy wieder installiert.
Wenn ich es starten möchte, mit python plexpy, kommt:
/usr/bin/python: can't find 'main' module in 'plexpy'

Server Unauthorized on shared Apple TV

$
0
0

I share an Apple TV with my girlfriend. She's out of town with her laptop, so I don't have access to her server. I created my own (even paid for the Plex Pass) and the Apple TV is still showing that my server is Unauthorized. Not sure what I have to do.

Shows with same name

$
0
0

Hey, not sure if this is quite the right place to post this comment but on my Ubuntu Plex Server i have two shows with the same titles in this case lets say ThuderCats (1987) and ThunderCats (2011). I've tried changing the way i named the folders/episodes multiple times but i can get plex to see it as the 1987 version or the 2011 version despite having both.

 

Thoughts?

 

Thanks

[REL] HelloHue 1.1.8.4 - Sync and control your Philips Hue lights with Plex!

$
0
0

HelloHue for Plex and Philips Hue

Sync and control your Philips Hue lights with Plex!

Credits
This Channel is based on PlexWink by @vanstinator.

Behavior

This channel detects when a media is playing, paused or stopped on your Plex Clients. Then it checks if it's a video, the client name, and the user who owns the stream. If it matches your criteria it triggers your lights with the actions you have set up.
You can also turn your lights on and off inside the channel.

Configuration

The config is pretty simple and only needs to be done once. Configure your settings following the details below.
One room is composed of one client, one or multiple users and one or multiple lights, as well as the actions : on play, on stop, on pause, dim value, and only trigger if it's dark outside.

  • Plex.tv login is your Plex login.
  • Plex.tv passwords is your Plex password. It is only sent to plex.tv to get an identification token (so you must have a working internet access).
  • Plex Server Address is the local adress + port to reach your server (example : 127.0.0.1:32400).
  • Philips Hue Bridge Address is the ip address of your Philips Bridge.
  • Nearest city from your location Used to calculate to calculate sunrise/sunset hours at your location.
  • Activate HelloHue in room 1 Tick to activate room 1 (and fill the client, users and lights settings for room 1).
  • Name of plex client able to trigger in room 1 You can find the list of users in PMS -> settings -> devices. Only put ONE client per room. If your have two clients in the same room, activate an other room and fill the settings with the other clients name and the same lights names.
  • Name of the users able to trigger in room 1 You can find the list of users in PMS -> settings -> users -> myhome. You can put multiple users (comma separated values, case sensitive).
  • Name of the lights to trigger in room 1 is the list of lights that will be triggered in room 1. You can put multiple users (comma separated values, case sensitive).
  • When a media is playing in room 1 is the action that will fire when a media is playing in room 1.
  • When a media is paused in room 1 is the action that will fire when a media is paused in room 1.
  • When a media is stopped in room 1 is the action that will fire when a media is stopped in room 1.
  • Choose dim value in room 1 is the value your lights will dim to. (20 is the min brightness and 240 is max)
  • Randomize hue and saturation on Dim/Turn On in room 1 will randomize your light color each time the action turn on or dim is fired.
  • Only trigger lights if it's dark outside in room 1 Tick to only trigger your lights between sunrise and sunset.
  • Activate HelloHue in room 2 Same thing as Activate HelloHue in room 1 ...
  • ...

Usage

How to install:

  • go to Library/Application Support/Plex Media Server/Plug-ins/
  • If existing, delete HelloHue.bundle
  • get the release you want from https://github.com/ledge74/HelloHue/releases
  • unzip the release
  • restart your plex media server!!!
  • more indepth: see article on Plex website.

On first run:

  1. Configure your Channel preferences (see above for help, make sure that you are connected to the internet as the channel will request a token from plex.tv)
  2. Go to the channel (on any device)
  3. If you see, Press button and your bridge and click to connect click on this menu AFTER having pressed the physical button of your bridge.
  4. The click on Advanced --> Restart HelloHue
  5. If you see the menu My Lights then you are all good!
  6. Enjoy :)

Use the channel:

  • My Lights allows you to trigger your lights from the channel
  • Enable HelloHue disable the channel (stop listening to items being played)
  • Disable HelloHue resumes the channel (start listening to items being played)
  • Advanced --> ```Restart HelloHue`` takes into account your new Plex.TV login/password if you updated it in the channel settings.

How to report a bug and ask for features

If you have a problem with this channel, raise an issue on GitHub or on this topic. Don't forget to add a Log file of this channel : https://support.plex.tv/hc/en-us/articles/200250417-Plex-Media-Server-Log-Files

Known issues

  • When stopping a media on PHT (for mac), the action will take some time (a few minutes). This is linked to a bug in PHT or PMS. --> use OpenPHT to fix this issue
  • HelloHue doesn't work with PlexBMC

Support the project

I've developed HelloHue on my free time, so if you like it please think about buying me a beer!



Naming TV Shows that Aren't Seasons?

$
0
0

I'm new here, so I apologize if this has been asked before. I haven't had too much trouble getting everything added, except for one thing. I have the Looney Tunes Golden Collection. So they are just randomly put on different discs. When adding this to the server, it combines most of these into one file, even though the names are different. I tried taking them out of these folders to see if it would match, and it still did the same thing. I don't want to have to rename every single episode, as its about 400 at least. Is there a way to get this done that I'm overlooking? I have other sets that aren't necessarily "in order" and have had no problem with these, it just seems to be this particular set.

Why is this app so terrible?!

$
0
0

Why is this app so terrible compared to other interfaces (Roku, Xbox, Even Web Based)? It stutters, doesn't seem to sync properly on the fly (or even at launch for that much). It double plays every video I launch when I start it off. It will sometimes just freeze. I have NONE of these types of problems via other avenues.

Media Player is unresponsive even after fresh install

$
0
0

Hello,

I just watched a movie on my windows 10 machine. When I presst F11 or so to get out of the full screen mode it crashed and since then it only shows the logo in full screen logo even after I reinstalled and cleared the registry.

Thanks for suggestions!

Cheers


Plex Chrome Interface Unreadably Tiny

$
0
0

The latest update for Plex web interface in Chrome has left my interface so tiny as to be unreadable.

I have a silly high resolution 3200x1800 on my xps13 laptop which I'd rather not change. Plex used to detect this and produce a reasonably sized interface but after I updated manually a few days ago the interface is super tiny. I tried to go through the settings (though it is a little hard because of the interface size) but I didn't see anything that would fix this.

Skipping audio on Fire tv 4k box

$
0
0

Noticed every couple of minutes there is a millisecond blip in the audio 5.1 playback on a film, anyone else noticed this?

Seen a few posts on other sites, people mentioning it seems to how started since the latest amazon fire update but not had it long enough to comment.

What is currently the best remote-friendly Windows 10 Plex Media Player?

$
0
0

I’ve been a Plex user for about a couple years now. When I first decided to get “my feet wet”, I used my regular Window 7 Office PC as the server and a AppleTV 3nd gen as my player. As most already know, the ATV3 does not have an app store (and there is currently no jailbreak) thus you are stuck with the boxed apps that comes with it and nothing more… ever. Thankfully, PlexConnect has a great work around - which is, using a windows service on the Server PC called “PlexConnect”, and changing the DNS address on the ATV2 to match it, this routes all connections through the server PC & it forces the stock “Trailers” app on the ATV3 to run a Plex player. The only down sides Ive noticed so far were: if Office PC was ever off then nothing on the AT3 would work, since all connections were being routed through the main Office PC. Since it was kind of a pain to have to turn on my big PC just to use my little ATV, I would frequently turn off the specific DNS address just to use the ATV3 when my main PC was shut down. Then forget to change it back when I was done. ...The wife still hasn't grasped why we need to change the DNS setting to watch Plex so it really frustrates her to no end.

…FF to present day. Now that I know Plex is for me and I love it, Im diving in a little deeper. I’m the proud new owner of a speedy Intel NUC! I bought it with the sole intention of becoming our main Plex Media Server with intentions of leaving it on 24/7. I want to break free of PlexConnect and having to change my DNS on my AT3 to watch Plex - so I want the little NUC to do it all - both server and player. So far what an awesome and inexpensive little Plex Media Server! However, as a HTPC Plex player I feel like I am taking a step backwards - at least comapred to the near flawless experiance ive had with my AT3 PlexConnect player. I currently have my NUC set to auto-launch the Plex App (which by the way is PURCHASED (not free) from the Windows App Store (since that seems to be the only Plex-designed solution as a PC player?). Using the Windows store Plex app absolutely sux with my Harmony Remote & Hub. There are many reasons ...Ive listed a few below – do you guys have the same bad experience with the Windows Store Plex App?

  • The menu is reduced to only small icons (NO LABELS) down the left side of the screen, and the over all UI design is very large & bulky. I would compare it to viewing your PC monitor at 800x600, rather than 1280x1024. This is a huge departure from the PlexConnect ATV interface, which looks more like a cleaned up spiffy version of the server with actual labels!
  • The “Continue Watching” section on the Home tab will not let me arrow down to any other sections below it. Thus my home screen is limited to only allowing me to continue watching a started movie.
  • Because it is only icons, all of your added libraries share the same icon. That means you don’t know which library is which until you click on it - Hovering over it does not give you a text description or hint!
  • While playing a movie the pause button works, but the unpause/play remote button doesn’t do anything. Meaning I have to back out of the movie and hit play again. If it hit the same play button on the poster art, it will start playing the movie – so I am certain I am not having remote IR command issues).

Im extremely happy with my NUC & Plex Media Server application. On the flip side I am very disappointed that I paid for a Plex app and it is as horrible of a UI experience as it currently is – it certainly is not up to pair with the rest of my Plex experiences. Do you guys know of a better official Plex Player for Windows 10? I have seem & researched using Kodi with the Plex XMB plug in, but I’m not really down with all that (more to keep up with, update, etc etc). I was really wanting to have the mighty little NUC do it all & get away from using PlexConect. It doesnt look like the Windows App Store Plex app is going to work out. Is my best option to go back to using PlexConnect on my ATV3 - are their other "offical" Windows 10 players from Plex that I have overlooked?

Is it possible to offload transcoding to a secondary Plex server?

$
0
0

Hi there.

I have my Plex server on my NAS which is not powerful enough for Plex transcoding. But I was wondering if there's anyway that I could have that main Plex server offload the transcoding to a secondary Plex server running on a different PC with more than capable hardware for transcoding. Both the NAS and the PC are on the same network fully wired.

The only solution I see for this is to maintain 2 individual Plex servers both with it's own libraries (even if they feed from the exact same storage devices) and use the Plex server accordingly. The downside is that I'd have to maintain 2 Plex servers which I wanted to avoid if at all possible.

Thoughts?

Plex Musik und die CD Sortierung

Viewing all 151235 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>