MiLoucius's recent timeline updates
MiLoucius

MiLoucius

V2EX member #293578, joined on 2018-02-23 18:20:31 +08:00
如何用 ffmpeg 同时处理多个 rtsp 流?
程序员  •  MiLoucius  •  Sep 9, 2022  •  Lastly replied by mrhhhdx
2
opencv 显示出现重影
程序员  •  MiLoucius  •  Dec 20, 2018  •  Lastly replied by MiLoucius
1
you-get 如何从 playlist 中下载单独的视频?
Python  •  MiLoucius  •  Nov 11, 2018  •  Lastly replied by MiLoucius
6
conda 与 pip 不能共存
Python  •  MiLoucius  •  Apr 26, 2018  •  Lastly replied by necomancer
1
MiLoucius's recent replies
Jul 26, 2019
Replied to a topic by fox0001 Android 快图浏览用户换上 Gallery Go,真香
我会推荐 F-Stop,速度不差快图
(虽然仍有缺陷,比如不能自由旋转、不能多 tag 筛选……)
Dec 20, 2018
Replied to a topic by MiLoucius 程序员 opencv 显示出现重影
没人遇到这种问题吗?(大雾)
Nov 11, 2018
Replied to a topic by MiLoucius Python you-get 如何从 playlist 中下载单独的视频?
@airdge 经你这么提醒,去看了下代码,发现是 b 站的 url 格式变了

源代码:
```python
frag = urllib.parse.urlparse(self.url).fragment
# http://www.bilibili.com/video/av3141144/index_2.html#page=3
if frag:
hit = re.search(r'page=(\d+)', frag)
if hit is not None:
page = hit.group(1)
aid = re.search(r'av(\d+)', self.url).group(1)
self.url = 'http://www.bilibili.com/video/av{}/index_{}.html'.format(aid, page)
```

代码中解析的是`/index_{}.html`,而现在 b 站显示的是`p={}`
特意去试了下,旧的 url 格式还是可以用的

所以,要下载 playlist 中的单独的视频,只需把`p={}`换成`/index_{}.html`就 OK 了(不要忘记了.html )
Nov 10, 2018
Replied to a topic by MiLoucius Python you-get 如何从 playlist 中下载单独的视频?
@V2tizen 刚才借用油猴的脚本,还行,就是步骤有点多。现在打算试试 @expy 推荐的 annie
Nov 10, 2018
Replied to a topic by MiLoucius Python you-get 如何从 playlist 中下载单独的视频?
@expy 猴,我去试试。谢谢了
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3532 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 10:52 · PVG 18:52 · LAX 03:52 · JFK 06:52
♥ Do have faith in what you're doing.