Comments (4)
确实是,不过我暂时没精力顾到这边,欢迎各路高手 PR。 😸
from ykdl.
粗略改了一下,只是能用不知道会不会有问题,不提交PR了
def prepare(self):
info = MediaInfo(self.name, True)
html = get_content(self.url)
json_stream = match1(html, '"stream": "([a-zA-Z0-9+=/]+)"')
isbase64 = True
if not json_stream:
json_stream = match1(html, 'stream: ({[^;]+)')
isbase64 = False
assert json_stream, 'live video is offline'
data = json.loads(base64.b64decode(json_stream).decode()) if isbase64 else json.loads(json_stream[:-1])
self.logger.debug('data:\n%s', data)
#assert data['status'] == 200, data['msg']
from ykdl.
目前是稳定返回不用base64编码的json了吧
from ykdl.
终于稳定,已改好。
from ykdl.
Related Issues (20)
- DEPRECATION: ykdl is being installed using the legacy 'setup.py install' method HOT 1
- 好像没法看抖音直播世界杯? HOT 4
- iqiyi部分视频解析报错 HOT 1
- 抖音直播不能看(但是世界杯能看) HOT 2
- 下载合并mpeg ts格式特别慢 HOT 3
- Bilibili bangumi解析使用了过时的API HOT 1
- download video with 480p and over HOT 2
- mediainfo.py 默认文件名时间戳字符串bug
- Python 3.10 windows compability problem HOT 1
- huya 直播不能下载了请求更新 HOT 17
- 虎牙直播 下载几秒就断流,前天刚改了,不能正常下载,biliup以修正,可以参考 HOT 1
- 抖音视频失效 HOT 7
- 问下斗鱼的直播源地址在哪里获取的
- ykdl1.8.2在python3.7.1中不能运行
- bilibili 直播错误 HOT 3
- 抖音直播看不了,退回旧版可以看
- 不能https://www.bilibili.com/video/BV1LM411d7qg/?spm_id_from=333.999.0.0 HOT 8
- 建议调整下a参数 HOT 5
- 虎牙 wrong url string HOT 1
- 爱奇艺无法下载视频 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ykdl.