iawia002 / lux

👾 Fast and simple video download library and CLI tool written in Go
MIT License
27.79k stars 3k forks source link

[download fail]: bilibili #1100

Open gonejack opened 2 years ago

gonejack commented 2 years ago

下载B站的iframe外链失败

lux 'https://player.bilibili.com/player.html?aid=455558656&bvid=BV1iY4y1B7Ph&cid=187499214&page=1'

Downloading https://player.bilibili.com/player.html?aid=455558656&bvid=BV1iY4y1B7Ph&cid=187499214&page=1 error:
this page has no playlist
github.com/iawia002/lux/extractors/bilibili.getMultiPageData
    github.com/iawia002/lux/extractors/bilibili/bilibili.go:158
github.com/iawia002/lux/extractors/bilibili.extractNormalVideo
    github.com/iawia002/lux/extractors/bilibili/bilibili.go:168
github.com/iawia002/lux/extractors/bilibili.(*extractor).Extract
    github.com/iawia002/lux/extractors/bilibili/bilibili.go:300
github.com/iawia002/lux/extractors.Extract
    github.com/iawia002/lux/extractors/extractors.go:52
github.com/iawia002/lux/app.download
    github.com/iawia002/lux/app/app.go:271
github.com/iawia002/lux/app.New.func1
    github.com/iawia002/lux/app/app.go:248
github.com/urfave/cli/v2.(*App).RunContext
    github.com/urfave/cli/v2@v2.3.0/app.go:322
github.com/urfave/cli/v2.(*App).Run
    github.com/urfave/cli/v2@v2.3.0/app.go:224
main.main
    github.com/iawia002/lux/main.go:13
runtime.main
    runtime/proc.go:250
runtime.goexit
    runtime/asm_arm64.s:1259
github.com/iawia002/lux/extractors/bilibili.extractNormalVideo
    github.com/iawia002/lux/extractors/bilibili/bilibili.go:170
github.com/iawia002/lux/extractors/bilibili.(*extractor).Extract
    github.com/iawia002/lux/extractors/bilibili/bilibili.go:300
github.com/iawia002/lux/extractors.Extract
    github.com/iawia002/lux/extractors/extractors.go:52
github.com/iawia002/lux/app.download
    github.com/iawia002/lux/app/app.go:271
github.com/iawia002/lux/app.New.func1
    github.com/iawia002/lux/app/app.go:248
github.com/urfave/cli/v2.(*App).RunContext
    github.com/urfave/cli/v2@v2.3.0/app.go:322
github.com/urfave/cli/v2.(*App).Run
    github.com/urfave/cli/v2@v2.3.0/app.go:224
main.main
    github.com/iawia002/lux/main.go:13
runtime.main
    runtime/proc.go:250
runtime.goexit
    runtime/asm_arm64.s:1259
github.com/iawia002/lux/extractors.Extract
    github.com/iawia002/lux/extractors/extractors.go:54
github.com/iawia002/lux/app.download
    github.com/iawia002/lux/app/app.go:271
github.com/iawia002/lux/app.New.func1
    github.com/iawia002/lux/app/app.go:248
github.com/urfave/cli/v2.(*App).RunContext
    github.com/urfave/cli/v2@v2.3.0/app.go:322
github.com/urfave/cli/v2.(*App).Run
    github.com/urfave/cli/v2@v2.3.0/app.go:224
main.main
    github.com/iawia002/lux/main.go:13
runtime.main
    runtime/proc.go:250
runtime.goexit
    runtime/asm_arm64.s:1259

使用https://github.com/SeaHOH/ykdl倒是没问题

ykdl 'https://player.bilibili.com/player.html?aid=455558656&bvid=BV1iY4y1B7Ph&cid=187499214&page=1'
site:                 哔哩哔哩 (Bilibili)
title:                【官方首发】《轩辕剑柒》详解之场景篇 - Envrionment_Teasar_MS_v4.9_S
artist:               轩辕剑柒
streams:
    - format:         BD BD-80
      container:      flv
      video-profile:  高清 1080P
      size:           32.573 MiB (34155515 Bytes)
    # download-with:  ykdl --format=BD-80 [URL]

Start downloading: 【官方首发】《轩辕剑柒》详解之场景篇 - Envrionment_Teasar_MS_v4.9_S_BD-80
                                                                                                                                                                                                                  100% [1/1] [00:35]
Current downloaded 32.573 MiB, cost 00:35.
Total downloaded 32.573 MiB of 32.573 MiB, cost 00:35
hsghost commented 2 years ago

Reporting the exact same issue here.