|
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
|
|||
|
|||
Okay got this figured out if I call tablerow= 1 for the first and do the rest starting at 1 position all is well
Thanks again Stuckless. |
#22
|
||||
|
||||
the actors are stored as "name -- role\n" where \n is a newline. So if you "trim" your element, you should be ok... not sure, buy you may need to do something like.
Code:
ActorCell=java_lang_String_trim(ActorCell)
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#23
|
|||
|
|||
Actually just calling out TableRow if worked great I just start at position 0 for spot 1 and posistion 1 for all the others when I am putting them together works great.
Another question there is there a call to get if no image was found? thanks again |
#24
|
||||
|
||||
You'd create a new file object and then test if the file exists.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#25
|
||||
|
||||
Quote:
Quote:
More generally, the key to writing good code is not to try things at random until something seems to work. It's to understand exactly what each line of code is meant to do, and express that in the code as clearly as possible.
__________________
-- Greg |
#26
|
|||
|
|||
Quote:
thanks again |
#27
|
|||
|
|||
Quote:
Again like stuckless pointed out you are not parsing the information correctly and including extra characters that shouldn't be there.... look at the actor string in the meta .properties file for a movie and see how it is formatted then go through a logical exercise to figure out what you need to get just the actors name....
__________________
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 |
#28
|
|||
|
|||
Quote:
|
#29
|
|||
|
|||
ya i just read the rest of the thread... thats what i get for not reading page 2 ... glad you figured it out
__________________
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 |
#30
|
|||
|
|||
Appreciate you trying to help
|
#31
|
|||
|
|||
Okay back on this array
GetShowPeopleListInShow It does return an array which is great the problem being that it returnes the Actor and the Role played in the following format ActorName -- RoleInFilm What would be the best method/means of parsing out the "--" and everything after it when grouping for a table. In other words I am calling out groupedactors = GroupByArrayMethod(files,"GetPeopleListInShow") Which groups them but not by actor name since the Role is taken into consideration during the grouping. Is there a way to call GetPeopleListInShow before grouping and parse out/scrub the information that I don't want so it is not taken into consideration when grouping. Do I need to build my own array from the array above(is that even possible) I know how to Substring and StringIndexOf but can't figure out how to get that called on "GetPeopleListInShow" Sense it is already an array of actors. Any insight is appreciated. |
#32
|
|||
|
|||
Okay I am getting somewhere my problem is I don't know how to work with the given array of GetPeopleListInShow as it just returns the java string.
How do I call out the Java seperators within this array (basically take it apart) to make a new array. |
#33
|
|||
|
|||
Okay Maybe some code will help. I have someone helping me but I am not quite sure how I can loop the attached code. I have looped the videofiles already but not sure how to loop the actors. Any help is appreciated because doing it this way is long...
I also know I have some repeativeness/erros in there this was more a trial code to make sure I understood it correctly but I can't figure out how I would loop this sense the varaibles are everychanging it seems but they are constant on each next actor code |
#34
|
|||
|
|||
Problem Solved
|
#35
|
|||
|
|||
Greg,Stuckless,Andy,Anyone
I need your eyes to help me I have looked over this array that I build it works 90% of the time (which is not 100% ) I can't seem to pinpoint what is wrong. It seems to break down when I add searching to the AllVidFiles but I know they are still pulling right because I evaluated them. For instance it may break it down to 3 movies but the actor array is only being built for 2 of the 3 movies. I know the filters above it for AllVidFiles are correct as they show the right results when I evaluate them. Everynow and then though the actor array seems to not build the list for a movie or two and I can't figure out why. I could get it all on one screen cap sorry about that. Also I have changed If ActorNum < Size(RelativePath) to If ActorNum < Size(ActorSize) ActorSize = GetPeopleInShowListInRole I found that returns a correct count size to work off. thanks again page1 page2 |
#36
|
|||
|
|||
I think I fixed it but may come back
|
#37
|
|||
|
|||
Go another array/grouping giving me trouble
I can seem to get subcategories and categories to group together using data union I tried filtering seperately but that didn't help either. If I change Categories = DataUnion(SubCategories,Categories) to Categories = SubCategories or Categories = Categories then they will pull correctly but I can't seem to get them to union code |
#38
|
||||
|
||||
You need to consider what type of data you want to end up with, what the API calls are expecting as parameters, and what the API calls return. You are creating groupings, then using DataUnion on those groups. The docs for DataUnion says it returns a vector. So: consider whether you are trying to end up with a) a grouping where you have items listed in the subgroup for each category in the group, or b) a simple flat list of category names.
- 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) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Resizing Tables | bialio | SageTV Studio | 5 | 01-22-2008 01:17 PM |
Building arrays of arrays in Studio | evilpenguin | SageTV Studio | 2 | 02-15-2007 11:58 AM |
Troubling Tables | kuch68 | SageTV Studio | 5 | 09-13-2006 01:06 PM |
Working with Arrays | src666 | SageTV Studio | 2 | 11-12-2005 08:15 AM |