Coder Social home page Coder Social logo

bencode's People

Contributors

codacy-badger avatar dependabot-preview[bot] avatar fossabot avatar kslr avatar pandabadger avatar rhilip avatar tongyifan 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

Watchers

 avatar  avatar  avatar  avatar  avatar

bencode's Issues

Torrent file validation method

It could be useful to have build-in method for uploaded files validation

true === \Rhilip\Bencode\TorrentFile::isValid($filepath);

Because getting an exception with 500 code on load PNG file (as example of wrong file type)

$torrent = \Rhilip\Bencode\TorrentFile::load($filepath);

Invalid integer format or integer overflow: �PNG

For right now, I'm using external construction like this

    public function isValid(
        string $filepath
    ): bool
    {
        try
        {
            \Rhilip\Bencode\TorrentFile::load(
                $filepath
            );
        }

        catch (\Rhilip\Bencode\ParseException $error)
        {
            return false;
        }

        return true;
    }

p.s. thanks for your work!

Torrent format V2 support

Not sure that's library bug (may be just qBittorrent client issue)

when I create torrent file using 2 version format, get following exception:

Uncaught PHP Exception Rhilip\Bencode\ParseException: "Checking Dictionary missing key: piece layers"

to reproduce this issue, please generate v2 or hybrid torrent file using qBittorrent or any other client with v2 support.

Dependabot can't resolve your PHP dependency files

Dependabot can't resolve your PHP dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

error: failed to write new configuration file /home/dependabot/.gitconfig.lock

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Extracting "pieces root" hash?

Hello, how could we extract from key "pieces root" hashes of files to show them in our web page.
Would be grateful for your help, we are trying to give our users ability to search by file hashes.

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.