Danke für deine Erläuterungen.
Das filebit.net anders funktioniert, habe ich schon begriffen. Das sieht man ja an deren Code.
Ich kann leider kein Java, sonst würde ich euch gerne helfen. Ich kann nur PHP, was man eher nicht vergleichen kann? Ich würde das ja mal probieren, aber ganz checken tue ich das nicht. Also wie ich da rumbastel und das auch selbst teste. Vielleicht hier nochmal Input?
Ich bin nur irritiert, weil filebit.net ja auch Open Source ist?
**External links are only visible to Support Staff**...
Nicht nur in PHP
Code:
include "filebit.php";
$URL = '**External links are only visible to Support Staff**;
$URLParts = \Filebit\Utils\getParts($URL);
$DownloadHandle = new \Filebit\CDownload($URLParts['id'], $URLParts['key']);
$DownloadHandle->setStoragePath('./test.txt');
$DownloadHandle->setProgress(true);
$DownloadHandle->setDebug(false);
$DownloadHandle->download();
sondern auch Python
Code:
import os
from filebit import download
from pathlib import Path
d = download.Download("**External links are only visible to Support Staff**)
d.prepare()
path = Path(os.getcwd())
if path.is_dir():
path = path.joinpath(d.filename)
d.start(path)
success = d.validate()
if success:
print("File download successful")
print("Stored at:")
print(d.path)
else:
print("Download failed.")
und NodeJS
Code:
import {
CDownload,
Utils
} from 'filebit-node';
const {
getParts
} = Utils;
const URL = '**External links are only visible to Support Staff**;
const URLParts = getParts(URL);
const Download = new CDownload(URLParts.id, URLParts.hash);
Download.on('finish', (path) => {
console.log(path)
});
await Download.setStoragePath('./test.txt');
Download.setProgress(true);
await Download.download();
Ihr könnt mir nicht erzählen, dass ihr aus den drei Quellen nichts in Java "konvertieren" könnt oder das so zeitaufwendig ist, dass das noch ewig dauert. Also ne, dafür kann der jD einfach viel zu viel