LifeActor / ykdl

a video downloader focus on China mainland video sites.(一款专注于中国大陆视频网站的视频下载器。)
https://github.com/LifeActor/ykdl
Other
1.45k stars 285 forks source link

B站默认清晰度的问题 #264

Closed mengmo closed 6 years ago

mengmo commented 6 years ago

在提交前,请确保您已经检查了以下内容!

经测试,无论下载还是播放默认选择的都是所有解析出的清晰度的第一项,而非最高清晰度

请将错误输出粘贴在下面:

ykdl -i https://www.bilibili.com/bangumi/play/ep113081
site:                哔哩哔哩 番剧 (Bilibili Bangumi)
title:               Fate/Apocrypha 1.  外典:圣杯大战
artist:              None
streams:
    - format:        HD
      container:     flv
      video-profile: 清晰 480P
      size:          231.8 MiB (243052307 bytes)
    # download-with: ykdl --format=HD [URL]
Real urls:
https://cn-sdjn-cu-v-07.acgvideo.com/vg1/upgcxcode/20/23/19482320/19482320-1-32.flv?expires=1523006700&platform=pc&ssig=FKsT8ywyzLb6sHC18RvDIg&oi=1933341190&nfa=uTIiNt+AQjcYULykM2EttA==&dynamic=1&hfa=2029256761&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=be8f32e8a1bd4049a1d4413a695c3fe7
https://cn-sdjn-cu-v-07.acgvideo.com/vg1/upgcxcode/20/23/19482320/19482320-2-32.flv?expires=1523006700&platform=pc&ssig=imWbKKdyjmIXiJS5lIL37A&oi=1933341190&nfa=uTIiNt+AQjcYULykM2EttA==&dynamic=1&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=be8f32e8a1bd4049a1d4413a695c3fe7
https://cn-sdjn-cu-v-07.acgvideo.com/vg3/upgcxcode/20/23/19482320/19482320-3-32.flv?expires=1523006700&platform=pc&ssig=EndQnScOIFLne3ZDlPAKqw&oi=1933341190&nfa=uTIiNt+AQjcYULykM2EttA==&dynamic=1&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=be8f32e8a1bd4049a1d4413a695c3fe7
https://cn-sdjn-cu-v-07.acgvideo.com/vg2/upgcxcode/20/23/19482320/19482320-4-32.flv?expires=1523006700&platform=pc&ssig=6GcideJDaWQ_LoU_kF3UcA&oi=1933341190&nfa=uTIiNt+AQjcYULykM2EttA==&dynamic=1&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=be8f32e8a1bd4049a1d4413a695c3fe7
    - format:        BD
      container:     flv
      video-profile: 高清 1080P
      size:          336.5 MiB (352797328 bytes)
    # download-with: ykdl --format=BD [URL]
Real urls:
https://cn-hbcd-cu-v-02.acgvideo.com/vg4/c/f3/19482320-1-80.flv?expires=1523006700&platform=pc&ssig=2A85Ukfax-nAyPteG51Akg&oi=1933341190&nfa=VTtnXeacAlS5k6cLdWuWIA==&dynamic=1&hfa=2029256767&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=b8e968edf06c4708a4a7809905047504
https://cn-hbcd-cu-v-02.acgvideo.com/vg4/c/f3/19482320-2-80.flv?expires=1523006700&platform=pc&ssig=gMw3fluvQTMXvXD8WKk9Gw&oi=1933341190&nfa=VTtnXeacAlS5k6cLdWuWIA==&dynamic=1&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=b8e968edf06c4708a4a7809905047504
https://cn-hbcd-cu-v-02.acgvideo.com/vg4/c/f3/19482320-3-80.flv?expires=1523006700&platform=pc&ssig=a1f_xnRbcC3fWWvXe-Htlg&oi=1933341190&nfa=uTIiNt+AQjcYULykM2EttA==&dynamic=1&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=b8e968edf06c4708a4a7809905047504
https://cn-hbcd-cu-v-02.acgvideo.com/vg4/c/f3/19482320-4-80.flv?expires=1523006700&platform=pc&ssig=pAVlmi2nIOI04xmiBUgAog&oi=1933341190&nfa=VTtnXeacAlS5k6cLdWuWIA==&dynamic=1&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=b8e968edf06c4708a4a7809905047504
https://cn-hbcd-cu-v-02.acgvideo.com/vg4/c/f3/19482320-5-80.flv?expires=1523006700&platform=pc&ssig=_s8nxJFIOFuC2KESHuPp3g&oi=1933341190&nfa=VTtnXeacAlS5k6cLdWuWIA==&dynamic=1&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=b8e968edf06c4708a4a7809905047504
    - format:        TD
      container:     flv
      video-profile: 高清 720P
      size:          231.8 MiB (243052307 bytes)
    # download-with: ykdl --format=TD [URL]
