|
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 FilterBy*() do the filter in place if you don't assign it to anything?
I'm seeing some really odd behavior using FilterByBoolMethod to count number of unwatched videos in a list.
If I print out the count like this... Code:
Size(FilterByBoolMethod(MediaFileList,"IsWatched",true)) +" Watched
__________________
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
|
||||
|
||||
Yes, it can filter in-place -- see the docs for the API calls to see what data object types it says are filtered in-place.
- 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. |
#3
|
||||
|
||||
from the javadoc : "For Maps & Collections this is done in place. For Arrays a new Array is created."
btl.
__________________
PHOENIX 3 is here! Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient |
#4
|
||||
|
||||
Also note that this can happen whether or not you assign it to anything. It's not the method's job to care what you're going to do with the returned value; it just filters according to the parameters passed in.
__________________
-- Greg |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
assign tuner preferences | sflamm | SageTV Software | 9 | 12-26-2009 09:36 PM |
Can I assign a tuner to a favorite? | gilded07 | Hardware Support | 1 | 07-08-2008 04:32 PM |
How can I assign a hostname to my MediaMVP? | zubblwump | SageTV Media Extender | 7 | 01-10-2008 09:42 AM |
How do you assign a static IP to an MVP? | davephan | SageTV Media Extender | 9 | 06-05-2007 05:52 PM |
Is it possible to assign a NIC to Sage? | Menehune | SageTV Software | 12 | 11-06-2005 01:27 PM |