I rewritten the code in more optimized and better way, i maked a pull request.
Link of the fork: GitHub - XenoS-ITA/stv-dumpster