SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search


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
Old 04-06-2011, 01:53 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
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...

Size(FilterByBoolMethod(MediaFileList,"IsWatched",true)) +" Watched
It looks like the filter call modifies MediaFileList even though that's not my intention.
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)
Reply With Quote
Old 04-06-2011, 01:57 PM
Opus4's Avatar
Opus4 Opus4 is offline
Join Date: Sep 2003
Location: NJ
Posts: 19,624
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.
Reply With Quote
Old 04-06-2011, 01:58 PM
bialio's Avatar
bialio bialio is offline
Join Date: May 2007
Location: Frisco, TX
Posts: 3,445
from the javadoc : "For Maps & Collections this is done in place. For Arrays a new Array is created."

PHOENIX 3 is here!
Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient
Reply With Quote
Old 04-06-2011, 03:31 PM
GKusnick's Avatar
GKusnick GKusnick is offline
Join Date: Dec 2005
Posts: 5,083
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
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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

All times are GMT -6. The time now is 12:57 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.