I'm using tinyMediaManager 5.3.5 and trying to automate the processing of newly downloaded TV episodes through the HTTP API.
My goal is to update and scrape only a specific episode, rather than processing the entire TV series.
I know that I can combine an update action with scrape using scope=new. This works, but there's a performance issue with long-running series.
For example, The Simpsons has 38 seasons, and updating the series takes approximately 2 minutes and 20 seconds, even when I've added just one episode, and that's without scrapping.
I've already tested update and scrape with scope=path:
- TV show root directory: Works, but processes the series rather than targeting a single episode.
- Season directory: Does not work for selecting individual episodes.
- Episode MKV file path: Does not work either.
update followed by scrape with scope=new**:** Works correctly, but requires updating the entire series first and scraps all tv show after that... takes a lot of time.
For example, I tried:
curl -d '[
{
"action": "scrape",
"scope": {
"name": "path",
"args": [
"/storage/HD_03_24TB/VIDEOS/SERIES/Simpsons (1989)/Season 38/The.Simpsons.S38E05.Testing.1-2-3.1080p.DSNP.WEB-DL.DDP5.1.H.264-SiGLA.mkv"
]
}
}
]' \
-H "Content-Type: application/json" \
-H "api-key: MY_API_KEY" \
-X POST http://localhost:7878/api/tvshow
The API responds with "commands prepared", but no episode scraping task is actually started.
Interestingly, the tinyMediaManager GUI can scrape this exact episode individually in just a few seconds, so the underlying functionality clearly exists.
My questions are:
- Is there an HTTP API action or scope that allows scraping a single episode by its file path, once it has already been imported into the tMM database by an update? (like "action": "scrape.episode" or something like just accepting episode os season path)
- Is there any way to update only a specific episode or season directory without scanning the entire series? (like "action": "update.season" or something like just accepting episode os season path)
- Is there an undocumented API action, such as
scrape_episode, or another supported way to trigger the same individual episode scraping operation available in the GUI?
I'm integrating tMM with my media server to automatically process newly added episodes, so avoiding a full-series scan for every new episode would make a significant difference.
Any help or suggestions would be greatly appreciated. Thanks!