2015-04-02, 22:24
(2015-04-02, 21:55)Lunatixz Wrote:(2015-04-02, 21:36)Marshall Wrote: Kind of a newb question mainly because I get amnesia easily, but can you scan folders recursively for media using Add-ons? I *thought* there was a way but I could be wrong.
The reason I ask is because the Apple iTunes Trailers (Video Add-on) http://forum.kodi.tv/showthread.php?tid=160691 would be really handy for generating a nice "Preview" channel. Especially since you can pick your resolutions, and even send a movie snatch request to Couch Potato.
The only problem is it grabs all the trailers and lists them in sub-folders... so either the Add-on either needs to scan each folder for media or I need to modify the Add-on code. Which I don't like to do when other people are already maintaining the Add-on.
PseudoTV Live has recursive plugin parsing, but things can get out of hand since a lot of plugins are poorly written (each file has its own directory) and could cause extreme parsing times.
I came up with this hacky logic to determine folder depth:
https://github.com/Lunatixz/script.pseud...t.py#L4456
Whatever your media limit for that channel is divide by 25 (standard plugin page items).
Try upping the media-limit which will increase parsing depth.
Thanks, that works like a charm.