-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it possible to ignore folders #58
Comments
Waiting for people to test this @jsalatiel - Let me know if this works for you. |
That's useful for shared albums. For #58
I think I need to add some sort of security check to make it more safe and convenient, hoping it won't hurt performance too much. |
OK, the recursive permission check is in place. |
Sorry the delay, i was on a trip. |
@jsalatiel - Unfortunately, this can only work on oC8 as it's the first version which works folder by folder as opposed to loading a list of all your media files in memory. |
I tested it and it works as expected:
Great thing - I like it! Remark: Edit: |
@deMattin - Awesome! :) And you're right about Windows Explorer... I didn't think about that. There is a trick to use, but that will surely annoy people who don't know about it... |
It's no problem because you can set it in OC web GUI. And Windows or NTFS itself has no problem with this sort of files. |
I need to start adding some documentation... |
I couldn't wait and just upgraded to 8.0.1RC1 :) |
My girlfriend just get a "No pictures found! If you upload pictures in the files app, they will be displayed here." and she has lots of pictures :/ Log shows : {"reqId":"b1f5e09f6d7878a9bb58b9260681909a","remoteAddr":"192.168.254.2","app":"index","message":"Exception: {"Message":"","Code":0,"Trace":"#0 \/var\/www\/owncloud\/lib\/private\/files\/node\/node.php(321): OC\Files\Node\Node->getFileInfo()\n#1 \/var\/www\/owncloud\/apps\/galleryplus\/service\/infoservice.php(165): OC\Files\Node\Node->getType()\n#2 \/var\/www\/owncloud\/apps\/galleryplus\/service\/infoservice.php(220): OCA\GalleryPlus\Service\InfoService->searchFolder(Object(OC\Files\Node\Folder), 6)\n#3 \/var\/www\/owncloud\/apps\/galleryplus\/service\/infoservice.php(178): OCA\GalleryPlus\Service\InfoService->searchSubFolders(Array, 0, 5)\n#4 \/var\/www\/owncloud\/apps\/galleryplus\/service\/infoservice.php(220): OCA\GalleryPlus\Service\InfoService->searchFolder(Object(OC\Files\Node\Folder), 5)\n#5 \/var\/www\/owncloud\/apps\/galleryplus\/service\/infoservice.php(178): OCA\GalleryPlus\Service\InfoService->searchSubFolders(Array, 0, 4)\n#6 \/var\/www\/owncloud\/apps\/galleryplus\/service\/infoservice.php(220): OCA\GalleryPlus\Service\InfoService->searchFolder(Object(OC\Files\Node\Folder), 4)\n#7 \/var\/www\/owncloud\/apps\/galleryplus\/service\/infoservice.php(178): OCA\GalleryPlus\Service\InfoService->searchSubFolders(Array, 0, 3)\n#8 \/var\/www\/owncloud\/apps\/galleryplus\/service\/infoservice.php(220): OCA\GalleryPlus\Service\InfoService->searchFolder(Object(OC\Files\Node\Folder), 3)\n#9 \/var\/www\/owncloud\/apps\/galleryplus\/service\/infoservice.php(178): OCA\GalleryPlus\Service\InfoService->searchSubFolders(Array, 0, 2)\n#10 \/var\/www\/owncloud\/apps\/galleryplus\/service\/infoservice.php(220): OCA\GalleryPlus\Service\InfoService->searchFolder(Object(OC\Files\Node\Folder), 2)\n#11 \/var\/www\/owncloud\/apps\/galleryplus\/service\/infoservice.php(178): OCA\GalleryPlus\Service\InfoService->searchSubFolders(Array, 0, 1)\n#12 \/var\/www\/owncloud\/apps\/galleryplus\/service\/infoservice.php(220): OCA\GalleryPlus\Service\InfoService->searchFolder(Object(OC\Files\Node\Folder), 1)\n#13 \/var\/www\/owncloud\/apps\/galleryplus\/service\/infoservice.php(178): OCA\GalleryPlus\Service\InfoService->searchSubFolders(Array, 0, 0)\n#14 \/var\/www\/owncloud\/apps\/galleryplus\/service\/infoservice.php(139): OCA\GalleryPlus\Service\InfoService->searchFolder(Object(OC\Files\Node\Folder))\n#15 \/var\/www\/owncloud\/apps\/galleryplus\/controller\/servicecontroller.php(169): OCA\GalleryPlus\Service\InfoService->getImages(Array)\n#16 [internal function]: OCA\GalleryPlus\Controller\ServiceController->getImages()\n#17 \/var\/www\/owncloud\/lib\/private\/appframework\/http\/dispatcher.php(158): call_user_func_array(Array, Array)\n#18 \/var\/www\/owncloud\/lib\/private\/appframework\/http\/dispatcher.php(86): OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\GalleryPlus\Controller\ServiceController), 'getImages')\n#19 \/var\/www\/owncloud\/lib\/private\/appframework\/app.php(97): OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\GalleryPlus\Controller\ServiceController), 'getImages')\n#20 \/var\/www\/owncloud\/lib\/private\/appframework\/routing\/routeactionhandler.php(44): OC\AppFramework\App::main('ServiceControll...', 'getImages', Object(OC\AppFramework\DependencyInjection\DIContainer), Array)\n#21 [internal function]: OC\AppFramework\routing\RouteActionHandler->__invoke(Array)\n#22 \/var\/www\/owncloud\/lib\/private\/route\/router.php(250): call_user_func(Object(OC\AppFramework\routing\RouteActionHandler), Array)\n#23 \/var\/www\/owncloud\/lib\/base.php(767): OC\Route\Router->match('\/apps\/gallerypl...')\n#24 \/var\/www\/owncloud\/index.php(36): OC::handleRequest()\n#25 {main}","File":"\/var\/www\/owncloud\/lib\/private\/files\/node\/node.php","Line":65}","level":4,"time":"2015-03-07T19:34:11-03:00"} |
@jsalatiel - Yes, it's the goal to make this the official app, see this: #151 . The main problem is that this has started as a rewrite to support the AppFramework, on top of which I've added full media support, tons of code documentation and all the PRs. Now, I've made some changes, like the ones to improve performance, but it doesn't get properly reviewed, so I hope this is added quickly to ownCloud so that the people behind the original app can help with the code and the decision making. This has to be maintainable for a long time, by anybody. As for whether this can handle a large amount of pictures, it should, at least at the top levels. I need to push one change for the preloading routine to try and make it work for more people, at the cost of making more HTTP requests. See this for the full programme: #43 |
My girl can enter the gallery+ by entering in the correct folder in file, and clicking the 'tile' icon, but if from there she tries to go up to the top level dir, she gets '"No pictures found! If you upload pictures in the files app, they will be displayed here."' |
Could you open a separate ticket for that? I think it might be an encoding issue (folders with unusual characters) |
done. #69 |
…e_loading_error use notification to show template loading error, refs #1282
After reading this: #10 (comment) , I thought it would be a nice feature to have.
Implementation
.nomedia
file to a folder will prevent the app from adding the folder to the list of possible locations for media files.nomedia
file and return an empty file set if we're in a private folderThe text was updated successfully, but these errors were encountered: