code: def __SetTotal(self, info):
          
          if 'content-range' in info:
              _, _, total = info['content-range'].rpartition('/')
              if total != '*':
                  self.__total_size = int(total)
          # Note "total_size is None" means we don't know it; if no size
          # info was returned on our initial range request, that means we
          # have a 0-byte file. (That last statement has been verified
          # empirically, but is not clearly documented anywhere.)
          if self.total_size is None:
              self.__total_size = 0
docs: Sets the total size based off info if possible otherwise 0.