V17 Skinning engine changes Integer.IsGreater(info,number) v20 Skinning engine changes Integer.IsGreater(info,number) now supports comparisons against other integer infos and not just fixed number values. Note Example: Integer.IsGreater(ListItem.Year,2000) Returns True if the value of the infolabel is greater than to the supplied number. V17 Skinning engine changes Integer.IsEqual(info,number) v20 Skinning engine changes Integer.IsEqual(info,number) now supports comparisons against other integer infos and not just fixed number values. Note Example: Integer.IsEqual(ListItem.Year,2000) Returns True if the value of the infolabel is equal to the supplied number. V20 Skinning engine changes Integer.ValueOf(number) Example: Integer.ValueOf(some string) will evaluate to -1 as the provided argument is not an integer. Will return -1 if not able to convert the provided value to an integer. Note Example: Integer.ValueOf(4) will be evaluated to 4. Returns An integer info label that represents the provided number Parameters number V17 Skinning engine changes String.Contains(info,substring) Returns True if the info contains the given substring. V17 Skinning engine changes String.EndsWith(info,substring) Returns True if the info ends with the given substring. V17 Skinning engine changes String.StartsWith(info,substring) Returns True if the info starts with the given substring. V17 Skinning engine changes String.IsEqual(info,string) Returns True if the info is equal to the given string. V17 Skinning engine changes String.IsEmpty(info) Also note that in a panelview or similar this only works on the focused item Please note that string can also be a $LOCALIZE. Note Example of info: ListItem.Title, ListItem.Genre. V20 Skinning engine changes Addon.SettingInt(addon_id,setting_id) Otherwise it will return the integer info default value (which is 0). Note The provided setting with setting_id must be an integer setting type. Returns The integer value of the setting setting_id belong to the addon with the id addon_id. V20 Skinning engine changes Addon.SettingBool(addon_id,setting_id) Otherwise it will return the boolean info default value (which is False). Note The provided setting with setting_id must be a boolean setting type. Returns True if the setting setting_id belonging to the addon with the id addon_id is True, False otherwise. V20 Skinning engine changes Addon.SettingStr(addon_id,setting_id) Returns The string value of the setting setting_id belonging to the addon with the id addon_id. List of Infolabels and Boolean conditionsÄescription Addon.SettingStr(addon_id,setting_id) Use links instead of bold values for infolabels/bools so we can use a link to point users when providing help Order items alphabetically within subsections for a better search experience Separate boolean conditions from infolabels Improve the description and create links for functions Scripts can read infolabels with xbmc.getInfoLabel('infolabel'). Skins can use infolabels with $INFO or the tag. Scripts can read boolean conditions with xbmc.getCondVisibility(condition). I guess the stream Id is something you also need to find out using the Inspector in your browser.Skins can use boolean conditions with the tag or with condition attributes. Run this on the command line modifying offset (-90000 : 90s) for me. I looked at the web client does when you press that button, and simply replayed that request modifying the offset value. I found a terrible workaround, but still a workaround. Or yet another idea, if I pause the video stream at the time that something is said (notice a theme here?) It would be easy for the user to then select the item from the subtitle file from a list of the text items that corresponds with that moment, and then Plex could calculate the offset itself from the two relative stream positions. Or, even simpler from a UI perspective, maybe there could just be a button that lets me align the 1st (or 2nd, or 3rd…) offset in the subtitle file with the paused position in the video stream. After that doing fine-tuning adjustments with +/- 50 ms would not be so bad. My ideal would be a UI that allowed me to pause the video at the first instance of spoken text, and then be able to have some sort of representation of the subtitle file, perhaps as simple as a line with tick-marks that I could drag back and forth to line up a tick with the current position of the video. So I end up spending a few minutes clicking +50ms to get a 10 second difference, only to realize that I should have been using -50ms and having to do it all over again before I can even start fine-tuning. I always forget which direction the +/- moves things. Something little more visual would be nice too.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |