2017-11-20, 23:19
I have an original AppleTV that Apple has dropped support for since iTunes 12.7. I have loaded a custom build for the AppleTV located here: https://forum.kodi.tv/showthread.php?tid=313407
I have written a script that pulls all metadata out of the .mp4 along with the posterart, parses the iTunes.xml to get a list of unwatched Movies and TV Shows (included in the nfo file) puts them in separate folders on my mac, and optionally, uploads any new movies and nfo/png files to the AppleTV. I then scan the media and everything is imported exactly how I want.
Here is my problem, I only use this AppleTV to take my media with me when I travel. Therefore, I need to run my script to get the new media over to it and build the new NFO. The issue comes in if I've watch a movie via iTunes. Next time I run the script it will pick that up and tag the NFO file correctly, BUT how do I get Kodi to read it? Basically, when I run my script, I want a way to delete everything Kodi knows about the previous scan. I want it to remember the media folder, but I want it to re-read ALL NFO files. Preferably, I would only want to rescan movies (or rescan TV Shows if that's what I need). Ultimately, I'd be happy if it rescanned all media types (movies and tv shows).
How do I accomplish this? Any way to do it from a python script from my mac?
Thanks. Brian
I have written a script that pulls all metadata out of the .mp4 along with the posterart, parses the iTunes.xml to get a list of unwatched Movies and TV Shows (included in the nfo file) puts them in separate folders on my mac, and optionally, uploads any new movies and nfo/png files to the AppleTV. I then scan the media and everything is imported exactly how I want.
Here is my problem, I only use this AppleTV to take my media with me when I travel. Therefore, I need to run my script to get the new media over to it and build the new NFO. The issue comes in if I've watch a movie via iTunes. Next time I run the script it will pick that up and tag the NFO file correctly, BUT how do I get Kodi to read it? Basically, when I run my script, I want a way to delete everything Kodi knows about the previous scan. I want it to remember the media folder, but I want it to re-read ALL NFO files. Preferably, I would only want to rescan movies (or rescan TV Shows if that's what I need). Ultimately, I'd be happy if it rescanned all media types (movies and tv shows).
How do I accomplish this? Any way to do it from a python script from my mac?
Thanks. Brian