Jump to content

Webhook Payload


m7eesn

Recommended Posts

13 hours ago, Luke said:

Hi, server log?

Hi, i am having similar problem with 4.7.10 as well payload (2022-11-26T10:51:52+03:00)

 

{
  "Title": "New ShowTitle - [AI] ShowTitle (2021) - S01E40 - [040] TBA [HDTV-720p] [JA] [x264 AAC 8bit] on Emby Server",
  "Date": "2022-11-26T07:51:52.3526167Z",
  "Event": "library.new",
  "Item": {
    "Name": "[AI] ShowTitle (2021) - S01E40 - [040] TBA [HDTV-720p] [JA] [x264 AAC 8bit]",
    "ServerId": "snipped",
    "Id": "362237",
    "DateCreated": "2022-11-26T07:51:06.0839701Z",
    "SortName": "[AI] ShowTitle (2021) - S01E40 - [040] TBA [HDTV-720p] [JA] [x264 AAC 8bit]",
    "ExternalUrls": [],
    "Path": "/storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E40 - [040] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv",
    "Taglines": [],
    "Genres": [],
    "FileName": "[AI] ShowTitle (2021) - S01E40 - [040] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv",
    "ProductionYear": 2021,
    "RemoteTrailers": [],
    "ProviderIds": [],
    "IsFolder": false,
    "ParentId": "360841",
    "Type": "Episode",
    "Studios": [],
    "GenreItems": [],
    "TagItems": [],
    "ParentBackdropItemId": "360840",
    "ParentBackdropImageTags": [
      "e62365aa059a7ba4a289f8e62d614bf8"
    ],
    "SeriesName": "ShowTitle",
    "SeriesId": "360840",
    "SeasonId": "360841",
    "SeriesPrimaryImageTag": "0ae66036a0bd337fcf69892ef95d17ec",
    "SeasonName": "Season 1",
    "ImageTags": [],
    "BackdropImageTags": [],
    "MediaType": "Video"
  },
  "Server": {
    "Name": "office_emby",
    "Id": "snipped",
    "Version": "4.7.10.0"
  }
}

here is the relevant logs related to the show

