2017-09-05, 15:19
Axlt,
if this will help, there is my perl https://pastebin.com/QGEbXiqk
I use two profiles, with separate mysql databases, this perl script works directly on SQL.
There are two parts - first for tvshows, second for episodes.
For episodes is other method: find with tvdb id of episode, then external_ids with tmdb_id of tvshow (not tmdb episode id), season and episode number.
This is place for optimization - if we have tmdb_id from tvshow checking (saved in uniqueid field next to IMDB ID) then we can call for external_ids directly.
if this will help, there is my perl https://pastebin.com/QGEbXiqk
I use two profiles, with separate mysql databases, this perl script works directly on SQL.
There are two parts - first for tvshows, second for episodes.
For episodes is other method: find with tvdb id of episode, then external_ids with tmdb_id of tvshow (not tmdb episode id), season and episode number.
This is place for optimization - if we have tmdb_id from tvshow checking (saved in uniqueid field next to IMDB ID) then we can call for external_ids directly.