GithubHelp home page GithubHelp logo

tuefekci / blkhole Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 3.0 3.23 MB

blkhole is a download management tool for AllDebrid cloud downloads, which allows automatic downloads to your local network.

PHP 65.00% CSS 0.04% JavaScript 0.38% Shell 0.17% Blade 34.37% PLSQL 0.02% Batchfile 0.01%
alldebrid php blackhole ddl magnet torrent

blkhole's Introduction

Hello World!

blkhole's People

Contributors

tuefekci avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

blkhole's Issues

Implement Support for External Downloaders like Aria etc.

The Original Plan was to enable external Download Clients because the Internal one should technically only be a fallback until we find someone who really knows how to implement a serious Download Implementation or I figure it out myself.

SQLITE Support

The App theoretically should operate smoothly with SQLite, but numerous challenges persist:

  • Concurrency Issues: Although SQLite supports concurrency, accessing the database concurrently often results in frequent access errors.
  • Syntax Limitations: SQLite theoretically supports all necessary syntax; however, the PHP library may lack support for certain operations, such as 'drop', potentially due to outdated versions.
  • Random Operational Challenges: Occasional access restrictions or file corruption issues arise unpredictably, complicating database management.

Despite prolonged efforts to exclusively utilize SQLite for database operations, the persistent challenges have become tiresome. Consequently, I've opted to implement a version compatible with MySQL and potentially Redis. After resolving immediate needs with alternative solutions, I may revisit SQLite optimization in the future.

Add more Providers [Ongoing]

The Original Plan for Blkhole was to work with more services, we should at least implement the Interfaces Properly for that.

ARM PHP Docker

�
Stack trace:

#0 /srv/blkhole/vendor/amphp/amp/lib/Internal/Placeholder.php(46): GT\BLK\Web->GT\BLK\{closure}(NULL, true)

#1 /srv/blkhole/app/web.php(94): Amp\Coroutine->onResolve(Object(Closure))

#2 [internal function]: GT\BLK\Web->GT\BLK\{closure}(Object(Amp\Http\Server\Request))

#3 /srv/blkhole/vendor/amphp/amp/lib/Coroutine.php(118): Generator->send('{"magnet":"magn...')

#4 /srv/blkhole/vendor/amphp/amp/lib/Internal/Placeholder.php(149): Amp\Coroutine->Amp\{closure}(NULL, '{"magnet":"magn...')

#5 /srv/blkhole/vendor/amphp/amp/lib/Coroutine.php(123): Amp\Coroutine->resolve('{"magnet":"magn...')

#6 /srv/blkhole/vendor/amphp/amp/lib/Internal/Placeholder.php(149): Amp\Coroutine->Amp\{closure}(NULL, NULL)

#7 /srv/blkhole/vendor/amphp/amp/lib/Deferred.php(53): class@anonymous->resolve(NULL)

#8 /srv/blkhole/vendor/amphp/byte-stream/lib/IteratorStream.php(64): Amp\Deferred->resolve()

#9 /srv/blkhole/vendor/amphp/amp/lib/Succe in /srv/blkhole/app/web.php on line 90


********************************************************************************
�

PHP7.4 ARM Docker

It kinda gets annoying that they are behaving so differently :/

Fatal error: Uncaught Amp\Http\Client\ParseException: Configured body size exceeded: 1777340416 bytes received, while the configured limit is 1777336320 bytes in /srv/blkhole/vendor/amphp/http-client/src/Connection/Internal/Http1Parser.php:447
�
Stack trace:

#0 /srv/blkhole/vendor/amphp/http-client/src/Connection/Internal/Http1Parser.php(202): Amp\Http\Client\Connection\Internal\Http1Parser->addToBody('\xC1\xF9\x80\x96\xD3p\xCB\x8D!,\x8A\x8A\xAE\xCC\xC4...')

#1 /srv/blkhole/vendor/amphp/http-client/src/Connection/Http1Connection.php(410): Amp\Http\Client\Connection\Internal\Http1Parser->parse('\xC1\xF9\x80\x96\xD3p\xCB\x8D!,\x8A\x8A\xAE\xCC\xC4...')

#2 [internal function]: Amp\Http\Client\Connection\Http1Connection->Amp\Http\Client\Connection\{closure}()

#3 /srv/blkhole/vendor/amphp/amp/lib/Coroutine.php(118): Generator->send('\xC1\xF9\x80\x96\xD3p\xCB\x8D!,\x8A\x8A\xAE\xCC\xC4...')

#4 /srv/blkhole/vendor/amphp/amp/lib/Internal/Placeholder.php(46): Amp\Coroutine->Amp\{closure}(NULL, '\xC1\xF9\x80\x96\xD3p\xCB\x8D!,\x8A\x8A\ in /srv/blkhole/vendor/amphp/http-client/src/Connection/Internal/Http1Parser.php on line 447

[2021-10-29 22:13:40] (The process stopped responding, potentially due to a fatal error or calling exit) torrents listFiles


Rework UI

The UI even if I like it is quite special, so we should rework it to appeal to a more common taste.

Probably Download Uncaught Amp\TimeoutException

Happens after Log Download added but could be somewhere else or i would not open an issue for myself.

PHP Fatal error:  Uncaught Amp\TimeoutException: Operation timed out in D:\Workspace\blkhole\vendor\amphp\amp\lib\functions.php:275
Stack trace:
#0 D:\Workspace\blkhole\vendor\amphp\amp\lib\Loop\NativeDriver.php(142): Amp\Promise\{closure}()
#1 D:\Workspace\blkhole\vendor\amphp\amp\lib\Loop\Driver.php(138): Amp\Loop\NativeDriver->dispatch()
#2 D:\Workspace\blkhole\vendor\amphp\amp\lib\Loop\Driver.php(72): Amp\Loop\Driver->tick()
#3 D:\Workspace\blkhole\vendor\amphp\amp\lib\Loop.php(95): Amp\Loop\Driver->run()
#4 D:\Workspace\blkhole\app\web.php(240): Amp\Loop::run()
#5 D:\Workspace\blkhole\main.php(64): GT\BLK\Web->run()
#6 D:\Workspace\blkhole\vendor\amphp\amp\lib\Loop\Driver.php(119): {closure}()
#7 D:\Workspace\blkhole\vendor\amphp\amp\lib\Loop\Driver.php(72): Amp\Loop\Driver->tick()
#8 D:\Workspace\blkhole\vendor\amphp\amp\lib\Loop.php(95): Amp\Loop\Driver->run()
#9 D:\Workspace\blkhole\main.php(65): Amp\Loop::run()
#10 {main}

Next Amp\Http\Client\TimeoutException: Inactivity timeout exceeded, more than 10000 ms elapsed f in D:\Workspace\blkhole\vendor\amphp\http-client\src\Connection\Http1Connection.php on line 433

Check Docker

Hi,

Hope I don't bother you.

Are you still working on blkhole?

I tried compiling the docker image but I get this error about the
composer repository:

[email protected] build
react-scripts build

Creating an optimized production build...
Compiled with warnings.

src/App.js
Line 2:8: 'ReactDOM' is defined but never used no-unused-vars
Line 11:44: 'NavDropdown' is defined but never used no-unused-vars
Line 11:90: 'Alert' is defined but never used no-unused-vars
Line 14:8: 'empty' is defined but never used no-unused-vars
Line 24:3: Useless constructor no-useless-constructor
Line 30:17: Expected '===' and instead saw '==' eqeqeq
Line 61:55: Expected '===' and instead saw '==' eqeqeq
Line 206:3: Useless constructor no-useless-constructor
Line 213:9: 'stateData' is assigned a value but never used
no-unused-vars

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

File sizes after gzip:

110.6 KB build/static/js/2.c995b646.chunk.js
22.8 KB build/static/css/2.c4e73993.chunk.css
2.17 KB build/static/js/main.7b4c70e9.chunk.js
1.62 KB build/static/js/3.c58c2153.chunk.js
1.16 KB build/static/js/runtime-main.7e1c94cd.js
616 B build/static/css/main.ffe19602.chunk.css

The project was built assuming it is hosted at /.
You can control this with the homepage field in your package.json.

The build folder is ready to be deployed.
You may serve it with a static server:

npm install -g serve
serve -s build

Find out more about deployment here:

https://cra.link/deployment

Loading composer repositories with package information

In PathRepository.php line 154:

The url supplied for the path (./../helpers) repository does not exist

update [--with WITH] [--prefer-source] [--prefer-dist] [--dry-run]
[--dev] [--no-dev] [--lock] [--no-install] [--no-autoloader]
[--no-scripts] [--no-suggest] [--no-progress] [-w|--with-dependencies]
[-W|--with-all-dependencies] [-v|vv|vvv|--verbose]
[-o|--optimize-autoloader] [-a|--classmap-authoritative]
[--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX]
[--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs]
[--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs]
[--] [...]

Sending build context to Docker daemon 341.1MB
Step 1/6 : FROM php:7.4-cli
---> 345b2751a654
Step 2/6 : COPY . /srv/blkhole
---> Using cache
---> a7bb16844d81
Step 3/6 : WORKDIR /srv/blkhole
---> Using cache
---> 25ff2357c1c0
Step 4/6 : CMD [ "env >> /srv/blkhole/.env"]
---> Using cache
---> de1d3ded414d
Step 5/6 : CMD [ "php", "./main.php" ]
---> Using cache
---> 1e21fb2edb71
Step 6/6 : EXPOSE 1337
---> Using cache
---> cf4e0764e57e
Successfully built cf4e0764e57e
Successfully tagged blkhole:latest

Then when I try to run with the container:

Warning: require_once(/srv/blkhole/vendor/autoload.php): failed to open
stream: No such file or directory in /srv/blkhole/main.php on line 9

Fatal error: require_once(): Failed opening required
'/srv/blkhole/vendor/autoload.php' (include_path='.:/usr/local/lib/php')
in /srv/blkhole/main.php on line 9

I'd appreciate if you can help!

Thanks

Cheers

Self Updates

Implement Self Updates for Minor Changes so we don't need to rebuild App or Docker every time we Fix something

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.