2022-11-26 10:51:52.245 Info LibraryMonitor: Shows (/storage/media/shows) will be refreshed.
2022-11-26 10:51:52.405 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:52.716 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:52.804 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:52.884 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:52.960 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:53.048 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:53.121 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:53.195 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:53.268 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:53.344 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:53.360 Info HttpClient: GET https://api4.thetvdb.com/v4/series/426747/episodes/official?page=0
2022-11-26 10:51:53.415 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:53.483 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:53.552 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:53.623 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:53.696 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:53.768 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:53.839 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:53.912 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:53.983 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:54.051 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:54.123 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:54.196 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:54.268 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:54.330 Info HttpClient: GET https://api4.thetvdb.com/v4/series/426747/episodes/official/eng?page=0
2022-11-26 10:51:54.340 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:54.412 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:54.484 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:54.556 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:54.631 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:54.704 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:54.780 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:54.822 Info MediaProbeManager: ProcessRun 'ffprobe' Execute: /app/emby/ffprobe -i file:"/storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E40 - [040] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data
2022-11-26 10:51:54.859 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:54.920 Info MediaProbeManager: ProcessRun 'ffprobe' Process exited with code 0 - Succeeded
2022-11-26 10:51:54.927 Info FfmpegManager: ProcessRun 'CreateTitleFingerprint' Execute: /app/emby/ffmpeg  -t 00:10:00.000 -i file:"/storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E40 - [040] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv" -ac 1 -acodec pcm_s16le -ar 16000 -vn -sn -f chromaprint -fp_format raw "/config/cache/temp/8e0fa5caa16d43e5a79c36de35905810"
2022-11-26 10:51:54.935 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:55.008 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:55.085 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:55.160 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:55.235 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:55.308 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:55.384 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:55.452 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:55.527 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:55.604 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:55.681 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:55.756 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:55.827 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:55.900 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:55.938 Info FfmpegManager: ProcessRun 'CreateTitleFingerprint' Process exited with code 0 - Succeeded
2022-11-26 10:51:55.938 Info App: CreateTitleFingerprint completed for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E40 - [040] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv to /config/cache/temp/8e0fa5caa16d43e5a79c36de35905810
2022-11-26 10:51:55.938 Info App: Moving fingerprint file from /config/cache/temp/8e0fa5caa16d43e5a79c36de35905810 to /config/metadata/library/21/214b94409aaa2bcbe5dbd16b1fd31b42/title_10_638050458660000000.fp
2022-11-26 10:51:55.968 Info App: ProcessRun 'quick-extract-image' Execute: /app/emby/ffmpeg -skip_list 179 -f matroska -threads 1 -copyts -i file:"/storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E40 - [040] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv" -an -sn -update 1 -vf "scale=trunc(min(max(iw\,ih*dar)\,min(600\,0*dar))/2)*2:trunc(min(max(iw/dar\,ih)\,min(600/dar\,0))/2)*2,thumbnail=24" -vsync 0 -f image2 "/config/cache/temp/8c5f985e-48e9-487d-bfe6-102234015b47.jpg"
2022-11-26 10:51:55.975 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:56.049 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:56.123 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:56.196 Info HttpClient: POST https://localhost:8081/webhook
2022-11-26 10:51:56.470 Info App: ProcessRun 'quick-extract-image' Process exited with code 0 - Succeeded
2022-11-26 10:51:56.494 Info App: /storage/media/shows/ShowTitle (2021)/Season 01 has 40 episodes with audio fingerprints available
2022-11-26 10:52:04.847 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E03 - [003] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:04:05.1492537 - 00:04:49.8009949. Confidence: 0.9
2022-11-26 10:52:07.730 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E04 - [004] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:02:27.3880597 - 00:03:12.0398009. Confidence: 0.9
2022-11-26 10:52:10.345 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E05 - [005] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:03:22.6119402 - 00:03:59.3034824. Confidence: 0.9
2022-11-26 10:52:12.901 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E06 - [006] TBA [HDTV-720p] [JA] [h264 AAC 8bit].mkv is 00:02:10.5970149 - 00:02:47.2885571. Confidence: 0.9
2022-11-26 10:52:15.407 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E07 - [007] TBA [HDTV-720p] [JA] [h264 AAC 8bit].mkv is 00:04:23.0597014 - 00:04:55.5223879. Confidence: 0.9
2022-11-26 10:52:17.938 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E08 - [008] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:03:10.0497512 - 00:03:42.5124377. Confidence: 0.9
2022-11-26 10:52:20.739 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E09 - [009] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:04:11.4925373 - 00:04:49.1791044. Confidence: 0.9
2022-11-26 10:52:23.473 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E10 - [010] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:03:32.4378109 - 00:04:10.1243780. Confidence: 0.9
2022-11-26 10:52:25.966 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E11 - [011] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:02:35.5970149 - 00:03:19.9999999. Confidence: 0.9
2022-11-26 10:52:28.435 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E12 - [012] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:01:36.3930348 - 00:02:20.7960198. Confidence: 0.9
2022-11-26 10:52:30.899 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E13 - [013] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:03:59.5522388 - 00:04:34.2537313. Confidence: 0.9
2022-11-26 10:52:33.368 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E14 - [014] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:01:53.8059701 - 00:02:28.5074626. Confidence: 0.9
2022-11-26 10:52:33.912 Info LibraryMonitor: ShowTitle (/storage/media/shows/ShowTitle (2021)) will be refreshed.
2022-11-26 10:52:42.423 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E17 - [017] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:03:37.2885572 - 00:04:16.0945273. Confidence: 0.9
2022-11-26 10:52:45.266 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E18 - [018] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:02:03.5074626 - 00:02:42.3134327. Confidence: 0.9
2022-11-26 10:52:47.904 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E19 - [019] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:04:54.4029850 - 00:05:28.1094526. Confidence: 0.9
2022-11-26 10:52:50.681 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E20 - [020] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:02:30.6218905 - 00:03:04.3283581. Confidence: 0.9
2022-11-26 10:52:53.459 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E21 - [021] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:03:46.2437810 - 00:04:10.2487561. Confidence: 0.9
2022-11-26 10:52:56.140 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E22 - [022] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:03:42.0149253 - 00:04:06.0199004. Confidence: 0.9
2022-11-26 10:52:58.779 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E23 - [023] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:05:52.9850746 - 00:06:29.1791044. Confidence: 0.9
2022-11-26 10:53:01.413 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E24 - [024] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:01:50.6965174 - 00:02:26.8905472. Confidence: 0.9
2022-11-26 10:53:04.032 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E25 - [025] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:03:18.1343283 - 00:03:46.8656715. Confidence: 0.9
2022-11-26 10:53:06.864 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E26 - [026] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:03:04.7014925 - 00:03:33.4328357. Confidence: 0.9
2022-11-26 10:53:09.714 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E27 - [027] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:03:57.3134328 - 00:04:26.1691541. Confidence: 0.9
2022-11-26 10:53:12.462 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E28 - [028] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:01:57.9104477 - 00:02:26.7661690. Confidence: 0.9
2022-11-26 10:53:20.560 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E31 - [031] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:04:23.1840796 - 00:04:55.5223880. Confidence: 0.9
2022-11-26 10:53:23.446 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E32 - [032] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:03:50.2238805 - 00:04:22.5621889. Confidence: 0.9
2022-11-26 10:53:36.850 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E37 - [037] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:04:46.4427860 - 00:05:15.7960198. Confidence: 0.9
2022-11-26 10:53:39.597 Info App: Best title sequence for /storage/media/shows/ShowTitle (2021)/Season 01/[AI] ShowTitle (2021) - S01E38 - [038] TBA [HDTV-720p] [JA] [x264 AAC 8bit].mkv is 00:01:20.8457711 - 00:01:50.1990049. Confidence: 0.9
2022-11-26 10:53:44.930 Info App: Removing item from database, Type: Episode, Name: Episode 40, Path: , Id: 360882
2022-11-26 10:53:45.125 Info App: Deleting path /config/metadata/library/38/38fd59d24eb08e239e35cfff020f4c81

