Skip to content
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

Pyload-Ng? #7

Open
gerroon opened this issue Oct 16, 2021 · 5 comments
Open

Pyload-Ng? #7

gerroon opened this issue Oct 16, 2021 · 5 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@gerroon
Copy link

gerroon commented Oct 16, 2021

Hi

Is this compatible with Payload-Ng? I cant seem to be able to submit Youtube downloads to it.

I am using the Pyload-NG from Linuxserver.io

@RemiRigal RemiRigal added bug Something isn't working enhancement New feature or request labels Oct 17, 2021
@RemiRigal
Copy link
Owner

Thanks for the issue, it indeed appears that the API of PyLoad-ng is not implemented according to the official docs, I will have to investigate more. I'll keep you updated.

@gerroon
Copy link
Author

gerroon commented Feb 15, 2022

Hi

Do you know if you will be able to support Pyload-Ng? It seems like Linuxserver does not provide old Pyload Dockers anymore.

This image is deprecated. We will not offer support for this image and it will not be updated. We recommend our new pyload-ng image instead: https://github.com/linuxserver/docker-pyload-ng/

I get this in the console when I click on Yape on Chrome

2022-02-15 18:33:40]  DEBUG         pyload.webui  Object of type AttributeError is not JSON serializable
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/pyload/webui/app/blueprints/api_blueprint.py", line 44, in rpc
    response = call_api(func, *args, **kwargs)
  File "/usr/lib/python3.9/site-packages/pyload/webui/app/blueprints/api_blueprint.py", line 58, in call_api
    result = getattr(api, func)(
AttributeError: 'Api' object has no attribute 'checkURLs'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python3.9/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/lib/python3.9/site-packages/pyload/webui/app/blueprints/api_blueprint.py", line 46, in rpc
    response = jsonify(error=exc, traceback=traceback.format_exc()), 500
  File "/usr/lib/python3.9/site-packages/flask/json/__init__.py", line 370, in jsonify
    dumps(data, indent=indent, separators=separators) + "\n",
  File "/usr/lib/python3.9/site-packages/flask/json/__init__.py", line 211, in dumps
    rv = _json.dumps(obj, **kwargs)
  File "/usr/lib/python3.9/site-packages/simplejson/__init__.py", line 398, in dumps
    return cls(
  File "/usr/lib/python3.9/site-packages/simplejson/encoder.py", line 296, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.9/site-packages/simplejson/encoder.py", line 378, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.9/site-packages/pyload/webui/app/helpers.py", line 18, in default
    return super().default(obj)
  File "/usr/lib/python3.9/site-packages/flask/json/__init__.py", line 100, in default
    return _json.JSONEncoder.default(self, o)
  File "/usr/lib/python3.9/site-packages/simplejson/encoder.py", line 272, in default
    raise TypeError('Object of type %s is not JSON serializable' %
TypeError: Object of type AttributeError is not JSON serializable

@RemiRigal
Copy link
Owner

Hi @gerroon ! This issue is actually a bug from PyLoad's end, but it should be fixed in a few days/weeks, see the following issue for more details: pyload/pyload#4095.
I'll let you know when this is fixed.

@gerroon
Copy link
Author

gerroon commented Feb 16, 2022

Thanks for the follow up. That sounds great.

@milahu
Copy link

milahu commented May 12, 2022

edit: nevermind. it works with pyload main pyload/pyload@26420ef

i added some debug code to yape which may be useful

still not working

tried Yape from crx4chrome and github master (chrome: load unpacked extension)

chrome-extension://lbbofcfllogcmffofacfoiolglncdcgb/popup.html (same url prefix as options.html)

popup.js:28 Uncaught TypeError: status.forEach is not a function
    at popup.js:28:16
    at XMLHttpRequest.xhr.onreadystatechange (pyload-api.js:53:27)

pyload-api.js:84 Uncaught TypeError: JSON.parse(...).toLowerCase is not a function
    at XMLHttpRequest.xhr.onreadystatechange (pyload-api.js:84:61)

pyload-api.js:67 Uncaught TypeError: queueData.forEach is not a function
    at XMLHttpRequest.xhr.onreadystatechange (pyload-api.js:67:23)

pyload always returns boolean true when yape expectes arrays

https://github.com/milahu/Yape/tree/debug-pyload-ng

pyload-api.js:8 error in callback function:
function (status) {
        let html = '';
        let totalSpeed = 0;
        assertArray(status);
        status.forEach(function(download) {
            totalSpeed += download.speed;
[...]

pyload-api.js:9 Uncaught Error: expected array, got boolean: true
    at assertArray (popup.js:18:15)
    at popup.js:34:9
    at doCallback (pyload-api.js:5:13)
    at XMLHttpRequest.xhr.onreadystatechange (pyload-api.js:66:13)

popup.js:18 Uncaught Error: expected array, got boolean: true
    at assertArray (popup.js:18:15)
    at XMLHttpRequest.xhr.onreadystatechange (pyload-api.js:85:13)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants