Library Update For Removable Devices
17 posts
• Page 1 of 1
Using Serviio with no automatic updating for media on SATA drives on removable caddies means I have to manually force refresh every time the caddy is re-inserted. Serviio should check device availability before changing the library to nothing for a device that is not currenlty plugged in.
Re: Library Update For Removable Devices
That is not possible because unplugged state is the same as a removed folder / mount point. So to automatically remove deleted files this has to be done.
Petr
Serviio developer / site admin
Do not send me PM for support as the solution can't be shared with others.
Follow Serviio on Facebook | Follow Serviio on Twitter
Help translate Serviio
Intel UPnP tools | HOWTO: Turn on detailed logging | HOWTO: Provide supported formats of a device | HOWTO: Provide details of a video file that doesn't play
Serviio developer / site admin
Do not send me PM for support as the solution can't be shared with others.
Follow Serviio on Facebook | Follow Serviio on Twitter
Help translate Serviio
Intel UPnP tools | HOWTO: Turn on detailed logging | HOWTO: Provide supported formats of a device | HOWTO: Provide details of a video file that doesn't play
Re: Library Update For Removable Devices
This has been requested before http://forum.serviio.org/viewtopic.php?f=3&t=7227&hilit=nickski
It still catches me out occasionally - and it makes a nonsense of the "last added" function.
Its odd that Serviio only has the concept of "exists" or "doesn't exist" and can't conceive "offline"!
It still catches me out occasionally - and it makes a nonsense of the "last added" function.
Its odd that Serviio only has the concept of "exists" or "doesn't exist" and can't conceive "offline"!
nickski
Render: Panasonic Viera TX-L42E30B + DMP-BDT210 + Jelly Bean 4.1 Tablet + Onkyo TX-NR616 | Server: Intel i5 Win 7 ult x64 | NW: Homeplug @ 175 Mbps
Render: Panasonic Viera TX-L42E30B + DMP-BDT210 + Jelly Bean 4.1 Tablet + Onkyo TX-NR616 | Server: Intel i5 Win 7 ult x64 | NW: Homeplug @ 175 Mbps
Re: Library Update For Removable Devices
Hi,
wouldn't it be possible to add an extra checkbox with a bool behind it after the "Scan for file additions and updates"? When it's a removable device check if the whole device is gone and for that time skip the updates for all folders on that drive/device.
In my case it takes a bit of time to readd about 1 TB of videodata three to four times a week.
Greetings IG
wouldn't it be possible to add an extra checkbox with a bool behind it after the "Scan for file additions and updates"? When it's a removable device check if the whole device is gone and for that time skip the updates for all folders on that drive/device.
In my case it takes a bit of time to readd about 1 TB of videodata three to four times a week.
Greetings IG
Re: Library Update For Removable Devices
+1 for me as well here....still gets me every once in awhile.....can't it just be that when there is no regular library refresh ( so Keep Library Automatically Updated is NOT checked), it just does not do the check upon start up?
Re: Library Update For Removable Devices
zip wrote:That is not possible because unplugged state is the same as a removed folder / mount point. So to automatically remove deleted files this has to be done.
The concerns are:
- that a permanently removed drive/deleted shared folder will never have its media removed from the library. This can be overcome if (and this may already be the case) all relevant library entries are removed when a shared folder is removed from the library ie. if the user permanently removes a drive/shared folder, they must also remove the shared folder from the library to also remove its entries;
- users will still appear to be able to access media from their renderers (the browse function will still list the unavailable media I believe?). When they try and play the media it will fail - this may confuse some people (but no worse than having items disappear as is the case now).
- if the drive is disconnected after the scan starts then the media will be removed (as is the case now).
Re: Library Update For Removable Devices
So if your drive is under /mnt/drive I could check for /mnt but that will not tell me if the drive is attached or not. It would work on Windows, probably
Petr
Serviio developer / site admin
Do not send me PM for support as the solution can't be shared with others.
Follow Serviio on Facebook | Follow Serviio on Twitter
Help translate Serviio
Intel UPnP tools | HOWTO: Turn on detailed logging | HOWTO: Provide supported formats of a device | HOWTO: Provide details of a video file that doesn't play
Serviio developer / site admin
Do not send me PM for support as the solution can't be shared with others.
Follow Serviio on Facebook | Follow Serviio on Twitter
Help translate Serviio
Intel UPnP tools | HOWTO: Turn on detailed logging | HOWTO: Provide supported formats of a device | HOWTO: Provide details of a video file that doesn't play
Re: Library Update For Removable Devices
Not a linux user but if the shared folder was "/mnt/drive", couldn't you check for "/mnt/drive"? ie. check whatever the user has listed as the "root" of their share - if they share "/mnt/drive" then test at that level, if they nominate "/mnt/drive/folder/folder" as there shared folder, test at that level, etc.
Re: Library Update For Removable Devices
I'd be keen on this too!
I've mapped my NAS volumes as shared folders in serviio (my movies and pictures are scattered on devices and volumes for redundancy... after serviio, my next project will be a big unRAID server lol!).
When I turned off my NAS, serviio 'cleared' out the contents. And when I turned the NAS back on, serviio progressively re-added the movies and photos into its list. That wasn't good for the WAF (wife acceptance factor).
I concur with DenyAll's comments earlier and think that if the 'root' of the share doesn't exist, then skip the scan. Maybe even trick the client (media renderer) that there is no content available but don't remove any information from serviio's datastore.
If the user doesn't figure out that something's wrong, then the problem might be the user lol!
I've mapped my NAS volumes as shared folders in serviio (my movies and pictures are scattered on devices and volumes for redundancy... after serviio, my next project will be a big unRAID server lol!).
When I turned off my NAS, serviio 'cleared' out the contents. And when I turned the NAS back on, serviio progressively re-added the movies and photos into its list. That wasn't good for the WAF (wife acceptance factor).
I concur with DenyAll's comments earlier and think that if the 'root' of the share doesn't exist, then skip the scan. Maybe even trick the client (media renderer) that there is no content available but don't remove any information from serviio's datastore.
If the user doesn't figure out that something's wrong, then the problem might be the user lol!
Re: Library Update For Removable Devices
DenyAll wrote:Not a linux user but if the shared folder was "/mnt/drive", couldn't you check for "/mnt/drive"? ie. check whatever the user has listed as the "root" of their share - if they share "/mnt/drive" then test at that level, if they nominate "/mnt/drive/folder/folder" as there shared folder, test at that level, etc.
but then if you remove /mnt/drive/folder Serviio would not detect it as removed. Unless I add additional checkbox somewhere, which might make the UI even more confusing.
Petr
Serviio developer / site admin
Do not send me PM for support as the solution can't be shared with others.
Follow Serviio on Facebook | Follow Serviio on Twitter
Help translate Serviio
Intel UPnP tools | HOWTO: Turn on detailed logging | HOWTO: Provide supported formats of a device | HOWTO: Provide details of a video file that doesn't play
Serviio developer / site admin
Do not send me PM for support as the solution can't be shared with others.
Follow Serviio on Facebook | Follow Serviio on Twitter
Help translate Serviio
Intel UPnP tools | HOWTO: Turn on detailed logging | HOWTO: Provide supported formats of a device | HOWTO: Provide details of a video file that doesn't play
Re: Library Update For Removable Devices
zip wrote:but then if you remove /mnt/drive/folder Serviio would not detect it as removed.
Realise that this scheme is a compromise - it relies on user behaviour which is never reliable

