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

[Funimation] No resolution shows up for any stream & direct links missing #10696

Closed
Xonshiz opened this issue Sep 18, 2016 · 12 comments
Closed

[Funimation] No resolution shows up for any stream & direct links missing #10696

Xonshiz opened this issue Sep 18, 2016 · 12 comments

Comments

@Xonshiz
Copy link

@Xonshiz Xonshiz commented Sep 18, 2016


Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.09.18. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2016.09.18

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

E:\Youtube-DL>youtube-dl "http://www.funimation.com/shows/first-love-monster/videos/official/a-proper-rom-com-for-once" -F -u MyEmail -p MyPassword --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.funimation.com/shows/first-love-monster/
videos/official/a-proper-rom-com-for-once', '-F', '-u', 'PRIVATE', '-p', 'PRIVAT
E', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2016.09.18
[debug] Python version 3.4.4 - Windows-2012ServerR2-6.3.9600
[debug] exe versions: ffmpeg N-80906-gd5edb6c, rtmpdump 2.5
[debug] Proxy map: {}
[Funimation] Logging in as MYEMAILIDHERE
[Funimation] a-proper-rom-com-for-once: Downloading webpage
[Funimation] a-proper-rom-com-for-once: Downloading m3u8 information
[Funimation] a-proper-rom-com-for-once: Downloading m3u8 information
[Funimation] a-proper-rom-com-for-once: Downloading m3u8 information
[Funimation] a-proper-rom-com-for-once: Downloading m3u8 information
[Funimation] a-proper-rom-com-for-once: Downloading m3u8 information
[Funimation] a-proper-rom-com-for-once: Downloading m3u8 information
[info] Available formats for 34021:
format code                  extension  resolution note
FLMJPNocVsaW0010-hls-meta-0  mp4        multiple   Quality selection URL
FLMJPNocVsaW0010-hls-meta-1  mp4        multiple   Quality selection URL
FLMJPNocVsaW0010-hls-meta-2  mp4        multiple   Quality selection URL
FLMENG7V9ist0010-hls-meta-0  mp4        multiple   Quality selection URL
FLMENG7V9ist0010-hls-meta-1  mp4        multiple   Quality selection URL
FLMENG7V9ist0010-hls-meta-2  mp4        multiple   Quality selection URL
FLMJPNocVsaW0010-hls-750-0   mp4        unknown     750k
FLMJPNocVsaW0010-hls-750-1   mp4        unknown     750k
FLMJPNocVsaW0010-hls-750-2   mp4        unknown     750k
FLMJPNocVsaW0010-hls-1500-0  mp4        unknown    1500k
FLMJPNocVsaW0010-hls-1500-1  mp4        unknown    1500k
FLMJPNocVsaW0010-hls-1500-2  mp4        unknown    1500k
FLMJPNocVsaW0010-hls-2000-0  mp4        unknown    2000k
FLMJPNocVsaW0010-hls-2000-1  mp4        unknown    2000k
FLMJPNocVsaW0010-hls-2500-0  mp4        unknown    2500k
FLMJPNocVsaW0010-hls-2500-1  mp4        unknown    2500k
FLMJPNocVsaW0010-hls-4000    mp4        unknown    4000k
FLMENG7V9ist0010-hls-750-0   mp4        unknown     750k
FLMENG7V9ist0010-hls-750-1   mp4        unknown     750k
FLMENG7V9ist0010-hls-750-2   mp4        unknown     750k
FLMENG7V9ist0010-hls-1500-0  mp4        unknown    1500k
FLMENG7V9ist0010-hls-1500-1  mp4        unknown    1500k
FLMENG7V9ist0010-hls-1500-2  mp4        unknown    1500k
FLMENG7V9ist0010-hls-2000-0  mp4        unknown    2000k
FLMENG7V9ist0010-hls-2000-1  mp4        unknown    2000k
FLMENG7V9ist0010-hls-2500-0  mp4        unknown    2500k
FLMENG7V9ist0010-hls-2500-1  mp4        unknown    2500k
FLMENG7V9ist0010-hls-4000    mp4        unknown    4000k  (best)


Description of your issue, suggested solution and other information

Youtube-dl isn't showing the Resolution for any of the Funimation streams. I've tried on multiple videos and it just shows Unknown. I know I can see the format code to determine the Audio and the bitrate depicts the stream resolution. But, it kinda bugs me to see this.

Another thing I'd like to know is that why is youtube-dl using hls stream only? I mean, funimation provides a DDL link. Why not use that as well?

And another thing is that as you can see there are two format codes for the same resolution and language. For example : FLMENG7V9ist0010-hls-2500-0 and FLMENG7V9ist0010-hls-2500-1, I downloaded both of them to check the difference... there was none.

If you need a raw script to fetch the DDL, I can put it up on pastebin or somewhere and maybe some one can merge it?

