![]() |
|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
Does GetSize() poll the database or filesystem?
Can't tell from the API docs, does the GetSize() pull its data from the database or does it have to hit the filesystem on every call?
__________________
Clients: 1xHD200 Connected to 50" TH-50PZ750U Plasma Server : Shuttle SFF SSH55J2 w/ Win7 Home, SageTV v7, Core i3 540, 2GB RAM, 30GB SSD for OS, 1.5TB+2x1TB WDGP for Recordings, BluRay, 2xHDHR, 1xFirewire SageTV : PlayOn, SJQ, MediaShrink, Comskip, Jetty, Web Client, BMT Having a problem? Don't forget to include a log! (Instructions for: PlayOn For SageTV v1.5, MediaShrink) |
#2
|
|||
|
|||
I assume we're talking file size queries? I'd guess it'd hit the filesystem APIs for that info based on the fact that it's rather quick to update that value while a file is recording. If it were in the database then the core would be constantly hitting the filesystem API and updating the database every second to keep the value current in wiz.bin. Since that'd be a massive waste of file i/o given that most of the time no one/nothing is requesting that info, I'd have to conclude the API call hits the filesystem directly on demand.
__________________
Twitter: @ddb_db Server: Intel i5-4570 Quad Core, 16GB RAM, 1 x 128GB OS SSD (Win7 Pro x64 SP1), 1 x 2TB media drive Capture: 2 x Colossus STB Controller: 1 x USB-UIRT Software:Java 1.7.0_71; SageTV 7.1.9 Clients: 1 x HD300, 2 x HD200, 1 x SageClient, 1 x PlaceShifter Plugins: Too many to list now... |
#3
|
||||
|
||||
Seems like an easy question to answer by experimentation with ProcMon or something similar.
That said, unless caching the information in RAM is a documented part of the method's contract, you'd probably be wise to code as if it goes directly to the filesystem. You don't want to depend on behaviors that might just be accidents of the implementation and could change without warning.
__________________
-- Greg |
#4
|
||||
|
||||
The reason I ask is that I need to find a quick/easy way to identify/filter a special video in a list. My original hope was to use the size since number comparisons are quick and I assumed it was pulling from the database rather than the file system.
But if that's not the case, which I suspect it isn't after some performance testing, I need to pick a new video characteristic to check for. GetMediaFileFormatDescription() should work pretty well too, I can make the format be strange enough that conflicts would be near impossible.
__________________
Clients: 1xHD200 Connected to 50" TH-50PZ750U Plasma Server : Shuttle SFF SSH55J2 w/ Win7 Home, SageTV v7, Core i3 540, 2GB RAM, 30GB SSD for OS, 1.5TB+2x1TB WDGP for Recordings, BluRay, 2xHDHR, 1xFirewire SageTV : PlayOn, SJQ, MediaShrink, Comskip, Jetty, Web Client, BMT Having a problem? Don't forget to include a log! (Instructions for: PlayOn For SageTV v1.5, MediaShrink) Last edited by evilpenguin; 02-09-2011 at 04:36 PM. |
#5
|
||||
|
||||
If these are videos you're creating, why not use SetMediaFileMetadata to label them with an explicit tag?
__________________
-- Greg |
#6
|
||||
|
||||
They're generated external to Sage so encoding that info into the video information seems like a nice, low-tech, workaround.
__________________
Clients: 1xHD200 Connected to 50" TH-50PZ750U Plasma Server : Shuttle SFF SSH55J2 w/ Win7 Home, SageTV v7, Core i3 540, 2GB RAM, 30GB SSD for OS, 1.5TB+2x1TB WDGP for Recordings, BluRay, 2xHDHR, 1xFirewire SageTV : PlayOn, SJQ, MediaShrink, Comskip, Jetty, Web Client, BMT Having a problem? Don't forget to include a log! (Instructions for: PlayOn For SageTV v1.5, MediaShrink) Last edited by evilpenguin; 02-09-2011 at 06:07 PM. |
#7
|
||||
|
||||
You could generate a .properties file to contain the custom metadata, and it will be imported into the database when Sage creates the MediaFile object.
__________________
-- Greg |
#8
|
|||
|
|||
these aren't by any chance dummy mkv's created for your playon importer? I've been meaning to ask you how you identify and filter by them in diamond?
__________________
Server 2003 r2 32bit, SageTV9 (finally!) 2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast) 2x HD300, 1x SageClient (Win10 Test/Development) Check out TVExplorer |
#9
|
|||
|
|||
In the current version we do it the same as SMM and by the playon directory location. The next version will be by the filesize to get it's source (ie netflix or hulu)
|
#10
|
||||
|
||||
Quote:
Example: for the detailed info menus, I fork a thread in the AfterMenuLoad hook to get the file size & then refresh the screen once that is done because otherwise there are cases where the UI could stop for a bit if that call were to be in the UI chain & it ended up taking a while to get the file size. - Andy
__________________
SageTV Open Source v9 is available. - Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1. - Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus - HD Extenders: A) FAQs B) URC MX-700 remote setup Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unable to access filesystem | alex188 | SageTV Software | 2 | 01-31-2010 03:04 AM |
Best filesystem for recordings | DylanHall | SageTV Linux | 7 | 11-02-2009 05:41 PM |
suggested filesystem? | drewg | SageTV Linux | 7 | 03-25-2008 01:11 PM |
Filesystem couldn't be fixed | loodpreh | SageTV Linux | 3 | 05-21-2006 12:31 PM |
filesystem error | moements | SageTV Beta Test Software | 1 | 01-15-2005 08:18 AM |