Anyways, just an idea....
Re: Library Update For Removable Devices
Can you manage that situation writing an hidden file in the root of shared folder? (obviously in folders with RW permissions) Something like a .serviio file, in the same way some software repositories do (live .svn or .git). Updater thread can check this file to identify a disconnected shared path.
Re: Library Update For Removable Devices
That would require to have write access, which is not always the case.
Petr
Serviio developer / site admin
Do not send me PM for support as the solution can't be shared with others.
Follow Serviio on Facebook | Follow Serviio on Twitter
Help translate Serviio
Intel UPnP tools | HOWTO: Turn on detailed logging | HOWTO: Provide supported formats of a device | HOWTO: Provide details of a video file that doesn't play
Serviio developer / site admin
Do not send me PM for support as the solution can't be shared with others.
Follow Serviio on Facebook | Follow Serviio on Twitter
Help translate Serviio
Intel UPnP tools | HOWTO: Turn on detailed logging | HOWTO: Provide supported formats of a device | HOWTO: Provide details of a video file that doesn't play
Re: Library Update For Removable Devices
This sounds complicated. How about this:
Serviio adds and removes items when it updates the library. Could you separate those functions similar to the way XBMC works. In XBMC, update video library just processes additions. Clean video library removes items that don't exist. If the functions were separate, I wouldn't lose my last added and watched items on a somewhat regular basis. Of course, I would have to make sure all disks are accessible before I use the clean library function. I could live with that.
The way things are right now, I frequently lose the flag that indicates the last TV episode in a series I've watched (and my last added list has become almost useless because it removes everything when the disk is not accessible then it adds them back).
Serviio adds and removes items when it updates the library. Could you separate those functions similar to the way XBMC works. In XBMC, update video library just processes additions. Clean video library removes items that don't exist. If the functions were separate, I wouldn't lose my last added and watched items on a somewhat regular basis. Of course, I would have to make sure all disks are accessible before I use the clean library function. I could live with that.
The way things are right now, I frequently lose the flag that indicates the last TV episode in a series I've watched (and my last added list has become almost useless because it removes everything when the disk is not accessible then it adds them back).
Re: Library Update For Removable Devices
zip wrote:That would require to have write access, which is not always the case.
Well, as I understand, the only actual procedure to use external hd and avoiding the library cleanup each time i disconnect those, is keeping refresh checkbox unchecked, then, every time i add a file, i need to select checkbox, save (this also triggers a library update) then, after update finished (as i can see from status popup), ri-deselect checkbox and save.
Is it possible at least to add a button to force refresh on every single mount point, without the whole checking/unchecking thing? Thanks.
Re: Library Update For Removable Devices
If I change data in (xbmc) nfo file, when they will reflect changes in database?
I pressed 'refresh' but still old name appears on tv?
how to force to reread data?
I pressed 'refresh' but still old name appears on tv?
how to force to reread data?
Re: Library Update For Removable Devices
Iveky wrote:If I change data in (xbmc) nfo file, when they will reflect changes in database?
I pressed 'refresh' but still old name appears on tv?
how to force to reread data?
It will work if you have the Check for updates of currently shared files selected.
Petr
Serviio developer / site admin
Do not send me PM for support as the solution can't be shared with others.
Follow Serviio on Facebook | Follow Serviio on Twitter
Help translate Serviio
Intel UPnP tools | HOWTO: Turn on detailed logging | HOWTO: Provide supported formats of a device | HOWTO: Provide details of a video file that doesn't play
Serviio developer / site admin
Do not send me PM for support as the solution can't be shared with others.
Follow Serviio on Facebook | Follow Serviio on Twitter
Help translate Serviio
Intel UPnP tools | HOWTO: Turn on detailed logging | HOWTO: Provide supported formats of a device | HOWTO: Provide details of a video file that doesn't play
17 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 46 guests