I replaced the show name to be more generic, however if you want to know the show name is "≠ME Senpai, Motto Oshiete Kudasai!! (2021)"

Edited by m7eesn
Link to comment
Share on other sites

16 hours ago, Luke said:

Hi @m7eesn can you please describe your issue in more detail? What is the problem?

Sorry it seems i mistakenly replied to the private message instead of here. my reply was

Hi

unless i misunderstood the changes in 4.7.10.0 changelog:

  • Delay triggering new item additions under after metadata download. This should help improve the experience with Trakt, Webhooks, notifications, etc.

This was supposed to prevent sending web hooks events without some form of basic metadata. As you can see from the payload, that’s not the case as the payload missing basic things like season number and episode number. compared to item.markasplayed which sends the correct basic metadata.  

example of workable payload.

{
    "Title": "item.markplayed",
    "Date": "2022-11-26T23:30:27.1684007Z",
    "Event": "item.markplayed",
    "User": {
        "Name": "admin",
        "Id": "snip"
    },
    "Item": {
        "Name": "Episode 013",
        "ServerId": "snip",
        "Id": "356755",
        "DateCreated": "2022-10-20T23:22:07.0000000Z",
        "Container": "mkv",
        "SortName": "Episode 013",
        "PremiereDate": "2010-06-20T21:00:00.0000000Z",
        "ExternalUrls": [
            {
                "Name": "TheTVDB",
                "Url": "https://thetvdb.com/?tab=episode&id=9411319"
            }
        ],
        "Path": "/storage/media/shows/Showtitle (2010)/Season 2010/[AI] Showtitle (2010) - S2010E13 - [013] TBA [HDTV-720p] [JA] [XviD MP3 8bit].mkv",
        "Taglines": [],
        "Genres": [],
        "RunTimeTicks": 13380000000,
        "Size": 753439447,
        "FileName": "[AI] Showtitle (2010) - S2010E13 - [013] TBA [HDTV-720p] [JA] [XviD MP3 8bit].mkv",
        "Bitrate": 4504869,
        "PlayAccess": "Full",
        "ProductionYear": 2010,
        "IndexNumber": 13,
        "ParentIndexNumber": 2010,
        "RemoteTrailers": [],
        "ProviderIds": {
            "Tvdb": "9411319"
        },
        "IsFolder": false,
        "ParentId": "356750",
        "Type": "Episode",
        "Studios": [],
        "GenreItems": [],
        "TagItems": [],
        "SeriesName": "Showtitle",
        "SeriesId": "356747",
        "SeasonId": "356750",
        "PrimaryImageAspectRatio": 1.7777777777777777,
        "SeriesPrimaryImageTag": "7554a514897bf300987f7d24cd5ab970",
        "SeasonName": "Season 2010",
        "ImageTags": {
            "Primary": "66a74495b94edebc2fc4b8e1af1d56dc"
        },
        "BackdropImageTags": [],
        "MediaType": "Video",
        "Width": 1280,
        "Height": 720
    },
    "Server": {
        "Name": "office_emby",
        "Id": "snip",
        "Version": "4.7.10.0"
    }
}

 

Edited by m7eesn
added example of payload
Link to comment
Share on other sites

1 hour ago, Luke said:

OK yes in some cases it still may get sent sooner than it should. We'll look into it. Thanks.

Not sure if it’s worth mentioning, but i think its due to intro detector maybe as i noticed it blocks letting shows show up in page until it’s finished. This maybe related to it? 

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...