fansly-downloader
fansly-downloader copied to clipboard
fansly 3.0.2, downloader 2.0.6. fetch error
I already checked that I am on the latest version of both Fansly and the downloader
i figured out the problem, im going to fork this repo and fix it
@RalkeyOfficial That would be nice, all i found out since now is that they implemented a new system for videos, they now use video streaming with mpd files, so the audio and video is seperated on the cdn. I couldn't figure out a way of how to easily implement this new system. I thought of making a call to the fansly api to get the video link since there is no link in the dom anymore, there is a blob url set as the source of the video tag, but somehow when i try to fetch this blob, it already got wiped and i get a file not found error. I think this is just data to initalize the stream or something.
@Motyldrogi never mind i dont think i can fix this,
I did get the download functionality to work and applied some other fixes.
but it still ends up giving me this error:
GET blob:https://fansly.com/80d92a20-e5e5-4202-8b20-b46886c845a1 net::ERR_FILE_NOT_FOUND
then i tried changing up the download code with this one:
const toDownload = (url, name) => {
const a = document.createElement("a");
a.href = url;
a.download = name;
a.click();
a.remove();
};
toDownload(url, name)
but that only results in a failed - network error
This is just speculation, but I think they call URL.revokeObjectURL()
after creating the blob, which makes it impossible to download it.
you're code just.... fixed itself
this is causing me some serious headaches since i just spend like 5 hours debugging this and now it just works
How? It's still not working on my side. I tried at least 2 different videos.
How? It's still not working on my side. I tried at least 2 different videos.
Well, it worked one time. I think I downloaded it before it got converted to the new video system or something.
I already developed a fix for it that can get the video and audio files from the new .mpd
system, its on my fork of this project.
but I need to use ffmpeg.wasm which has terrible documentation, not being maintained as well, and just generally doesnt work for chrome extensions to combine the video and audio into one .mp4 file.
which also requires SharedArrayBuffer which is currently broken in chrome...
Otherwise you need to download the video and audio file separately and combine them yourself, which most people don't even know how to do.
How? It's still not working on my side. I tried at least 2 different videos.
Whilst obviously less than ideal, personally speaking, I would find that better than nothing.
@RalkeyOfficial would you be able to compile something that downloads the video and audio separately? I know this issue is recent and there might be a possibility of getting it to work via other means.
The method from "https://github.com/Avnsx/fansly" still works, I just used it myself. Kind of finicky to set up, but totally functional.
@cliddell & @noonotthat I would, but there are some other glaring issues which need to be fixed before I can properly publish it. As it is right now the extension can get easily confused on which video to download. This is because there is no correlation between which file and to which post, so I have to kind of guess, which can break very easily and very fast. You can take a look at my progress or maybe even help here https://github.com/RalkeyOfficial/fansly-downloader
@LegoShrimpVinny this is because Avnsx's script works very differently. fansly-downloader only downloads the one you select, while Avnsx's script can just loop through all posts without a care in the world.
But yeah, use that one in the meantime.
if anyone is interested, i created a PR for my half fix https://github.com/Motyldrogi/fansly-downloader/pull/21
edit: nvm cuz fansly changed it again
@Motyldrogi honestly I would highly recommend scrapping this project and creating a desktop app instead. There are way too many limitations and way too many things to keep track of, it's become impossible.
I don't know why but yesterday I got a new PPV and I unlocked it immediately. 720p wasn't available yet. So I clicked the button to download it and it worked. Once the 720p version was available, it wouldn't download it anymore. Really tough to find a working Fansly video downloader.
The method from "https://github.com/Avnsx/fansly" still works, I just used it myself. Kind of finicky to set up, but totally functional.
Is it possible to use it somehow for videos in DM?