Giter Club home page Giter Club logo

Comments (8)

ZhaoWeicheng98 avatar ZhaoWeicheng98 commented on July 29, 2024 1

收到反馈,目前在用的BilibiliUploader这个库是模拟的手机客户端,我再去调查一下。

from ddrecorder.

ForgQi avatar ForgQi commented on July 29, 2024

调用上传的库也可以试一下biliup,定时发布也是支持的
https://forgqi.github.io/biliup/API-reference.html

from biliup.plugins.bili_webup import BiliBili, Data

video = Data()
video.title = '视频标题'
video.desc = '视频简介'
video.source = '添加转载地址说明'
# 设置视频分区,默认为160 生活分区
video.tid = 171
video.set_tag(['星际争霸2', '电子竞技'])
with BiliBili(video) as bili:
    bili.login_by_password("username", "password")
    for file in file_list:
        video_part = bili.upload_file(file)  # 上传视频
        video.append(video_part)  # 添加已经上传的视频
    video.cover = bili.cover_up('/cover_path').replace('http:', '')
    ret = bili.submit()  # 提交视频

from ddrecorder.

satouriko avatar satouriko commented on July 29, 2024

我也是的,split 时间设多少就只上传了开始那么长时间的那一段

from ddrecorder.

satouriko avatar satouriko commented on July 29, 2024

另外我在想,能不能按照文件大小而不是时长来分,因为我感觉b站的上传限制是文件大小,不同类型的视频码率差的还挺大的(比如游戏就比虚拟主播大很多)

from ddrecorder.

ZhaoWeicheng98 avatar ZhaoWeicheng98 commented on July 29, 2024

调用上传的库也可以试一下biliup,定时发布也是支持的 https://forgqi.github.io/biliup/API-reference.html

from biliup.plugins.bili_webup import BiliBili, Data

video = Data()
video.title = '视频标题'
video.desc = '视频简介'
video.source = '添加转载地址说明'
# 设置视频分区,默认为160 生活分区
video.tid = 171
video.set_tag(['星际争霸2', '电子竞技'])
with BiliBili(video) as bili:
    bili.login_by_password("username", "password")
    for file in file_list:
        video_part = bili.upload_file(file)  # 上传视频
        video.append(video_part)  # 添加已经上传的视频
    video.cover = bili.cover_up('/cover_path').replace('http:', '')
    ret = bili.submit()  # 提交视频

非常感谢,想请问一下biliup是否有分P标题和稿件编辑功能,我之前看了API文档和源码似乎没有。如果确实没有我找个时间研究一下增加相关功能进行贡献,之后使用biliup替换项目中的上传库。

from ddrecorder.

ZhaoWeicheng98 avatar ZhaoWeicheng98 commented on July 29, 2024

环境:win10 软件版本:1.2.1 账号等级lv1 录播和切片的分P功能无效,自动投稿变成单P稿件

PS:目前网页端无法多P投稿,ForgQi/Caution这个项目目前可以通过客户端口提交多P稿件

另外也有可能和upload_by_edit有关,你关掉这个功能试一下?

from ddrecorder.

ForgQi avatar ForgQi commented on July 29, 2024

调用上传的库也可以试一下biliup,定时发布也是支持的 https://forgqi.github.io/biliup/API-reference.html

from biliup.plugins.bili_webup import BiliBili, Data

video = Data()
video.title = '视频标题'
video.desc = '视频简介'
video.source = '添加转载地址说明'
# 设置视频分区,默认为160 生活分区
video.tid = 171
video.set_tag(['星际争霸2', '电子竞技'])
with BiliBili(video) as bili:
    bili.login_by_password("username", "password")
    for file in file_list:
        video_part = bili.upload_file(file)  # 上传视频
        video.append(video_part)  # 添加已经上传的视频
    video.cover = bili.cover_up('/cover_path').replace('http:', '')
    ret = bili.submit()  # 提交视频

非常感谢,想请问一下biliup是否有分P标题和稿件编辑功能,我之前看了API文档和源码似乎没有。如果确实没有我找个时间研究一下增加相关功能进行贡献,之后使用biliup替换项目中的上传库。

分P标题有,修改返回的video_part即可。稿件编辑确实是没有,先感谢大佬PR了

from ddrecorder.

ZhaoWeicheng98 avatar ZhaoWeicheng98 commented on July 29, 2024

v1.2.3已更新有关上传的部分

from ddrecorder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.