2010-02-04, 00:01
OK tested all three scenarios - all failed. Went back to original code - echo'ed out the values in the check perms subroutine - all were clearly the right values - so your variables were always passed correctly internally.
Went back to looking at the first if statement - which was where the problem seemed to be to me. In the version I have, first "if" reads
Which I now understands, if there is no disk space, and the file size is not zero, and the file size is smaller than the available disk space, then excute. This can obviously never be true.
Changed it to invert the test on the file system - i.e. if there is space
which is more logical - now works as expected!
I would guess that I had hacked it, broke it and had lousy tracking (all of which I am liable to do) if Watson540 wasn't experiencing the same problem. Is it worth checking what's posted? The version info on mine is
To my three problems
1. OK, so being on TvDB is not enough, it has to be an episode of a season of a show, OR a movie - if its a one off show - tough - until your NFO code is ready.
2. As I feared - so, let me know if you want to try your NFO code out on a guinea pig, I'd be happy to help. I can run this just against the sports events which only I care about so no one else impacted.
It seems to me for both 1 and 2, an NFO with show name, episode (though nothing in 1), plot and original airdate could all be obtained from the Myth database- and a file so named would ensure uniqueness. The only thing missing would be specific art info - which for saved shows, personally I'd be happy to manually edit, for time shifted shows - I don't care. I also appreciate I'm not doing the work, so this is my wish list!
3. Cleaned out the directories, I record Daily Show and Colbert Report nightly - both of which failed last night once I upgraded. I just tested a show that should have failed, and worked - so I expect this to work.
Very good - things are moving along really nicely with mythicalLibrarian - thanks for writing this! Please do let me know if you want some testing help on the NFO stuff. I may look at it myself - but I know my scripting skills are pretty poor.
Went back to looking at the first if statement - which was where the problem seemed to be to me. In the version I have, first "if" reads
Code:
if [ "$2" = "" ] && [ "$1" != "" ] && [ $1 -lt $2 ]; then
Changed it to invert the test on the file system - i.e. if there is space
Code:
if [ "$2" != "" ] && [ "$1" != "" ] && [ $1 -lt $2 ]; then
which is more logical - now works as expected!
I would guess that I had hacked it, broke it and had lousy tracking (all of which I am liable to do) if Watson540 wasn't experiencing the same problem. Is it worth checking what's posted? The version info on mine is
Code:
#! /bin/bash
#mythicalLibrarian by Adam Outler
#Wed, 29Jan2010 2155
#email: [email protected]
#Software the way it should be: Free and Open Source
#Please contact me with any bug reports
#Tech Support: http://forum.xbmc.org/showthread.php?p=470402#post470402
#Feature Request: http://forum.xbmc.org/showthread.php?tid=65769
To my three problems
1. OK, so being on TvDB is not enough, it has to be an episode of a season of a show, OR a movie - if its a one off show - tough - until your NFO code is ready.
2. As I feared - so, let me know if you want to try your NFO code out on a guinea pig, I'd be happy to help. I can run this just against the sports events which only I care about so no one else impacted.
It seems to me for both 1 and 2, an NFO with show name, episode (though nothing in 1), plot and original airdate could all be obtained from the Myth database- and a file so named would ensure uniqueness. The only thing missing would be specific art info - which for saved shows, personally I'd be happy to manually edit, for time shifted shows - I don't care. I also appreciate I'm not doing the work, so this is my wish list!
3. Cleaned out the directories, I record Daily Show and Colbert Report nightly - both of which failed last night once I upgraded. I just tested a show that should have failed, and worked - so I expect this to work.
Very good - things are moving along really nicely with mythicalLibrarian - thanks for writing this! Please do let me know if you want some testing help on the NFO stuff. I may look at it myself - but I know my scripting skills are pretty poor.