I'll leave some example URLs to replicate the issue :
http://www.funimation.com/shows/first-love-monster/videos/official/a-proper-rom-com-for-once

http://www.funimation.com/shows/handa-kun/videos/official/handa-kun-and-the-cultural-festival-preparations

http://www.funimation.com/shows/saikik/videos/official/industry-leading-top-ranking-company-father-s-job

@Xonshiz
Copy link
Author

@Xonshiz Xonshiz commented Sep 18, 2016

BTW, you can still download the SD streams without an account. All you need is a US Proxy/VPN/Location. It won't show stream resolution in any case.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 18, 2016

No resolution info is provided in m3u8.

@dstftw dstftw closed this Sep 18, 2016
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 18, 2016

Direct links are not extracted due to this. Don't know what is the rationale but it works fine without it for me. Ping @yan12125.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Sep 18, 2016

When I was writing that patch, Funimation required the browser that generated the cookie matched the browser used to download the webpage. Now the patch is no longer necessary. You can revert it if it brings new problems.

@Xonshiz
Copy link
Author

@Xonshiz Xonshiz commented Sep 18, 2016

Ah, that cloudflare would pose problem. But, even if you used that cookie you generated from your browser and added to yt-dl for funimation to work, it still won't download the file either way, right? or the m3u8 is fetched irrespective of geo-location?

If you're in US or with a US proxy/VPN, Directs links can be fetched and downloaded right away without a problem.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Sep 18, 2016

Yes videos now require an US IP. Cookies are irrelevant now.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 18, 2016

Cookies still seems to be relevant. At least with non US IP and without cookies I'm getting:

[Funimation] broadcast-dub-preview: Downloading pc webpage
ERROR: Access to funimation.com is blocked by CloudFlare. Please browse to http://www.funimation.com/, solve the reCAPTCHA, export browser cookies to a text file, and then try again with --cookies YOUR_COOKIE_FILE.

while with cookies I'm able to browse site and getting:

[Funimation] broadcast-dub-preview: Downloading webpage
ERROR: Funimation returned error: This video is not available in your territory.
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Sep 18, 2016

Yeah I got the same results. I mean: to download a video, an US IP is always necessary. (I'm not sure for this, only a few videos tested) In this case cookies are no longer necessary. It's good that youtube-dl tells users precise error messages, but not good if some features like direct mp4 links are broken.

@Xonshiz
Copy link
Author

@Xonshiz Xonshiz commented Sep 19, 2016

Cookies have been irrelevat for a long time. Once you solve that reCaptcha, Funimaion will let you browse their site, view all the anime information of any anime they stream. But, to be able to watch, you need a US IP. It is with every video, no exception.

As long as you have a US IP, you can download any stream from Funimation. Even the 720p and 1080p streams. I wrote something for it, I'll post later, you might be able to do something with that?

Besides, Direct links are available for every video funimation has and they show the resolution as well.

And there are certain shows that Funimation streams via HULU. I'll test youtube-dl and my script on those, just to see what happens.

@yan12125 yan12125 reopened this Sep 19, 2016
@yan12125 yan12125 changed the title [Funimation] No resolution shows up for any stream [Funimation] No resolution shows up for any stream & direct links missing Sep 19, 2016
@yan12125 yan12125 added the bug label Sep 19, 2016
@Xonshiz
Copy link
Author

@Xonshiz Xonshiz commented Sep 19, 2016

Found the script : https://gist.github.com/Xonshiz/93b2841ffc77b19bdf15d7e486e9d50e

Wrote this about 2-3 months ago or so. This is downloading just 1080p streams. You can tailor it to download others.

I've used 'PhantomJS' to open Funimation and fetch the 'source code' of the page.

There's an explanation from line 88, take a look at that explanation.

Btw, Geo-Restriction will always be there in Funimation...

@Xonshiz
Copy link
Author

@Xonshiz Xonshiz commented Sep 20, 2016

There is something that you'll need to take care of actually.

Some shows have both, the "Dub Version" and "Sub Version". You'll have to fetch the FunimationID for both of them seperately. Because FunimationID will be different for both the languages.

Example Link : http://www.funimation.com/shows/handa-kun/videos/official/handa-kun-and-a-girls-friendship

FunimationID for English Audio (Dub) : HDKENGK0gZFt0001
FunimationID for Japanese Audio (Sub) : HDKJPNhDrFSQ0001

@matoro
Copy link

@matoro matoro commented Oct 6, 2016

Just to tack onto this - why does youtube-dl download the 480p video by default, instead of the 1080p one? Using the -F flag also does not even list 1080p, however simply replacing the 1500k in the url with 4000k generates a valid link for the 1080p video.

@remitamine remitamine closed this in 91399b2 Apr 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.