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

ltfearme

Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,751
    7,196
    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,751
    7,196
    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,751
    7,196
    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
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested [2024-03-03 18:26:58,262] [Log ] [MPMain ] [DEBUG] - Main: TV service found. Checking status... [2024-03-03 18:26:58,263] [Log ] [MPMain ] [INFO ] - Main: TV service is in status Running - proceeding...
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested...
    MediaPortal 1.33 Release Written by Team-MediaPortal. We have just released MediaPortal 1.33 - Springtime / 20th Anniversary...
    Replies
    7
    Views
    761
    Hi, I'm wish to be able to watch the recorded TV (*.ts) files on my Sony Bravia Android TV but cannot. The default media player app does not support the file type. So I installed VLC. VLC does read the ts files but the TV's remote does not allow to control basic VLC functions like FF or FR or pause etc... Tried 1-2 other apps, even...
    Hi, I'm wish to be able to watch the recorded TV (*.ts) files on my Sony Bravia Android TV but cannot. The default media player...
    Hi, I'm wish to be able to watch the recorded TV (*.ts) files on my Sony Bravia Android TV but cannot. The default media player...
    Replies
    0
    Views
    477
    (egg in face) I had to dnld SD plugin mpe1 to re install. trying again Thnx
    (egg in face) I had to dnld SD plugin mpe1 to re install. trying again Thnx
    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
    40
    Views
    4K
    And if you use the comskip plugin, the file is locked during the process of comm removal. ;)
    And if you use the comskip plugin, the file is locked during the process of comm removal. ;)
    I'm about to do a Win 7 to Win 10 upgrade on a disk that has 2 partitions. The second partition holds all the recorded tv files so...
    Replies
    2
    Views
    826
    I have looked at your log files, but as usual they are unintelligible gobbledegook. (I am sure that the original developers who wrote that code know what the log entries mean, but those developers have long since retired from the MP team.) I regret to say that I think that you will have to use the "brute force" method to track down...
    I have looked at your log files, but as usual they are unintelligible gobbledegook. (I am sure that the original developers who...
    Sometimes when displaying the OSD whilst playing a recorded TV show the video freezes and the sound continues for about 30 seconds...
    Replies
    1
    Views
    601
    Top Bottom