Pyload-Ng?
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
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.
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
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: https://github.com/pyload/pyload/issues/4095. I'll let you know when this is fixed.
Thanks for the follow up. That sounds great.
edit: nevermind. it works with pyload main https://github.com/pyload/pyload/commit/26420ef7da1835e0680b67576f27b637aa2a3a4c
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)