sh1nobuu / BitAnime

A Python script that allows you to download all of an anime's episodes at once.
23 stars 10 forks source link

Updated headers to bypass ForbiddenResponse by CDN #10

Open FireHead90544 opened 2 years ago

FireHead90544 commented 2 years ago

Recently, gogoanime's cdn (anicdn thingy) has been showing Forbidden | 403 error, so I captured the new required headers from the network tab in dev tools. Just updated them in this PR, as the downloader was not working many a times due to this, the new headers are working perfectly now.

sh1nobuu commented 2 years ago

Thanks for fixing the bug man. Unfortunately I can't merge it right now (my internet connection got cut off) I'll review it once my connection is back. Thanks again.

FireHead90544 commented 2 years ago

Thanks for fixing the bug man. Unfortunately I can't merge it right now (my internet connection got cut off) I'll review it once my connection is back. Thanks again.

Yeah sure mate, no worries. Btw, if I get time I'll fix some type-hinting too as the current one is having some errors, for example, instead of

list[str]

this should be used

from typing import List
List[str]

Still thanks for reviewing :)

sh1nobuu commented 2 years ago

Thanks for fixing the bug man. Unfortunately I can't merge it right now (my internet connection got cut off) I'll review it once my connection is back. Thanks again.

Yeah sure mate, no worries. Btw, if I get time I'll fix some type-hinting too as the current one is having some errors, for example, instead of

list[str]

this should be used

from typing import List
List[str]

Still thanks for reviewing :)

Thanks for fixing the bugs mate. I didn't know about the type hinting i thought it's the right way I'll fix it on my code (local repo).

FireHead90544 commented 2 years ago

Thanks for fixing the bug man. Unfortunately I can't merge it right now (my internet connection got cut off) I'll review it once my connection is back. Thanks again.

Yeah sure mate, no worries. Btw, if I get time I'll fix some type-hinting too as the current one is having some errors, for example, instead of

list[str]

this should be used

from typing import List
List[str]

Still thanks for reviewing :)

Thanks for fixing the bugs mate. I didn't know about the type hinting i thought it's the right way I'll fix it on my code (local repo).

No worries bro, good luck, welcome :)