Hi,
I’ve been working on a agent which downloads posters/background in a zip file (~120MB) to memory and then processes it and then adds them.
Here’s the relevant code http://pastebin.com/DQ4yL8Cu in the update function.
The issue is that i have a ton of pics (maybe ~500 pics per movie), and when i iterate through the entire zip file and add them it works, but the memory used by my plug-in begins to increase every time i run it.
I have narrowed down the issue to the the statement that adds the metadata,
metadata.posters[pics]=Proxy.Media(zip_archive[pics], sort_order = pcount) metadata.art[pics]=Proxy.Media(zip_archive[pics], sort_order = acount)
If I leave everything as is and just comment out those lines the memory issue is gone.
Is there anyway I can force the metadata to be written to disk and then deleted from memory?
Can anyone here help me?
Thanks,