… so I didn't know in what subforum to post it.. ;)
Hi,I have some media that I would like to organise as fake "TV Shows" and to which I'd like to retrieve the (easily available) meta-data. (Each file has a 4-digit ID in its name which I can use as paramter for an URL to load a website where I can parse all the data I need.)
I studied many of the existing Python-scripts and got some basic understanding of how it works. I'm not too fluent in Python, but have no problem reading and understanding it.
What I was not able to achieve so far, however, is an understanding of the way a file takes through PMS in that much detail that would enable me to even know where to begin debugging when my code does not behave as I would expect it from comparing it to the pre-installed agents/scanners - it's just too complex. There seems to be no documentation of anything that has to do with the process, the objects I need work with, the methods I have to implement and so on.
So, in a nutshell, what I was trying to achieve so far:
Write a scanner, that simply accepts every file, and then passes the file name on to the meta-data agent. There, after some regexing and website-parsing, I want to set episode title, season and episode number, and maybe description and thumbnail.
Neither scanner nor meta-data agent need to be very smart, as they won't have to handle generic content and it is ensured beforehand that every file will have the ID in it's filename, which is everything I need.
From how I understood the scanners/agents I studied so far, it seems to me, that that should be doable in about 30 to 50 lines of code alltogether. But I was not able to get the scanner working - at least I think so. I also was not able to figure out how to "create" a new TV episode object in the meta-data agent and fill it with any sample data just for testing purposes.
Any help would be greatly appreciated!
