tellytv / telly

An IPTV proxy
MIT License
769 stars 106 forks source link

Stream not closing with Plex #207

Open JohanLeirnes opened 6 years ago

JohanLeirnes commented 6 years ago

telly release with the issue:

1.5.0

Last working telly release (if known):

Operating environment (Docker/Windows/Linux/QNAP, etc.):

Docker-ffmpeg Description of problem: When I stop streaming in Plex telly seems to still continue streaming the last channel i was streaming indefinitely. Also when changing channel telly will stream two streams for a period before closing the previous stream. This could possible lead to bann on providers that you are limited to only one stream.

Contents of telly.config.toml [if you're using a version above 1.1]:

Note on running multiple instances of telly

There are three things that make up a "key" for a given Telly Virtual DVR:

Device-ID [required], Device-UUID [optional], and port [required]

When you configure your additional telly instances, change:

the Device-ID [above] AND

the Device-UUID [above, if you're entering one] AND

the port [below in the "Web" section]

THIS SECTION IS REQUIRED

[IPTV] Streams = 1 # number of simultaneous streams that the telly virtual DVR will provide

This is often 1, but is set by your iptv provider; for example,

                        # Vaders provides 5

Starting-Channel = 10000 # When telly assigns channel numbers it will start here XMLTV-Channels = true # if true, any channel numbers specified in your M3U file will be used. FFMpeg = true # if this is uncommented, streams are buffered through ffmpeg;

ffmpeg must be installed and on your $PATH

                        # if you want to use this with Docker, be sure you use the correct docker image

if you DO NOT WANT TO USE FFMPEG leave this commented; DO NOT SET IT TO FALSE

THIS SECTION IS REQUIRED

[Log] Level = "info" # Only log messages at or above the given level. [debug, info, warn, error, fatal] Requests = true # Log HTTP requests made to telly

THIS SECTION IS REQUIRED

[Web] Base-Address = "127.0.0.1:6077" # Set this to the IP address of the machine telly runs on Listen-Address = "0.0.0.0:6077" # this can stay as-is

THIS SECTION IS OPTIONAL ========================================================================

[SchedulesDirect] # If you have a Schedules Direct account, fill in details and then

                         # UNCOMMENT THIS SECTION

Username = "" # This is under construction; Vader is the only provider

Password = "" # that works with it fully at this time

AT LEAST ONE SOURCE IS REQUIRED

DELETE OR COMMENT OUT SOURCES THAT YOU ARE NOT USING

NONE OF THESE EXAMPLES WORK AS-IS; IF YOU DON'T CHANGE IT, DELETE IT

[[Source]] Name = "" # Name is optional and is used mostly for logging purposes Provider = "Custom" # DO NOT CHANGE THIS IF YOU ARE ENTERING URLS OR FILE PATHS

"Custom" is telly's internal identifier for this 'Provider'

                        # If you change it to "NAMEOFPROVIDER" telly's reaction will be
                        # "I don't recognize a provider called 'NAMEOFPROVIDER'."

M3U = "http://xXxxXXxxX" # These can be either URLs or fully-qualified paths. EPG = "http://xxXxxXXxxX"

THE FOLLOWING KEYS ARE OPTIONAL IN THEORY, REQUIRED IN PRACTICE

Filter = "SE" FilterKey = "group-title" # FilterKey normally defaults to whatever the provider file says is best,

otherwise you must set this.

FilterRaw = true # FilterRaw will run your regex on the entire line instead of just specific keys. Sort = "group-title" # Sort will alphabetically sort your channels by the M3U key provided

END TELLY CONFIG

12nick12 commented 5 years ago

How long is indefinitely. I think Plex keeps the stream open for a while by design. This way you can stop watching a show in one room and then go into another room and click the same show and it will ask you if you want to watch live or from beginning. This has happened when I was using PlexIPTV and HDHomeRun at home.