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

fansly 3.0.2, downloader 2.0.6. fetch error #20

Open
RalkeyOfficial opened this issue May 5, 2023 · 13 comments
Open

fansly 3.0.2, downloader 2.0.6. fetch error #20

RalkeyOfficial opened this issue May 5, 2023 · 13 comments

Comments

@RalkeyOfficial
Copy link

image

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

@RalkeyOfficial
Copy link
Author

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

@Motyldrogi
Copy link
Owner

Motyldrogi commented May 5, 2023

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

@RalkeyOfficial
Copy link
Author

RalkeyOfficial commented May 5, 2023

@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
Copy link
Author

RalkeyOfficial commented May 5, 2023

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

@Python749
Copy link

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

@RalkeyOfficial
Copy link
Author

RalkeyOfficial commented May 6, 2023

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.

@cliddell
Copy link

cliddell commented May 8, 2023

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.

@noonotthat
Copy link

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

@LegoShrimpVinny
Copy link

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

@RalkeyOfficial
Copy link
Author

RalkeyOfficial commented May 8, 2023

@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
Copy link
Author

RalkeyOfficial commented May 10, 2023

if anyone is interested, i created a PR for my half fix #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.

@LFS900
Copy link

LFS900 commented May 11, 2023

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.

@Python749
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants