RSS播客图稿大小

时间:2019-04-19 13:20:05

标签: rss podcast

该网站上有一个播客:https://www.glennbeck.com/st/podcast

播客网址为:https://www.omnycontent.com/d/playlist/dae91041-9dd4-4374-af8e-a6bf00316af9/aede72ea-179a-46e5-9750-a6bf0031b61b/4a1f7d07-df68-4093-909a-a8c001540eb4/podcast.rss

这是播客中的图片之一

class Solution:
    def findDiagonalOrder(self, matrix: 'List[List[int]]') -> 'List[int]':
        from collections import deque 

        if(len(matrix) == 0 or len(matrix[0]) == 0):
            return []

        if(len(matrix) == 1):
            return matrix[0]

        res = []
        if(len(matrix[0]) == 1):
            for row in matrix:
                res+=row
            return res  

        r, c = 0, 0
        root = (r, c)
        rows, cols = len(matrix), len(matrix[0])  
        step = 0
        queue = deque([root]) 
        left = []
        #forwards 
        while queue and step < rows:
            step += 1
            size = len(queue)

            for _ in range(size):
                r, c = queue.popleft()
                left.append(matrix[r][c])

            if r == 0:
                level = [(i, step -i) for i in range(step+1)] #(r, c+1)
            elif c == 0:
                level = [(step-i, i) for i in range(step+1)]             
            queue += level 
            #logging.debug(f"queue: {queue}")
            #logging.debug(f"left: {left}")
            #raise Exception

        #backwords 
        step = 0
        queue = deque([root]) 
        right  = []
        #forwards 
        while queue and step < rows-1:
            step += 1
            size = len(queue)

            for _ in range(size):
                r, c = queue.popleft()
                right.append(matrix[rows-r-1][cols-c-1])

            if r == 0:
                level = [(i, step -i) for i in range(step+1)] #(r, c+1)
            elif c == 0:
                level = [(step-i, i) for i in range(step+1)]             
            queue += level 
            #logging.debug(f"queue: {queue}")
            #logging.debug(f"right: {right}")
            #raise Exception
        right.reverse()
        res = left + right 
        return res 

您会注意到size = Large附加在图片网址上。

但是,如果我查看此页面https://www.glennbeck.com/st/podcast的页面源,我可以看到他们在播客播放器中使用了此类链接:

https://omny.fm/shows/the-glenn-beck-program/ep-32-arthur-brooks-the-glenn-beck-podcast/image.jpg?t=1555110901&size=Small

notice size =图片网址很小

他们从哪里得到这样的图像大小的信息?我没有在上方的播客网址中看到此信息。

0 个答案:

没有答案