Closed brijazz closed 5 months ago
I would suggest using media remap to manually specify the correct information for that file path(s).
See wiki https://github.com/iamkroot/trakt-scrobbler/wiki/Metadata-Remap
If that doesn't work, there have been other comments over the years with similar situations. Try searching though the github issues.
Looking closer, trakt search has matched the incorrect show (this one https://trakt.tv/shows/after-midnight) instead of https://trakt.tv/shows/after-midnight-2024
I would first delete the entry from trakt_cache.json (would be present next to log files) and then use trakts search
to find the correct ID manually. You can edit the json file now to set the correct ID. OR you can specify the ID in Metadata Remap TOML file. #214
Thanks for checking in. Here are the steps I've now taken:
1) deleted "After Midnight2021": 220005
from trakt_cache.json
2) used trakts search
to find the correct ID
3) added "After Midnight2024": 219964
to trakt_cache.json
I then restarted the scrobbler - but that didn't seem to fix the issue. So, I reverted the changes in trakt_cache.json and tried to go the TOML route:
1) I created a file called remap_rules.toml at ~/.config/trakt-scrobbler (where config.yaml lives) 2) Inside the TOML file I added this:
[[rules]]
# specify which media you want to override
match.title = "After Midnight"
# now, specify the override
type = "episode"
id.trakt_slug = "after-midnight-2024" # (got the slug from url)
This didn't seem to resolve anything either. The latest log entry reads:
2024-03-20 10:58:24,832 - DEBUG - scrobbler - scrobbler - Scrobbling stop at 25.11% for After Midnight
2024-03-20 10:58:24,896 - WARNING - scrobbler - utils - Request failed
2024-03-20 10:58:24,896 - DEBUG - scrobbler - utils - Request: post {'url': 'https://api.trakt.tv/scrobble/stop', 'headers': {'Content-Type': 'application/json', 'trakt-api-key': 'ab0133a2365b2c64d70fd2adf3c7e775a4131471b56340933335af1b94785a3a', 'trakt-api-version': '2', 'Authorization': 'Bearer 56db4a2e4a922f83a7be95614de095e3b80032d8ddafd69486d0352bc9dfeed1'}, 'json': {'show': {'ids': {'trakt': 220005}}, 'episode': {'season': 1, 'number': 31}, 'progress': 25.11}, 'timeout': 30}
2024-03-20 10:58:24,896 - DEBUG - scrobbler - utils - Response: <Response [404]>
2024-03-20 10:58:24,897 - WARNING - scrobbler - trakt_interface - Not found on trakt. The media info is incorrect.
2024-03-20 10:58:24,897 - WARNING - scrobbler - scrobbler - Scrobble unsuccessful. Discarding it.
Any other suggestions?
Note that you need to restart the scrobbler after the TOML change too. I'm guessing you've done that.
shows
? If so, I'm surprised that it contains the year (2021/2024) in the key field.match.title
is not being applied for some reason. I'd try replacing that with match.path
, which is a regex for the file path.Yes, I restarted the scrobbler after the TOML change.
1) Yes, the entry is under shows. I have a number of shows listed there, all of which have the year in the field:
"show": {
"Moon Knight2022": 151840,
"Mr. Mayor2021": 162199,
"Dicktown2020": 163913,
"The Chase2021": 171467,
"Roar2022": 175015,
}
2) No references to match.title in the log. Changing match.title to match.path has no effect.
Update: I edited the .json, but this time left the title as 'AfterMidnight2021' (instead of using 2024) and changed the ID to 219964 (as per the lookup results). That seems to be working now - no TOML needed.
Closing, looks like it is fixed.
FYI, I just had the same issue with a show called "The 1% Club (US)" and was able to fix it using the same method as in my last post.
Discussed in https://github.com/iamkroot/trakt-scrobbler/discussions/278