2015-03-09, 19:33
Kodi 15.0 Alpha 1 (Isengard) WebDAV->Kodi->UPnP (With Subtitles) --> Unwanted traffic ( Is this a Bug or a feature? )
Setup is as follows:
A) WebDAV server (Remote)
B) Kodi (Local) with UPnP feature activated
C) TV (LG Webos 2014 model) (probably same behavior for any DLNA client)
So I have setup Kodi to access my remote webdav server and it has scraped it into the library.
When I'll try to play a movie on Kodi, it will do some requests to the server to try and locate subtitles (btw I only use moviename.srt at same dir as movie) and then will start playing
These requests look something like this:
Now I can live with that. It's only a handful of requests that take milliseconds to complete.
However the problem starts when I fire up my TV. It communicates with Kodi over UPnP and my WebDAV server starts getting flooded with requests like the above.
But this happens for every movie, and multiple times for every movie (because every movie is being offered on multiple paths (Files, Library, Genre, Sets, Year etc)
And this happens without any playback at all. It just starts the moment my TV finishes booting (probably because it starts adevrtising as DLNA client)
For a modest library of about 1000 movies, this results in a traffic of about 300-400kiloBytes/sec that continues for more than 1/2 hour.
So either Kodi starts offering, or my TV requests info, about every item in the UPnP path, even when nothing is being played.
1. Is this expected behavior (ie. Is there something in the spec about subtitle info that has to be included when adertising an item over UPnP?)
2. If not, shouldn't Kodi scrape the server for subtitles, only when an item is being requested for playback on UPnP, and not when advertising the library items (like when playing on Kodi)
2. Shouldn't/Couldn't Kodi cache info like this when accessing remote sources?
PS A quick test on a DLNA client on my Android phone, shows the same behavior. So it is definitely something on the Kodi side.
Setup is as follows:
A) WebDAV server (Remote)
B) Kodi (Local) with UPnP feature activated
C) TV (LG Webos 2014 model) (probably same behavior for any DLNA client)
So I have setup Kodi to access my remote webdav server and it has scraped it into the library.
When I'll try to play a movie on Kodi, it will do some requests to the server to try and locate subtitles (btw I only use moviename.srt at same dir as movie) and then will start playing
These requests look something like this:
Code:
PROPFIND /Example Movie (1998)/subtitles/ -> 404 Not Found
PROPFIND /Example Movie (1998)/Subtitles/ -> 404 Not Found
PROPFIND /Example Movie (1998)/subs/ -> 404 Not Found
PROPFIND /Example Movie (1998)/Subs/ -> 404 Not Found
PROPFIND /Example Movie (1998)/vobsubs/ -> 404 Not Found
PROPFIND /Example Movie (1998)/Vobsubs/ -> 404 Not Found
PROPFIND /Example Movie (1998)/sub/ -> 404 Not Found
PROPFIND /Example Movie (1998)/Sub/ -> 404 Not Found
PROPFIND /Example Movie (1998)/vobsub/ -> 404 Not Found
PROPFIND /Example Movie (1998)/Vobsub/ -> 404 Not Found
PROPFIND /Example Movie (1998)/subtitle/ -> 404 Not Found
PROPFIND /Example Movie (1998)/Subtitle/ -> 404 Not Found
PROPFIND /Example Movie (1998)/cd1/ -> 404 Not Found
PROPFIND /Example Movie (1998)/cd2/ -> 404 Not Found
PROPFIND /Example Movie (1998)/cd3/ -> 404 Not Found
PROPFIND /Example Movie (1998)/cd4/ -> 404 Not Found
PROPFIND /Example Movie (1998)/cd5/ -> 404 Not Found
PROPFIND /Example Movie (1998)/cd6/ -> 404 Not Found
PROPFIND /Example Movie (1998)/cd7/ -> 404 Not Found
PROPFIND /Example Movie (1998)/cd8/ -> 404 Not Found
PROPFIND /Example Movie (1998)/cd9/ -> 404 Not Found
Now I can live with that. It's only a handful of requests that take milliseconds to complete.
However the problem starts when I fire up my TV. It communicates with Kodi over UPnP and my WebDAV server starts getting flooded with requests like the above.
But this happens for every movie, and multiple times for every movie (because every movie is being offered on multiple paths (Files, Library, Genre, Sets, Year etc)
And this happens without any playback at all. It just starts the moment my TV finishes booting (probably because it starts adevrtising as DLNA client)
For a modest library of about 1000 movies, this results in a traffic of about 300-400kiloBytes/sec that continues for more than 1/2 hour.
So either Kodi starts offering, or my TV requests info, about every item in the UPnP path, even when nothing is being played.
1. Is this expected behavior (ie. Is there something in the spec about subtitle info that has to be included when adertising an item over UPnP?)
2. If not, shouldn't Kodi scrape the server for subtitles, only when an item is being requested for playback on UPnP, and not when advertising the library items (like when playing on Kodi)
2. Shouldn't/Couldn't Kodi cache info like this when accessing remote sources?
PS A quick test on a DLNA client on my Android phone, shows the same behavior. So it is definitely something on the Kodi side.