Update File Size on rescan

Hi!
I encountered the following problem: When copy a file to my network share where serviio is running, the thread which looks for new media finds the file before copying is finished. Unfortunateley serviio adds the file to the database with the file size when copy was still running.
When i tried to play the video it suddenly stopped playing before the film was ended. Looking at the debug log i could see the following:
Serviio says the content size would be 2823634923. But actually the file has over 3 GB. I tried to force a library refresh via console. But the file size was staying below 3 GB. Only renaming of the file solved the problem.
The easiest solution would probably be to update the filesize when refreshing the library!
greets
hakito
I encountered the following problem: When copy a file to my network share where serviio is running, the thread which looks for new media finds the file before copying is finished. Unfortunateley serviio adds the file to the database with the file size when copy was still running.
When i tried to play the video it suddenly stopped playing before the film was ended. Looking at the debug log i could see the following:
- Code:
2012-11-23 18:26:39,667 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Type: video/mp4,Content-Range: bytes 2510322887-2823634923/2823634924,Content-Length: 313312037,Date: Fri, 23 Nov 2012 17:26:39 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/1.0.1,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=AVC_MP4_MP_HD_720p_AAC;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000,transferMode.dlna.org: Streaming]]
Serviio says the content size would be 2823634923. But actually the file has over 3 GB. I tried to force a library refresh via console. But the file size was staying below 3 GB. Only renaming of the file solved the problem.
- Code:
2012-11-23 19:13:11,142 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Type: video/mp4,Content-Range: bytes 7946244-3220947826/3220947827,Content-Length: 3213001583,Date: Fri, 23 Nov 2012 18:13:11 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/1.0.1,Cache-control: no-cache,transferMode.dlna.org: Streaming]]
The easiest solution would probably be to update the filesize when refreshing the library!
greets
hakito