|
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 |
#21
|
||||
|
||||
Quote:
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
#22
|
|||
|
|||
I've removed that, now its showing all the correct shows but it also displays the single recordings. I'm just trying to work out how to filter out the single shows but as usual its proving to be a little bit tricky It never rains does it, only pours All good fun though
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#23
|
|||
|
|||
Nope I'm stuck with filtering out single recordings. The stupid thing is I've created a simple button which allows the sorting of media files into three groups (newest, title & category) but I can't figure out how to filter out the single recordings.
I'm trying to use: Code:
Size(GetShowEpisode(RecordedFiles)) > 1 or Size(GetShowTitle(RecordedFiles)) > 0 Code:
RecordedFiles = FilterByBoolMethod(RecordedFiles, Size(GetShowTitle(RecordedFiles)) > 1, true) Got any clues?
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#24
|
|||
|
|||
Do you have a variable set up and set a value for recordedfiles?
Quote:
|
#25
|
|||
|
|||
Quote:
I think I understand why its not working but I can't quite get my head around an answer.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#26
|
||||
|
||||
I don't think you can use FilterByBoolMethod() like that. I don't think the filter method can be an expression.
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
#27
|
||||
|
||||
Quote:
__________________
-- Greg |
#28
|
||||
|
||||
Correct. The method argument must be a String naming a SageTV API method or a fully-qualified Java function.
__________________
-- Greg |
#29
|
||||
|
||||
Quote:
Ben, If you haven't done so already, I highly recommend that you enable the debug console. You have to change a registry setting to do it, so the easiest way is probably to use babgvant's registry settings utility (I think it's in there). This will open a console window with a real time display of the debug log output. This is VERY helpful. It would have shown you right away that there was a problem with your FilterByBoolMethod() call. Aloha, Mike
__________________
"Everything doesn't exist. I'm thirsty." ...later... "No, it's real!!! I'm full." - Nikolaus (4yrs old) |
#30
|
|||
|
|||
Quote:
Quote:
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#31
|
||||
|
||||
Quote:
I try to do the same thing, by the way, with code snippets shared by reference, prefixing each one with a comment widget listing (as far as practical) the variable contexts it's expecting to be set up for it, and linking references to the comment rather than to the subsequent code. Widget code doesn't have the notion of true subroutines with formal parameter lists, but I try to structure my code as much as possible as if it did.
__________________
-- Greg |
#32
|
|||
|
|||
Quote:
I try to lay my code out in what I would call a simple list so that I can come back to it later if needed and remember what's what.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#33
|
|||
|
|||
I still can't figure out how to filter out the single recordings and be left with all the grouped recordings. I keep looking at the Recorded TV menu for ideas but nothings working.
Anyone fancy throwing me a bone to get me on the right track? I've attached my code image so you can see where I'm at, which is the same place from 24 hours ago
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#34
|
||||
|
||||
Quote:
Code:
Menu Name (arg1, arg2, arg3)
__________________
-- Greg |
#35
|
|||
|
|||
I'm still trying to filter out single recordings and I'm now starting to think that its just not possible Can anyone confirm that you cannot do this so I can move on and forget about trying to make this work.
If the worst comes to the worst I'll just remove TV recordings and make it work via imported media or achived shows, not ideal but better than nothing. I've also attached an image of my menu which I've cut down to its basic form to try and make it simpler.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#36
|
||||
|
||||
I'm really not clear on what you are trying to filter, but if the filtering isn't possible via API calls, then you would have to filter within a loop to get rid of the elements you don't want.
- 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. |
#37
|
|||
|
|||
Quote:
What I'm try to do is create a new menu that only displays TV Series, no movies and no single recordings. I'm working on the basis that if a recording has more than one show/episode available then it could be classed as a TV Series.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#38
|
||||
|
||||
Seems like filtering via API calls ought to be possible, although I don't have a code example handy to illustrate. You'd need to apply the filtering after you've done the grouping, using a method that tests the size of the group and excludes groups with size == 1. But I'm not super-familiar with exactly how FilterByMethod() works on Maps, so it would probably take some trial and error to figure that out.
By the way, why are you using GroupByArrayMethod() instead of plain old GroupByMethod()? GroupByArrayMethod() is for grouping on multiple keys, which is overkill for what you're trying to do (i.e. group by title). Plus GetShowTitle() doesn't return an array or list, as called for in the GroupByArrayMethod() docs, so I'm not sure it would even work with GroupByArrayMethod().
__________________
-- Greg |
#39
|
|||
|
|||
Quote:
Quote:
Anyway size == 1 has given me some ideas to work on
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#40
|
|||
|
|||
Ok so this is really confusing me
If I place a Size >=2 inbetween an Airing attribute and the actual filtering code to take out all groups which hold 1 or less recordings it will only work on the grouped result as a whole and not the individual cells. I can test this by changing the Size >= 2 to Size >=100 so nothing will appear on the screen as I dont have more than 100 TV series to group. Reduce it to >= 10 and they all appear again because I have more than 10 TV series to group. So thinking logically I need to filter whats inside those cells and not the group as a whole. How can I filter whats already been shown on screen via the table? I've added the Size >=2 to the table but it still works on the same princple and displays everything. I've attached another screenshot of the latest code. I also assume I can use >= 2 as it works when I change the value manually.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Studio and SageMC Questions | bama | SageMC Custom Interface | 4 | 07-26-2008 01:11 PM |
Silly Newbie Question: Starting Studio | willetin | SageTV Studio | 2 | 01-05-2008 08:21 AM |
Studio Newbie Question | mightyt | SageTV Studio | 4 | 01-30-2006 01:52 AM |
Some questions about the upcoming Studio. | ToxMox | SageTV Customizations | 26 | 06-08-2004 09:00 AM |