Posted: Fri May 18, 2012 5:51 pm Post subject: Move after transfer, suppress empty folders, and more
First off let me say how happy I am that I found pyTivo and what an awesome tool it is. I have have had the DirecTV series 2 Tivo since it was released and loved it and it's hacks. I have been move to over the air TV and downloadable media so I picked up a TiVo Premiere. The TiVo Premiere + pyTivo gives me everything I need.
Here are a few features I have added to pyTivo locally:
I started with the lucasnz branch.
- Move videos after they are transferred.
For TV shows I prefer for them to be gone after I watch them so I move them off to another directory after the transfer is complete to be archived or deleted.
-Suppress empty folders
Since I move shows after I watch them I end up with empty folders. It required some work, but I was able to get it working. I had to move the work of getting the item count to plugin.py:get_files, so I added an item in the FileData class to store the value so it can be used by video.py to get the item count. This all worked great except file changes were not getting picked up. For this I build a cache of all the directories so I can check the last modified time. (I also do this for the recursive cache instead of using the a timeout. It said 300.. not sure if is was seconds or what)
I have a movies folder and inside that I have each movie in it's own folder. I wanted this share to always be a flat listing with no folders so I added a share option force_flat=true that can support this.
So my question is would anyone else be interested in these changes? I can make them all optional so they can be enabled/disabled. I didn't really want to manage my own branch, but I might have to in order to stay up to date.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum