lap00zza / 9anime-Companion

:rocket: A simple companion extension for 9anime
https://chrome.google.com/webstore/detail/9anime-companion/fopcehkidabibdmachbcpbgllhehknah
MIT License
88 stars 26 forks source link

Downloaded file size doubled [UPDATED 4 DEC] #110

Open Vysair opened 6 years ago

Vysair commented 6 years ago

20171129_014500

Anime: https://9anime.is/watch/just-because.6owz

First of all, this bug occur at random and the resolution for the both downloaded file is 720p but the 9anime companion one are twice as large than the default 9anime download. For example, the file size were originally 200MB/300MB, 720p but when download it with 9anime companion the size of the file suddenly peak around 400MB/600MB, 720p. This bug usually happen on preloaded/cached page (left the tab open after closing the browser) and then refresh it to prevent it from failing to fetch the file (without refresh is also fine) then you download it from the server such as F2 server, G2 server or G3 server. This could also happen on freshly new open tab.

FYI

I have checked both video to see if there any changes to the quality and I even check the file details (resolution, format) and both file has the same resolution and format but with a different sizes.

Theories

First Theory The file was downloaded twice and emerged into same video at the same duration meaning you played 2 same video at once.

Second Theory The bitrate was altered when fetching for the file, somehow.

Third Theory 9anime has changed or updated all the video from where it was streamed. For example, the video was uploaded to OpenLoad website in 2010 and then the same video was reuploaded to OpenLoad website.

First Theory Support The way 9anime companion download a video is by storing the unfinished file in .part format then merge it to the empty .mp4 file but the double total size occur in .part format so there could be more to it than it meets the eye.

Image Reference: 20171129_012919

I might be the only one who experienced it so it not a problem but please keep this issue open until it was resolve just in case more people start experiencing it.

Technical Details • Android 7.1.1 • Firefox Beta 58

My Action When I checked the download file (firefox always show total file size) I know something wasn't right when the file size is larger than usual for all episode so I cancel all the download then delete all of them and manually download the video with built-in 9anime downloader (the number written on the video player at the bottom right corner that wrote 720p/any resolution you are watching the video at).

zrattz commented 6 years ago

Are both 720p? maby the bigger one is 1080p

densityx commented 6 years ago

Some video source have larger file size,

It's more likely the encoded video file size is larger compared to the other episodes

lap00zza commented 6 years ago

@densityx for this anime: https://9anime.is/watch/shokugeki-no-souma-san-no-sara.lm73 (well or any other) can you pick an episode and start download for 720p via 9animes own method and 9anime Companion and compare the size?

lap00zza commented 6 years ago

My results:

Server: F2 Anime: https://9anime.is/watch/shokugeki-no-souma-san-no-sara.lm73 Episode: 4 Quality: 1080p 9anime Direct Download: 588MB 9anime Companion Download: 588 MB

densityx commented 6 years ago

Did download episode 1 from server f2

with 9ac - 293MB default 9a download - 293 MB

make sure to select 720p for both methods

Vysair commented 6 years ago

Since this bug occur at random, I'm unable to replicate this bug and I'm still don't know what is the trigger or the source of this but this isn't the first time it happens, this bug happen twice last month. I'm very sorry for lacking on information.

lap00zza commented 6 years ago

@Vysair no worries. Next time this bug occurs be sure to make a note of the name of the anime, episode number and which server (F2, G2,RapidVideo etc.)

Vysair commented 6 years ago

@lap00zza Unfortunetely, I usually forgot to do so and my tabs are a mess (around 23 animes on hold right now) and I download about 4-5 series at once. Anyway, thanks for the advice.

Vysair commented 6 years ago

@lap00zza Image added, thank god it just happen again!

lap00zza commented 6 years ago

@densityx can you please test this later

Vysair commented 6 years ago

Okay I figured out how the size were doubled (might be), seem like you have to keep the tabs that you have download the video from until the download were finish for some reason. This is all I got for now, further research are needed. Any new information guys?

antony-jr commented 6 years ago

hmm... , Why the download cannot be continued when the 9anime tab is closed ?

Vysair commented 6 years ago

I gave up, my standard 24min 720p video are now 600mb because it merged 2 video into 1 at the same time everytime now...

lap00zza commented 6 years ago

I am on it but I will need some time to fix. I am really busy with my college activities at the moment. Will be free after 2 weeks.

Vysair commented 6 years ago

Relax, it is fine I'm the only one that experienced it anyway so there is no reason for you to rushing things. Just keep focusing on the college while I'm collecting some information on this bug and updating this post in the meantime.

debakarr commented 6 years ago

@Vysair I am experiencing the same problem.

@lap00zza take it easy. Just fix it when you get time. I can see you are alone working on this. I feel so bad that I couldn't help (my JavaScript knowledge is too poor).

antony-jr commented 6 years ago

This is sure caused by network interruption or no delay in the download initiation , try downloading it with a download manager I think it should work fine with IDM if not then there is some other things wrong , @Vysair @Dibakarroy1997 Try using a download manager!

antony-jr commented 6 years ago

lets see If this problem exist in download manager

antony-jr commented 6 years ago

so I need to keep the tabs open to download , How despicable ( no offense ).

lap00zza commented 6 years ago

That is not at all true. Just tested it. 2017-12-06_12-13-35

For External method, tab is required to show the downloaded urls. Maybe displaying the downloaded url's can be shifted somewhere else (which will free up the tab) ? Also, its a open source program. If you think you can improve it then just send a PR.

Can someone help me:

/cc @densityx @WEBhicham

densityx commented 6 years ago

@lap00zza Working fine, did test on the same source

antony-jr commented 6 years ago

oh thats okay @lap00zza

debakarr commented 6 years ago

They removed F2, G2, G3 and now G4. Don't know whats going on with 9anime.

Vysair commented 6 years ago

@antony-jr IDM/ADM on Android doesn't work with 9anime companion.

Vysair commented 6 years ago

@lap00zza You also experience the same bug as this post stated, 24min 720p should be 300MB (like always I download) but for some reason the rest is 600MB. This is no mistake since I have downloaded more than 100 animes on 9anime for the past 3 months.

Vysair commented 6 years ago

Also, 9anime seem like they are declaring war with 9anime companion because they have removed the server that we can use.

antony-jr commented 6 years ago

@Vysair RapidVideo is easy to crack , I've done it in the past. No they are not removing the google videos they are just facing legal issues so I think the videos are took down by google! F1 F2 G1 G2 G3 are all google drive videos. And bmovies seems to support these servers so they will not take it down just for this addon , they are like a big pirate organisation which we have no idea who we are dealing with! I've done a complete downloader in the past but forsaken it long ago...

antony-jr commented 6 years ago

try downloading with IDM in PC once @Vysair . @lap00zza I once had this same bug when I developed NineAnime Downloader , It occured when I Partial downloaded the file with wrong range parameters , I suppose firefox is sending Partial Download ( HTTP 206 ) with malfunctioned range. I fixed it with some nasty code but thats in close metal C++.

lap00zza commented 6 years ago

aha yeah. I think most of the video links on google servers are getting reported. Also this double size bugs seems to come at random. I was only able to reproduce it once. But next time the google servers are back I will definitely check for HTTP 216. Thanks @antony-jr .