There's quite a lot to take in with arb's TMDB scripts.
I don't claim to understand all the technical details at this stage, but here are a few observations stemming from initial try out anyway.
Search by year
One limitation of using TMDB's general multi search query, as opposed to more specific movie search or TV search queries, is that multi search doesn't take a year parameter.
I mentioned in an earlier post on this thread that Sweder's original movie script assumes the filename contains search information, but uses only one item, the film title (after year digits are stripped out) [SearchBy]=$regexp(%_filename%,\(\d+\),)
In the context of searching for TV series, I recommended sourcing series title and year in [SearchBy] criteria directly from Mp3tag fields [SearchBy]=Series||%title%||%s||Year||%year%||&year=%s
To clarify, I think including the option to search by year is useful with movies too.
If anything, I'd say even more so than TV series.
Note that TMDB's movie search and TV search APIs both include two sets of searchable year dates.
With TV search you can look specifically for the first air date year, or you can search any year (the first air date and all episode air dates).
With movie search you can search on primary release year or simply year.
TMDB don't really describe how year search differs from primary release year search for movies, but my preference is to search on primary release year.
I've thus modified my own personal copy of Sweder's original TheMovieDB.com (v 1.0).src script to include primary release year in [SearchBy] as follows:
[SearchBy]=Title||%title%||%s||Year||%year%||&primary_release_year=%s
For example, a search by title "Treasure Island" + primary release year "1950" takes you straight to that version of the movie.
By contrast, TMDB multi search on "Treasure Island", with no option to search by year, lists 20 results (with a range of release dates) from which to choose, including TV series as well as movies.
The iconic 1950 film is listed down in sixth place.
Even if movie search inclusion of primary release year doesn't take you straight to the detail, you should at least get a clearer list of search results.
For example, "Star Wars" + "1977" lists only two results: "Star Wars" (released 1977-05-25), and "The Making of Star Wars" (released 1977-09-16).
Whereas search for "Star Wars" on its own (without year specification) lists 20 results, of which "The Making of Star Wars" isn't even included (suggesting the list of returned results simply maxes out at 20).
Episode number
I note that episode number isn't sourced from %tvepisode%.
The [SearchBy] criteria 'triple' definition for episodes in arb's "TMDB#Search or ID.src" is given as: Episodes||||&episodes=%s
I wasn't sure why the middle term of the triple (the source field) was left blank.
MP4-centric scripts
The scripts seem to be focused on MP4 format video.
At least, they do to me, as my focus is very much on MKV format files.
For example, if I use "TMDB#Search or ID.src" to tag a TV show episode, then I end up with series title in TVSHOW and episode name in TITLE.
TVSHOW isn't an official Matroska tag.
As well as being MKV-centric, my focus is very Windows-centric too.
Thus, for me, it makes more sense to output TMDB's TV episode name to SUBTITLE, since Windows readily displays that as Episode name for MKV files.
Similarly, arb's scripts create WRITER, whereas the official Matroska tag is WRITTEN_BY, which Windows displays as Writers.
This isn't a criticism of arb's scripts particularly. It's more of an observation.
It would be difficult to come up with scripts to tag both MP4 and MKV in an entirely consistent manner, as the two sets of tags are quite different.
This is just a heads up to others really. - Regardless of whether you're starting with Sweder's original movie script or using arb's multi purpose one, be prepared to have to modify the code in order to get TMDB API retrieved values mapping to tags exactly the way you want.