added possibility to choose depth when searching for media in folders