Posts: 173
Joined: Jan 2012
Reputation:
12
This last one seems easy enough. I notice that the os.path.normpath function on line 519 incorrectly removes one of the forward slashes of the smb:// protocol indication. Could you try commenting that line out and report back to me if it works?
Posts: 173
Joined: Jan 2012
Reputation:
12
Okay that might be the cause of your issue. When checking for disk space on Windows I convert the path to a UNC format, since the C function that checks disk space only accepts such paths. I was hoping the statvfs method would not care for missing credentials, but I was wrong. Also, XBMC doesn't give me these credentials straight away from the file path, so it cannot use them without you manually specifying them. You can do this by mounting the network location right from within XBMC:
When you add a new source to XBMC and select Browse, you have the option to select "Add network location..." Please fill in the credentials as well as server name and share location, selecting Windows Network (SMB) as the protocol. If you've done all that, please try the disk space checks once more and post your findings here.
Posts: 173
Joined: Jan 2012
Reputation:
12
Thanks for the update, I forgot to tell you I'm looking into this. It appears to have to do with the mounting of the drive as I expected. Apparently asking for the disk space on smb://BT/D/ is not valid. It needs to be checked on the mount point, but since XBMC uses an internal mounting system it might be a bit harder than I thought.
Posts: 48
Joined: Oct 2013
Reputation:
0
When selecting what volume to measure space left, it only lets me view special:// folders. Only some of them are populated.
Media is not populated, which is where I would presume to find my USB disc mounted at /media/username/, so I would guess that it is not linked to that location.
Root is also not populated which i presume would house the contents of /
Posts: 13
Joined: Dec 2012
Reputation:
0
is possible to delete only tv shows and only the previous season?
if some series was season 10 script can delete season 9... is that possible??
thanks
Posts: 173
Joined: Jan 2012
Reputation:
12
It is possible with a workaround, yes. If you have the show in season folders on your hard drive, you can exclude the folder for the latest season from deletion. Keep in mind you can only have up to three excluded paths however, so this is not possible for every show you have. It would be a lot of work to implement this, and it will cause a lot of disk scans to find out if the episode to be deleted is in the latest season or not.
Posts: 3
Joined: Dec 2013
Reputation:
0
Hi, I was wondering, do you have an option of instead remove the file it can be moved to another directory? I want to have a "main" directory clean and have a Archive directory for old files
Posts: 147
Joined: Dec 2008
Reputation:
0
2014-02-01, 15:47
(This post was last modified: 2014-02-01, 15:48 by zackpliskin.)
Is there any way to set this script to prompt for deletion ONLY after watching videos in certain folder(s)? I was hoping to easily add a TiVo style "delete after watching" feature to folders that aren't in the library, i.e. stuff I've backed up from my old satellite based DVR. Just something that would pop up a delete option via any skin's default Yes/No dialogue XML.
Posts: 19
Joined: Sep 2010
Reputation:
0
Would it be possible to add the feature to move the destination folder for watched shows / movies to separate locations rather than all going to one folder...
Since I store my movies & TV shows on different drives this creates quite an overhead of work for my drives as it currently stands.
Thanks and keep up the great work!
Posts: 173
Joined: Jan 2012
Reputation:
12
It might be, but at the moment I do not have the slightest idea how that would have to be implemented. Maybe I could create a setting that allows you to manually type in a relative path that will hold the watched videos, but I'm not sure how this affects other settings like disk space checks. I plan to implement a few of the most requested features for the Gotham release, but I'm afraid this will probably have to wait a bit longer.