Sometimes especially when using content manager apps, such as Fusion, Omni, or Stremio, the filenames are not in a consistent format or a supported metadata extraction format. Additionally it would make sense to use the ID directly instead of data from TMDB > file > Infuse > search for metadata based on file name. What I’m proposing is a parameter for the TMDB ID for movies and also season and episode number for shows. Then simply instead of using the TMDB /search API endpoint (or whatever is currently being used) it would simply directly query the details with the given ID. For shows in order to find the episode a season and episode number would be given also as a parameter. For example:
infuse://x-callback-url/play?
x-success=some-app://x-callback-url/playbackDidFinish&
x-error=some-app://x-callback-url/playbackDidFail&
url=http://192.168.162.100/Movies/movie.mkv&tmdb=574475
And for a show:
infuse://x-callback-url/play?
x-success=some-app://x-callback-url/playbackDidFinish&
x-error=some-app://x-callback-url/playbackDidFail&
url=http://192.168.162.100/Movies/movie.mkv&tmdb=119051&season=2&episode=4