Idk if this is actually a good idea, but I would try using a media server like mediatomb to index the files and serve them to Kodi. It's been a while so I don't remember if it was mediatomb that did the organization or not.
Linux
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
The real answer is organize your library. There's no reason to have it like that.
At least create two folders "Movies" and "TV Shows" or however you want to name them. Put movies in the movies sub-folder, ideally in named folders that match the name of the movie (so Movies/The Godfather (1972)/moviefile.mkv) and TV shows in the other folder again with a subfolder for each show with year included.
The best way to do this is to use a media manager when adding files. Something like mediaelch or tiny media manager and scrape your films and ideally tv shows as well and create local metadata for them that you save. Both can do renaming though tmm does it slightly better if you pay for the subscription version and it can automatically scrape and rename your library along with creating the relevant nfo files and things like posters so Kodi just works.
I guess you could try connecting Kodi to another service. If you're okay running Plex on some other machine or Jellyfin you can connect Kodi to that if they scrape it all properly but most likely they'll have issues as well because the only real solution is organizing your library. There are paid tools as I mention as well as free ones. Filebot is another paid tool that does organization and such.