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
    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
    464
    • 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
    663
    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
    3K
    I can't believe I missed the new feature, pixel shaders. :) Thankyou guys for all your work (y)
    I can't believe I missed the new feature, pixel shaders. :) Thankyou guys for all your work (y)
    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
    1
    Views
    2K
    I've updated dlls in first post. Fixes: Summary / Overview was always empty Collections were not filtered to official ones Studios were not populated Fallback to english tagline didn't work Score / Popularity now empty instead of dummy rating and unknown popularity numbers Also I've tried to compile plugin against MP 1.34 x64 and...
    I've updated dlls in first post. Fixes: Summary / Overview was always empty Collections were not filtered to official ones Studios...
    Hi! TheTVDB.com has movies in their API now. API itself looks ok now so I decided to add TVDB to Moving Pictures. Check it if you...
    Replies
    2
    Views
    508
    Top Bottom