Real urls:
https://cn-zjhz-cu-v-02.acgvideo.com/vg4/upgcxcode/20/23/19482320/19482320-1-64.flv?expires=1523006700&platform=pc&ssig=Fiv9SnskxsrVQE7yH6d3hA&oi=1933341190&nfa=uTIiNt+AQjcYULykM2EttA==&dynamic=1&hfa=2029256761&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=0ed4e583be92461f8c3bbc147561c342
https://cn-zjhz-cu-v-02.acgvideo.com/vg4/upgcxcode/20/23/19482320/19482320-2-64.flv?expires=1523006700&platform=pc&ssig=NUYU7HTi1VSiA860AZePLg&oi=1933341190&nfa=uTIiNt+AQjcYULykM2EttA==&dynamic=1&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=0ed4e583be92461f8c3bbc147561c342
https://cn-zjhz-cu-v-02.acgvideo.com/vg2/upgcxcode/20/23/19482320/19482320-3-64.flv?expires=1523006700&platform=pc&ssig=dm0okAiu57Plnq0UWciHGQ&oi=1933341190&nfa=uTIiNt+AQjcYULykM2EttA==&dynamic=1&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=0ed4e583be92461f8c3bbc147561c342
https://cn-zjhz-cu-v-02.acgvideo.com/vg3/upgcxcode/20/23/19482320/19482320-4-64.flv?expires=1523006700&platform=pc&ssig=ocuB1yoNEqYaPCR2ONJqnQ&oi=1933341190&nfa=uTIiNt+AQjcYULykM2EttA==&dynamic=1&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=0ed4e583be92461f8c3bbc147561c342
    - format:        SD
      container:     flv
      video-profile: 流畅 360P
      size:          85.9 MiB (90087380 bytes)
    # download-with: ykdl --format=SD [URL]
Real urls:
https://cn-hnjz-cu-v-01.acgvideo.com/vg4/upgcxcode/20/23/19482320/19482320-1-15.flv?expires=1523006700&platform=pc&ssig=QD4W7IOaLKj53faBdwXf4A&oi=1933341190&nfa=ZGlYLwTu0dW3o1gJGPmYTQ==&dynamic=1&hfa=2029256761&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=f8fe88a10d61463fa599e3ee43353841
https://cn-hnjz-cu-v-01.acgvideo.com/vg4/upgcxcode/20/23/19482320/19482320-2-15.flv?expires=1523006700&platform=pc&ssig=bnrmqZzWxn9a7ceSjaIWpA&oi=1933341190&nfa=ZGlYLwTu0dW3o1gJGPmYTQ==&dynamic=1&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=f8fe88a10d61463fa599e3ee43353841
https://cn-hnjz-cu-v-01.acgvideo.com/vg5/upgcxcode/20/23/19482320/19482320-3-15.flv?expires=1523006700&platform=pc&ssig=zMdgy3OnnLDs0CuIoE_qUw&oi=1933341190&nfa=ZGlYLwTu0dW3o1gJGPmYTQ==&dynamic=1&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=f8fe88a10d61463fa599e3ee43353841
https://cn-hnjz-cu-v-01.acgvideo.com/vg3/upgcxcode/20/23/19482320/19482320-4-15.flv?expires=1523006700&platform=pc&ssig=m89M5aBYrt2TDRXrJbcVzA&oi=1933341190&nfa=ZGlYLwTu0dW3o1gJGPmYTQ==&dynamic=1&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=f8fe88a10d61463fa599e3ee43353841
ykdl -i https://www.bilibili.com/bangumi/play/ep95263
site:                哔哩哔哩 番剧 (Bilibili Bangumi)
title:               最终幻想15 兄弟情 1.
artist:              None
streams:
    - format:        SD
      container:     flv
      video-profile: 流畅 360P
      size:          49.5 MiB (51948256 bytes)
    # download-with: ykdl --format=SD [URL]
