-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add info.live=True states to douyin/live.py which ensure timestre in filename. #624
Open
a67878813
wants to merge
8
commits into
LifeActor:master
Choose a base branch
from
a67878813:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e896a72
fix: default filename timestr error
a67878813 8b9b172
Merge branch 'SeaHOH:master' into master
a67878813 a4f89fb
Merge remote-tracking branch 'upstream/master'
a67878813 db3ff5c
Merge branch 'master' of https://github.com/a67878813/ykdl
a67878813 cf0ed35
add info.live=True states to douyin/live.py which ensure timestre in …
a67878813 7250518
add assert to douyu/live.py. video record is disabled at videoloop
a67878813 66e734c
add assert to douyu/live.py. video record is disabled at videoloop
a67878813 ff43e6b
add assert to douyu/live.py. video record is disabled at videoloop
a67878813 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里不应退出,我认为可以选择以下两个方案之一:
如果可以,则重定向到
douyu/video
(不确定是否有对应的视频)。修改
info = MediaInfo('斗鱼重播 (DouyuTV)')
,后面的title
也作相应修改。There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.即使重定向到douyu/video,估计不会暴露视频地址。
2.info补全后,返回的MediaInfo结构需添加额外flag,需要增加命令行参数才能做出“给定直播地址,存在回放标识,停止录制”功能。这样可接受吗?
7x24全开时,开回放的直播间很麻烦。(回放-直播)的ts流结构不正常。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ykdl 自带的 cykdl 事实上只是一个范例,ykdl 本身定位是作为库来调用的,需要保持功能完整没有无故缺失。如果有更复杂的要求,可以另行编写脚本调用 ykdl 并处理返回数据,这里的数据原则上尽可能遵循 AS-IS,如何处理则在于用户。你面临的使用场景即是后者,而不是去更改 ykdl 本身。