def stream_position(self):
        blobs = self.download_manager.blobs
        if not blobs:
            return 0
        else:
            newest_known_blobnum = max(blobs.iterkeys())
            position = newest_known_blobnum
            oldest_relevant_blob_num = (max(0, newest_known_blobnum - self.max_before_skip_ahead + 1))
            for i in xrange(newest_known_blobnum, oldest_relevant_blob_num - 1, -1):
                if i in blobs and (not blobs[i].is_validated() and not i in self.provided_blob_nums):
                    position = i
            return position
dataset/ETHPy150Open lbryio/lbry/lbrynet/lbrylive/client/LiveStreamProgressManager.py/LiveStreamProgressManager.stream_position/original