Add scrobble support for Live TV / Recorded TV (1 Viewer)

ltfearme

Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,755
    7,200
    Sydney
    Home Country
    Australia Australia
    mrmojo666, the log snippet shows it sending watching state, not scrobble. What exactly is wrong with that?
    Code:
    Address: http://api.trakt.tv/show/watching/

    A true scrobble ie watched event will have scrobble in the url. Dont get confused with the [scrobble] thread name in log, maybe we should make that more clear.

    fyi, it seems your EPG does not have correct title fields for some of your shows
    Glee - 1^TV - 3x14

    Do you know why your title field has - 1^TV?
     

    mrmojo666

    MP Donator
  • Premium Supporter
  • January 24, 2006
    603
    182
    Turin
    Home Country
    Italy Italy
    mrmojo666, the log snippet shows it sending watching state, not scrobble. What exactly is wrong with that?
    Code:
    Address: http://api.trakt.tv/show/watching/

    A true scrobble ie watched event will have scrobble in the url. Dont get confused with the [scrobble] thread name in log, maybe we should make that more clear.

    fyi, it seems your EPG does not have correct title fields for some of your shows
    Glee - 1^TV - 3x14

    Do you know why your title field has - 1^TV?


    thank you for the explanation.

    that means "first time aired" and it is added from the provider, would be appreciated if the scrobbler can try to mach not only exact string but when exact string not match it tries again with a partial match ..... may i suggest the first part of the string until a space or comma or - ..... like the epg channel association in tvserver...
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,755
    7,200
    Sydney
    Home Country
    Australia Australia
    Here is the regular expression we use to extract the title and year from the title field in the tv epg:
    Code:
    "^(?<title>.+?)(?:\s*[\(\[](?<year>\d{4})[\]\)])?$"
    If the title field also includes other information (such as 'first time aired') then we can tweak that expression so that includes more capture groups...any one in the community can help us out on that.

    If someone can make a list of all the possibilities for title field, then we can start to improve the expression.

    So in your glee example above 'Glee - 1^TV' is being returned from your title field and is captured as is in our expression.
     

    mrmojo666

    MP Donator
  • Premium Supporter
  • January 24, 2006
    603
    182
    Turin
    Home Country
    Italy Italy
    i'm not a super expert in regular expression, but that regex seems in not working in my usual regex validation tool...... is that regex wroitten in .net way ?
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,755
    7,200
    Sydney
    Home Country
    Australia Australia
    i'm not a super expert in regular expression, but that regex seems in not working in my usual regex validation tool...... is that regex wroitten in .net way ?
    Yes, its done in .Net. Here is the full line of code used by the expression:
    Code:
    Match regMatch = Regex.Match(info.Title, @"^(?<title>.+?)(?:\s*[\(\[](?<year>\d{4})[\]\)])?$");

    We could add a setting for this so it can be customizable by advanced users, all we need is to be able to get title and year...the rest of the string can be ignored. We can also update the default once agreed it would suit everyone.
     

    Users who are viewing this thread

    Similar threads

    • Sticky
    All good now!!
    All good now!!
    We have just released MediaPortal 1.36 - Polar Express x86 and x64 version. Highlights of this release Bugfixes: [MP1-5229] -...
    Replies
    2
    Views
    473
    We have just released MediaPortal 1.35 - Horizon x86 and x64 version. Highlights of this release Bugfixes: [MP1-5221] - Core: Fix FrameGrabbing for EVR [MP1-5222] - TV Server: Fix ISO-8859-10/14 DVB text encodings [MP1-5224] - Fix Card "CancelTune" request Since Pre-Release : New: Since Pre-Release : Improvement / Rework...
    We have just released MediaPortal 1.35 - Horizon x86 and x64 version. Highlights of this release Bugfixes: [MP1-5221] - Core...
    We have just released MediaPortal 1.35 - Horizon x86 and x64 version. Highlights of this release Bugfixes: [MP1-5221] - Core...
    Replies
    0
    Views
    2K
    First thing to say is that I use MP1, whereas I believe that you use MP2. @ge2301 has just posted that MP2 has a "folder view" in addition to the "library view", so you should be able to set up your system as I describe below, but the details will differ. In MP1, the folders that are to appear on the "Videos" panel are defined in "MP...
    First thing to say is that I use MP1, whereas I believe that you use MP2. @ge2301 has just posted that MP2 has a "folder view" in...
    Help Please. Yesterday upon switch-on, I had this issue with MP2: When I clicked on the [REC] icon in the following Image...
    Replies
    18
    Views
    1K
    • Sticky
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the next release. We allocate about one month for Pre Release testing. In that time we will only fix bugs, after which comes the final release! Highlights of this release Bugfixes: [MP1-5221] - Core: Fix...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Replies
    0
    Views
    1K
    Maybe they only show the bits information for the x64 version and no bits information for the 32-bit version?
    Maybe they only show the bits information for the x64 version and no bits information for the 32-bit version?
    We have just released MediaPortal 1.34 - Dune x86 and x64 version. Highlights of this release Bugfixes: [MP1-5201] - Fix MPC-HC...
    Replies
    10
    Views
    4K
    Top Bottom