For which plugin does this feature request apply? SJQ4
Please describe the feature request below in as much detail as possible.
If possible, based on SageTV's addition of S0xE0x naming convention, can we add a new metadata type of SJQ4_SEASON?
I ask in that it would now be much easier to move files using your basic move script with an argument for the resulting directory based on the new path/title/season/episode metadata.
Comment #1
Posted on Sep 18, 2011 by Grumpy CatIf you're using groovy scripts, you can access the season/episode info by API call:
===
def mf = MediaFileAPI.GetMediaFileForID(SJQ4_METADATA['SJQ4_ID']) def season = ShowAPI.GetShowSeasonNumber(mf) def episode = ShowAPI.GetShowEpisodeNumber(mf)
println "The recording is for season $season, episode $episode."
===
As a matter of fact, when in groovy, you'll probably find it more convenient to simply pull all metadata of interest from API calls rather than using the SJQ4_METADATA map. The map is really for non-Groovy users, such as batch files and other exes where they can't directly make API calls. In these cases the map is actually injected into the external process environment as env variables, but in Groovy, you can simply get the object based on the SJQ4_ID then make any and all API calls using that object, as I've shown in the code example above. This gives you access to all metadata, even that not available in the SJQ4_METDATA map.
I may still add those vars to the map for others, but either way, you don't need me to add them in order to access that data from groovy.
Comment #2
Posted on Sep 18, 2011 by Grumpy Cat(No comment was entered for this change.)
Comment #3
Posted on Oct 21, 2011 by Grumpy CatWon't fix; most people who need access to this metadata use groovy, which has direct access to all metadata without the need for additional env vars.
Status: WontFix
Labels:
Type-Enhancement
Priority-Low
Plugin-SJQ
OpSys-All
Component-Logic