fansly-downloader icon indicating copy to clipboard operation
fansly-downloader copied to clipboard

fansly 3.0.2, downloader 2.0.6. fetch error

Open RalkeyOfficial opened this issue 1 year ago • 13 comments

image

I already checked that I am on the latest version of both Fansly and the downloader

RalkeyOfficial avatar May 05 '23 06:05 RalkeyOfficial

i figured out the problem, im going to fork this repo and fix it

RalkeyOfficial avatar May 05 '23 07:05 RalkeyOfficial

@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 avatar May 05 '23 07:05 Motyldrogi

@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.

RalkeyOfficial avatar May 05 '23 07:05 RalkeyOfficial

you're code just.... fixed itself image

this is causing me some serious headaches since i just spend like 5 hours debugging this and now it just works

RalkeyOfficial avatar May 05 '23 18:05 RalkeyOfficial

How? It's still not working on my side. I tried at least 2 different videos.

Python749 avatar May 06 '23 15:05 Python749

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.

RalkeyOfficial avatar May 06 '23 16:05 RalkeyOfficial

How? It's still not working on my side. I tried at least 2 different videos.

> 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.

Whilst obviously less than ideal, personally speaking, I would find that better than nothing.

cliddell avatar May 08 '23 07:05 cliddell

@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.

noonotthat avatar May 08 '23 13:05 noonotthat

The method from "https://github.com/Avnsx/fansly" still works, I just used it myself. Kind of finicky to set up, but totally functional.

LegoShrimpVinny avatar May 08 '23 14:05 LegoShrimpVinny

@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.

RalkeyOfficial avatar May 08 '23 15:05 RalkeyOfficial

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.

RalkeyOfficial avatar May 10 '23 19:05 RalkeyOfficial

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.

LFS900 avatar May 11 '23 12:05 LFS900

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?

Python749 avatar May 12 '23 20:05 Python749