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

ltfearme

Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,760
    7,224
    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,760
    7,224
    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,760
    7,224
    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
    yes that is indeed what I did in that ticket. It may already be working without updating those plugins because most of it was not relevant to the plugin itself (test, some leftover unused parts etc).
    yes that is indeed what I did in that ticket. It may already be working without updating those plugins because most of it was not...
    We have just released MediaPortal 1.38 - Tatiana & Leo x86 and x64 version. Highlights of this release Bugfixes: New...
    Replies
    37
    Views
    10K
    Sorry, I didn't get email notifications on these latest replies. I just came here to report I solved the problem after adjusting power settings for "Intel Graphics". I set it to Maximum Performance. I tried many other things so it could be a combination of them, but this was the last thing I did and I haven't had the problem return...
    Sorry, I didn't get email notifications on these latest replies. I just came here to report I solved the problem after adjusting...
    I'm running MP1 as a client only on this: https://www.amazon.com/dp/B0DZX5DWS5?ref_=pe_123509780_1038749300_t_fed_asin_title&th=1...
    Replies
    5
    Views
    2K
    If you’re planning to submit a pull request, let’s go through the list of issues and their solutions. I or someone from the team will create a Jira ticket, and for each ticket, you’ll make the changes and submit a pull request. This will be transparent and straightforward.
    If you’re planning to submit a pull request, let’s go through the list of issues and their solutions. I or someone from the team...
    I'm very glad to see that mediaportal 1 is on github, where ordinary devs with github accounts can make contributions. Please can...
    Replies
    7
    Views
    1K
    As Alexander Pope said: A little learning is a dangerous thing, and Dr Google explains this as: The quotation warns that superficial knowledge of a subject can make people arrogant or foolish, suggesting one should either learn deeply or not at all. "Superficial", and "arrogant or foolish" would be me :eek: . However... I would...
    As Alexander Pope said: A little learning is a dangerous thing, and Dr Google explains this as: The quotation warns that...
    I have just discovered that I can no longer receive any of the independent radio channels broadcast on DVB-T in the UK. In...
    Replies
    12
    Views
    4K
    I compliment you on the thoroughness of your investigations. (y) Unfortunately, I don't have any ideas what the problem might be. :( Perhaps someone else will post with some suggestions. :unsure: -- from CyberSimian in the UK
    I compliment you on the thoroughness of your investigations. (y) Unfortunately, I don't have any ideas what the problem might be...
    Would appreciate it if someone could solve (or point me in the right direction to resolve) this issue. I have “MultiSeat”...
    Replies
    4
    Views
    1K
    Top Bottom