def change_TV_DOWNLOAD_DIR(tv_download_dir):
 if (tv_download_dir == ''):
  sickbeard.TV_DOWNLOAD_DIR = ''
  return True
 if (ek(os.path.normpath, sickbeard.TV_DOWNLOAD_DIR) != ek(os.path.normpath, tv_download_dir)):
  if helpers.makeDir(tv_download_dir):
   sickbeard.TV_DOWNLOAD_DIR = ek(os.path.normpath, tv_download_dir)
   logger.log((u'Changed TV download folder to ' + tv_download_dir))
  else:
   return False
 return True

def change_TV_DOWNLOAD_DIR ( tv_download_dir ) : if ( tv_download_dir == '' ) : sickbeard . TV_DOWNLOAD_DIR = '' return True if ( ek ( os . path . normpath , sickbeard . TV_DOWNLOAD_DIR ) != ek ( os . path . normpath , tv_download_dir ) ) : if helpers . makeDir ( tv_download_dir ) : sickbeard . TV_DOWNLOAD_DIR = ek ( os . path . normpath , tv_download_dir ) logger . log ( ( u'Changed TV download folder to ' + tv_download_dir ) ) else : return False return True
change tv_download directory .