2015-02-27, 00:09
2015-02-27, 08:56
2015-02-27, 20:22
(2015-02-27, 12:27)Memphiz Wrote: It uses webdav afaik - its not parsing html ...
Well, actually there are two types. Http source, and WebDav source, I tried both of them, and eventually I decided to use Http source because of the speed. it seems to me that http source is must faster for Kodi to scan the content.
By the way, I just want to mention the HTTP source works, the only concern i am having is how to add those File Info, such as file size, and modification date and those kind of meta data for Kodi to process.
Frank
2015-02-27, 20:28
I don't think the http source is as fully featured as, say, smb or nfs. Any reason not to use those?
2016-05-23, 21:13
Looks like when I add new HTTP source, Kodi reads each file one by one to extract some additional information (not sure what - file size, tags? - I use HTTP source for audio - karaoke files) and the process takes a lot of time (with my ~3000 files). Hopefully, it will do it only once (when the source is added first time).
But is there any way to increase the speed of this process? For ex., by providing some additional information on the html page? disabling some options ('read mp3 tags')?
But is there any way to increase the speed of this process? For ex., by providing some additional information on the html page? disabling some options ('read mp3 tags')?
2016-06-30, 20:53
I tried to analyze HTTP source source ;) code - https://github.com/xbmc/xbmc/blob/master...ectory.cpp
Do I understand it correctly:
1) it deletes parameters from the URL (i.e. everything after ? sign);
2) it expects filename from the link equal to tag text (i.e. <a href="http://example.com/blabla/filename.mp3">filename.mp3</a>, and for ex., <a href="http://example.com/blabla/filename1.mp3">filename2.mp3</a> will not work).
?
Do I understand it correctly:
1) it deletes parameters from the URL (i.e. everything after ? sign);
2) it expects filename from the link equal to tag text (i.e. <a href="http://example.com/blabla/filename.mp3">filename.mp3</a>, and for ex., <a href="http://example.com/blabla/filename1.mp3">filename2.mp3</a> will not work).
?
2016-07-01, 13:35
one vote for webdav as well, with http external subtitles dont work and it wont prefetch HD, SD flags etc
2016-07-01, 14:05
http source is used to scan folders with files with an automatic index from apache.
2016-07-30, 13:25
To allow so you can see sizes and dates , so you can sort etc.., you need to add a directory index option in apache in either htaccess or in apache the vhost config for the directory with the following two options..
Just tested it myself.. the trick was "HTMLTable" as the regex looks for the tr to parse for the date
Without HTMLTable, its only one td in the formarted output from apache...
if you wanted to be 'boss' about it, i personally prefer without HTMLTable in my browser the formatting is cleaner... you could do this.. in your apache vhost (if your runnign a vhost) config.
This will only apply the HTMLTable to the user-agent starting with "Kodi"
Hope this helps
- VeN
Code:
IndexOptions FancyIndexing HTMLTable
Just tested it myself.. the trick was "HTMLTable" as the regex looks for the tr to parse for the date
Code:
reDateTimeApacheNewFormat.RegComp("<td align=\"right\">([0-9]{4})-([0-9]{2})-([0-9]{2}) ([0-9]{2}):([0-9]{2}) +</td>");
Without HTMLTable, its only one td in the formarted output from apache...
if you wanted to be 'boss' about it, i personally prefer without HTMLTable in my browser the formatting is cleaner... you could do this.. in your apache vhost (if your runnign a vhost) config.
Code:
<Directory "<full_path_of_your_dir>">
<If "%{HTTP_USER_AGENT} =~ /^Kodi/">
IndexOptions FancyIndexing HTMLTable
</If>
<Else>
IndexOptions FancyIndexing
</Else>
AllowOverride None
</Directory>
This will only apply the HTMLTable to the user-agent starting with "Kodi"
Hope this helps
- VeN