-
Notifications
You must be signed in to change notification settings - Fork 10k
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
[AnimeLab] Add new extractor #13600
[AnimeLab] Add new extractor #13600
Conversation
@dstftw I have resolved the issues I could so far. When you reply to my other queries, I will solve the related issues. Hopefully I made the code easier to read by inlining the methods I only used once :) |
@dstftw I believe I have resolved the issues. Please review at your convenience. |
@dstftw Bump. I also removed a superflous test and added thumbnail extraction. In case I was a bit unclear, I plan on adding playlist extraction once this is merged (that is, I am ready for this to be merged when you have reviewed my submission). Thanks for your review in advance. |
@dstftw Could I ask for a re-review? Quite a bit has changed ;) |
@mariuszskon Thanks for creating it |
@inks007 I cannot reproduce your issue regarding getting heights:
If you could provide an exact test command/URL that causes this behaviour that would be awesome. |
Hey @mariuszskon I'm seeing the same issue as @inks007
Doesn't seem to effect the resultant download. Video plays fine |
@mariuszskon --download-archive looks to be working correctly, thank you. The warnings seem to depend on the video (probably happens with the newer ones).
I tried my-hero-academia-episode-1 like you did (it is a very old episode) and there aren't any warnings there. |
Hmm this is a very interesting problem. @BelSean21 Gleipnir is working correctly on my end. @inks007 I cannot test your link because it is too new and requires a premium account, which I do not have. Episode 2 seems to work fine.
(make sure it has the right indentation i.e. it has the same number of spaces as line before it. Then you can post the results of attempting to get those height-less videos 😄 |
@mariuszskon Sent you a subscription code instead. Much easier. |
@mariuszskon Like this?
|
@mariuszskon Getting this with some of the Movies
|
@inks007 you are extremely generous! I will do my best to take advantage of your donation to make AnimeLab extraction as good as it can be! @BelSean21 thanks for following my instructions, the output is exactly what I wanted to see. Of course I can myself confirm this is the case thanks to the donation of premium. Basically, if you look carefully, AnimeLab is sometimes reporting the quality as 'HD' instead of '1080p'. This is a simple fix, which I could have hacked together, or, which I realised youtube-dl has more built-in features for analysis :) This has been implemented in c3dca17. I also noticed that the English or Japanese option is not handled smoothly (it should get both options in a single command), so I fixed that to an extent in 2f6d029. It's not the most elegant solution, but it works. @BelSean21 I have fixed the movie extraction issue in 2cf8283. |
@mariuszskon Thanks for all the fixes. There is some minor weirdness with picking up different formats:
Can't seem to specify picking up the newer DASH formats without specifying the extension (mp4 or m4a). This is probably minor, because all of the following work as intended: |
@inks007 Indeed, we now have lots more formats thanks to actually correctly handling mpd and m3u8 😅 The format shown is what my extractor reports to youtube-dl. All control is then passed to the rest of youtube-dl where selecting the format, actually performing the download of the media etc. is actually done. Therefore it is most likely that the problem is not in my extractor. However, I have been wrong before, so I will take a look. My response will be a bit delayed. |
Thankyou @mariuszskon Looking good :-) |
@inks007 after a bunch of research and experimenting I have come to a few conclusions regarding the issue of format selection.
Debugging this with your given format specifiers gives the following results:
See the problem? Similarly, you will see that TL;DR: If you only specify things in brackets |
@dstftw I understand that you are very busy since youtube-dl is a massive project, but I would love it if you could re-review my code. |
@mariuszskon that makes a lot of sense, thanks. |
Authored by mariuszskon
Animelab's being shut down so you may as well close this PR :'( |
Thanks for the update, indeed it is. Apparently you can login to funimation with the same details, see https://www.animelab.com/blog/animelab-is-becoming-funimation-in-australia-and-new-zealand/ Whether you like the move or not, the good part from youtube-dl's perspective is there is less code to maintain 😄 |
Please follow the guide below
x
into all the boxes [ ] relevant to your pull request (like that [x])Before submitting a pull request make sure you have:
In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:
What is the purpose of your pull request?
Description of your pull request and other information
This pull request adds basic support for the Australian / New Zealand streaming site AnimeLab. More features are planned, but I wanted to get a basic version out for now.
The site is run by Madman Entertainment, and is legal.
The site requires authentication, but a free account is simple to make (only requres an email address, which it does not even need a confirmation actually exists) and can access most of the content (but the site is geo-restricted to Aus/NZ).
It would be great if someone has a premium account and can verify that premium content is accessible (and does not interfere with the tests).
Plase leave feedback on what needs to be changed :)