src/streamlink/plugins/huomao.py
def get_stream_info(self, html):
        """
        Returns a nested list of different stream options.

        Each entry in the list will contain a stream_url and stream_quality_name
        for each stream occurrence that was found in the JS.
        """
        stream_info = stream_info_pattern.findall(html)

        if not stream_info:
            self.logger.error("Failed to extract stream_info.")

        # Rename the "" quality to "source" by transforming the tuples to a
        # list and reassigning.
        stream_info_list = []
        for info in stream_info:
            if not info[1]:
                stream_info_list.append([info[0], "source"])
            else:
                stream_info_list.append(list(info))

        return stream_info_list
def get_stream_info(self, html):
        stream_info = stream_info_pattern.findall(html)

        if not stream_info:
            self.logger.error("Failed to extract stream_info.")

        # Rename the "" quality to "source" by transforming the tuples to a
        # list and reassigning.
        stream_info_list = []
        for info in stream_info:
            if not info[1]:
                stream_info_list.append([info[0], "source"])
            else:
                stream_info_list.append(list(info))

        return stream_info_list
def get_stream_info ( self , html ) : stream_info = stream_info_pattern . findall ( html ) if not stream_info : self . logger . error ( "Failed to extract stream_info." ) # Rename the "" quality to "source" by transforming the tuples to a # list and reassigning. stream_info_list = [ ] for info in stream_info : if not info [ 1 ] : stream_info_list . append ( [ info [ 0 ] , "source" ] ) else : stream_info_list . append ( list ( info ) ) return stream_info_list
Returns a nested list of different stream options.

        Each entry in the list will contain a stream_url and stream_quality_name
        for each stream occurrence that was found in the JS.
Returns a nested list of different stream options .