Python has a library just to deal with paths. I would find some other way to deal with the output than to print the id.
from pathlib import Path
from tmdbv3api import TMDb
from tmdbv3api import TV
tmdb = TMDb()
tv = TV()
mkv_files = Path('.').glob('*.mkv')
for mkv_file in mkv_files:
show = tv.search(mkv_file.stem)
for result in show:
print(result.id)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…