Git Product home page Git Product logo

decode_bilibili_uwp_download_video's People

Contributors

duckburnincense avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

sheenxpxd

decode_bilibili_uwp_download_video's Issues

感谢up,我是下载的一整段视频,但是文件的名字都是数字,我更改了一点,如果需要自取

def changeFile(path, all_files): file_list = os.listdir(path) for file in file_list: cur_path = os.path.join(path, file) if os.path.isdir(cur_path): changeFile(cur_path, all_files) else: if os.path.splitext(file)[-1] == '.info': file = open(cur_path, "rb") fileJson = json.load(file) mp4 = fileJson['Aid']+'_'+os.path.basename(path)+'_0.mp4' mp4Path = os.path.join(path, mp4) pfile = open(mp4Path, 'rb') pfile.seek(3) byte = pfile.read() pfile.close() outName = '(' + \ os.path.basename(path)+')' + fileJson['PartName']+'.mp4' pfile = open(os.path.join(outpath, outName), 'wb') pfile.seek(0) pfile.write(byte) pfile.close()

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.