Latest Media Handler v2.4.X.000 (3 Viewers)

wizard123

Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    Not sure in c#
    In powershell i split the plot using (.) then add the first + second splits together.

    $LatestTVseries1_descs1,$LatestTVseries1_descs2,$LatestTVseries1_descs3 = $LatestTVseries1_desc.replace(". ","©").Split("©")
    $LatestTVseries1_desc_short = $LatestTVseries1_descs1 + ". " + $LatestTVseries1_descs2.TrimEnd().Trim(".") + "."
     

    wizard123

    Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    Something like this ?

    string lineOfText = "Hello test test. Another test.";
    string[] wordArray = lineOfText.Split( '.' );
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,059
    11,141
    Kyiv
    Home Country
    Ukraine Ukraine
    Summary (wait new beta) properties: :D
    Code:
    #latestMediaHandler.tvrecordings.latest.[1,2,3,4].summary
    #latestMediaHandler.tvrecordings.latest.[1,2,3,4].series
    #latestMediaHandler.tvrecordings.latest.[1,2,3,4].episode
    #latestMediaHandler.tvrecordings.latest.[1,2,3,4].episodename
    
    #latestMediaHandler.music.latest.[1,2,3].artistbio
    
    #latestMediaHandler.myvideo.latest.[1,2,3].plotoutline
    
    #latestMediaHandler.movingpicture.latest.[1,2,3].plotoutline
    
    #latestMediaHandler.tvseries.latest.[1,2,3].plotoutline
    XML:
    <string Field="NoDescription">No Description available...</string>
     
    Last edited:

    wizard123

    Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    Great work ! Is plotOutline available for MovingPictures too ? Same as tvseries first two sentences. :whistle:
     

    wizard123

    Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    Great, yea i don't use myfilms but will be nice for those that do ;)
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,059
    11,141
    Kyiv
    Home Country
    Ukraine Ukraine
    Great, yea i don't use myfilms but will be nice for those that do
    I need to know how to take the field until the plug-in, the descriptions do not take from my films. :(
     

    catavolt

    Design Group Manager
  • Team MediaPortal
  • August 13, 2007
    14,621
    10,632
    Königstein (Taunus)
    Home Country
    Germany Germany
    Summary (wait new beta) properties: :D
    Why invent the wheel again :confused:
    We already have (since the beginning and I use them already in DefaultWideHD) these properties for plot in MyVideo, TVSeries, MovingPictures:

    #latestMediaHandler.tvseries.latest1.plot
    #latestMediaHandler.myvideo.latest1.plot
    #latestMediaHandler.movingpicture.latest1.plot

    Ofc replace the 1 with 2 or 3 ;)

    But big THX for the rest, ajs (y)
     

    Users who are viewing this thread

    Top Bottom