Real urls:
https://upos-hz-mirrorks3.acgvideo.com/upgcxcode/42/60/8076042/8076042-1-15.flv?e=ig8euxZM2rNcNbRgnWNVhoMg7W4MhwdEto8g5X10ugNcXBlqNxHxNEVE5XREto8KqJZHUa6m5J0SqE85tZvEuENvNC8xNEVE9EKE9IMvXBvE2ENvNCImNEVEK9GVqJIwqa80WXIekXRE9IB5QK==&deadline=1523005857&dynamic=1&gen=playurl&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&oi=1933341190&os=ks3&platform=pc&rate=129200&trid=a78d88e8dfc34b55a561c64507b86550&uipk=5&uipv=5&um_deadline=1523005857&um_sign=4be8cfa78001f26a3083dbae43d7462f&upsig=825a0505d34b21eabc49c8e1c52bc508
https://upos-hz-mirrorks3.acgvideo.com/upgcxcode/42/60/8076042/8076042-2-15.flv?e=ig8euxZM2rNcNbRV7zRVhoMghWKghwdEto8g5X10ugNcXBlqNxHxNEVE5XREto8KqJZHUa6m5J0SqE85tZvEuENvNC8xNEVE9EKE9IMvXBvE2ENvNCImNEVEK9GVqJIwqa80WXIekXRE9IB5QK==&deadline=1523005857&dynamic=1&gen=playurl&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&oi=1933341190&os=ks3&platform=pc&rate=107100&trid=a78d88e8dfc34b55a561c64507b86550&uipk=5&uipv=5&um_deadline=1523005857&um_sign=edfc90de0c225222ab9ebf4daea183ff&upsig=67c3b3799893eb7c77f21b9e01f6c787
    - format:        BD
      container:     flv
      video-profile: 高清 1080P
      size:          162.9 MiB (170805733 bytes)
    # download-with: ykdl --format=BD [URL]
Real urls:
https://cn-hbcd-cu-v-05.acgvideo.com/vg4/3/c9/8076042-1.flv?expires=1523005800&platform=pc&ssig=u0giIXsaUjldr-FlGAxsjQ&oi=1933341190&nfa=VTtnXeacAlS5k6cLdWuWIA==&dynamic=1&hfa=2029272216&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=5e0bf42ecdd3458eb25564fedce3549d
https://cn-hbcd-cu-v-05.acgvideo.com/vg4/3/c9/8076042-2.flv?expires=1523005800&platform=pc&ssig=tqK0h62qb5oljVvJoLhvZg&oi=1933341190&nfa=BpfiWF+i4mNW8KzjZFHzBQ==&dynamic=1&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=5e0bf42ecdd3458eb25564fedce3549d
    - format:        TD
      container:     flv
      video-profile: 高清 720P
      size:          114.6 MiB (120153143 bytes)
    # download-with: ykdl --format=TD [URL]
Real urls:
https://cn-sdyt-cu-v-07.acgvideo.com/vg4/b/1e/8076042-1-64.flv?expires=1523005800&platform=pc&ssig=Yzd0kd6V0Vg_9U0b7ZD_Gg&oi=1933341190&nfa=BpfiWF+i4mNW8KzjZFHzBQ==&dynamic=1&hfa=2029272221&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=fbf0971275c24b3faf53254309d21174
https://cn-sdyt-cu-v-07.acgvideo.com/vg4/b/1e/8076042-2-64.flv?expires=1523005800&platform=pc&ssig=OzObVkuCLpJbl6mdj4LMJw&oi=1933341190&nfa=uTIiNt+AQjcYULykM2EttA==&dynamic=1&hfb=Yjk5ZmZjM2M1YzY4ZjAwYTMzMTIzYmIyNWY4ODJkNWI=&trid=fbf0971275c24b3faf53254309d21174

如果您有其他附言,例如问题只在某个视频发生,或者是一般性讨论或者提出新功能,请在下面添加:

[您的内容]

SeaHOH commented 6 years ago

改的时候没注意,主要是我自己遇不到。。。 之前提过一个 #205 可以解决这个问题,不需要单独为每个 extractor 排序。