Refresh Metadata on recorded episode doesn't seem to work

Have a recording made with Channels DVR last year displaying the wrong Season and Episode numbers.

Modern Marvels - S19E04 - Power Tools was recorded on its OAD 2021-08-15

but displays as S21E04

I checked zap2it and they now have it correctly listed as S19E04, but doing a Refresh Metadata on the episode doesn't update it.

This is just one example, same issue with other shows and episodes, so if Refresh Metadata doesn't get the new metadata from Gracenote I may as well import them as local content and edit metadata on those not matching correctly.

Is it updated in the json inside Raw?

No,

Airing.Raw.program {
   "tmsId": "EP001031150912",
   "rootId": "20347732",
   "seriesId": "185155",
   "entityType": "Episode",
   "subType": "Series",
   "title": "Modern Marvels",
   "titleLang": "en",
   "episodeTitle": "Power Tools",
   "episodeNum": 4,
   "seasonNum": 21,
   "releaseYear": 2021,
   "releaseDate": "2021-08-15",
   "origAirDate": "2021-08-15",
   "descriptionLang": "en",

and Airing

Airing {
    "SeasonNumber": 21,
    "EpisodeNumber": 4,

Same exact issue with this one where zap2it has the correct Season and Episode (S19E01).

Performing Refresh Metadata only changes "UpdatedAt": in the recorded file json.

Recorded File json
{
    "ID": "3786",
    "JobID": "1628712000-413",
    "RuleID": "413",
    "GroupID": "185155",
    "Path": "TV/Modern Marvels/Modern Marvels S21E01 2021-07-25 Adventure Machines 2021-08-11-1300.mpg",
    "CreatedAt": 1628712000,
    "Duration": 3630.950923,
    "Commercials": [611.76, 837.0600000000001, 2008.78, 2234.28, 2617.85, 2829.48, 3114.13, 3201.42],
    "Completed": true,
    "Processed": true,
    "Airing": {
        "Source": "tms",
        "Channel": "758",
        "OriginalDate": "2021-07-25",
        "Time": 1628712000,
        "Duration": 3600,
        "Title": "Modern Marvels",
        "EpisodeTitle": "Adventure Machines",
        "Summary": "The factory where Yamaha makes ATVs, WaveRunners and more; amusement park Diggerland USA.",
        "FullSummary": "Adrenaline runs high when Adam Richman visits the factory where Yamaha makes ATVs, WaveRunners and more; an inside look at a company built to get people sky-high in paramotors; amusement park Diggerland USA; mech-suits; submarine built for two.",
        "Image": "https://tmsimg.fancybits.co/assets/p12464780_b_h9_ab.jpg?w=720\u0026h=540",
        "Categories": ["Episode", "Series"],
        "Genres": ["Documentary", "History", "Science", "Technology"],
        "Tags": ["CC", "HD 1080i", "HDTV", "Stereo"],
        "SeriesID": "185155",
        "ProgramID": "EP001031150909",
        "SeasonNumber": 21,
        "EpisodeNumber": 1,
        "Cast": ["Adam Richman"],
        "ReleaseYear": 2021,
        "Raw": {
            "startTime": "2021-08-11T20:00Z",
            "endTime": "2021-08-11T21:00Z",
            "duration": 60,
            "channels": ["758"],
            "stationId": "88545",
            "qualifiers": ["CC", "HD 1080i", "HDTV", "Stereo"],
            "ratings": [{
                    "body": "USA Parental Rating",
                    "code": "TVPG"
                }
            ],
            "program": {
                "tmsId": "EP001031150909",
                "rootId": "20256208",
                "seriesId": "185155",
                "entityType": "Episode",
                "subType": "Series",
                "title": "Modern Marvels",
                "titleLang": "en",
                "episodeTitle": "Adventure Machines",
                "episodeNum": 1,
                "seasonNum": 21,
                "releaseYear": 2021,
                "releaseDate": "2021-07-25",
                "origAirDate": "2021-07-25",
                "descriptionLang": "en",
                "shortDescription": "The factory where Yamaha makes ATVs, WaveRunners and more; amusement park Diggerland USA.",
                "longDescription": "Adrenaline runs high when Adam Richman visits the factory where Yamaha makes ATVs, WaveRunners and more; an inside look at a company built to get people sky-high in paramotors; amusement park Diggerland USA; mech-suits; submarine built for two.",
                "topCast": ["Adam Richman"],
                "genres": ["Documentary", "History", "Science", "Technology"],
                "preferredImage": {
                    "uri": "https://tmsimg.fancybits.co/assets/p185155_b_h9_ay.jpg?w=720\u0026h=540",
                    "height": "540",
                    "width": "720",
                    "primary": "true",
                    "category": "Banner-L1",
                    "text": "yes",
                    "tier": "Series"
                }
            }
        }
    },
    "ChannelNumber": "758",
    "DeviceID": "1323AADB",
    "UpdatedAt": 1646342845688,
    "Version": 1,
    "JobTime": 1628712000,
    "JobDuration": 3630,
    "SignalStats": {
        "SS": {
            "Initial": 88,
            "Last": 89,
            "Min": 88,
            "Max": 90,
            "Sum": 320902,
            "GoodCount": 3608,
            "BadCount": 0
        },
        "SNQ": {
            "Initial": 98,
            "Last": 100,
            "Min": 95,
            "Max": 100,
            "Sum": 360614,
            "GoodCount": 3608,
            "BadCount": 0
        },
        "SEQ": {
            "Initial": 0,
            "Last": 100,
            "Min": 0,
            "Max": 100,
            "Sum": 360700,
            "GoodCount": 3607,
            "BadCount": 1
        },
        "BPS": {
            "Initial": 0,
            "Last": 4325504,
            "Min": 0,
            "Max": 6722880,
            "Sum": 14112334304,
            "GoodCount": 3607,
            "BadCount": 1
        },
        "PPS": {
            "Initial": 0,
            "Last": 384,
            "Min": 0,
            "Max": 583,
            "Sum": 1255448,
            "GoodCount": 3607,
            "BadCount": 1
        },
        "TSERR": {
            "Initial": 0,
            "Last": 0,
            "Min": 0,
            "Max": 0,
            "Sum": 0,
            "GoodCount": 3608,
            "BadCount": 0
        },
        "NETERR": {
            "Initial": 0,
            "Last": 0,
            "Min": 0,
            "Max": 0,
            "Sum": 0,
            "GoodCount": 3608,
            "BadCount": 0
        },
        "Grade": {
            "GoodCount": 3608,
            "BadCount": 0
        },
        "NetworkGrade": {
            "GoodCount": 3608,
            "BadCount": 0
        },
        "SignalGrade": {
            "GoodCount": 3608,
            "BadCount": 0
        }
    },
    "CommercialsAligned": true,
    "CommercialDetectSource": "local"
}

So to test if Channels DVR would correctly import its own recording of the Adventure Machines episode, I copied the recorded file to the local content TV import directory of another DVR (that only has a Pluto source) running v2022.03.03.2232.
It automatically mis-matched it.


Same with the Power Tools episode

Not sure if this is an issue with the new Edit Metadata. I did the Edit Metadata on this episode and was able to correct the Season number, but doing that lost the artwork (Airing.Image url removed from recorded file json).
Then doing a Refresh Metadata brought the artwork back (added Airing.Image url).

Before Edit Metadata
Channels Manage Recordings before edit metadata

After Edit Metadata
Channels Manage Recordings after edit metadata

After Edit Metadata and Refresh Metadata
Channels Manage Recordings after edit and refresh metadata

Tried to Refresh Metadata on an OTA episode recorded by Channels DVR (not an import). Received this message in the log:

2022/04/03 11:46:47.776498 [DVR] Refreshing metadata for Arne Dahl (9889033)
2022/04/03 11:46:48.229097 [ERR] Could not find series 9889033: gracenote error 1012: invalid_series_id

Any help? Thanks.

This issue is fixed in v2022.07.22.0154