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

Site Support Request for katsomo.fi #10543

Closed
Jiriss opened this issue Sep 3, 2016 · 8 comments
Closed

Site Support Request for katsomo.fi #10543

Jiriss opened this issue Sep 3, 2016 · 8 comments

Comments

@Jiriss
Copy link

@Jiriss Jiriss commented Sep 3, 2016

I would like support for katsomo.fi videos. The videos are required Silverlight plugin and are difficult play a non-Windows platform. This are a few examples for videos:

http://www.katsomo.fi/#!/jakso/33001005/studio55-fi/658521/jukka-kuoppamaki-tekee-yha-lauluja-vaikka-lentokoneessa
http://www.katsomo.fi/#!/jakso/33001017/uutislahetykset/646807/kymmenen-uutiset

07.10.2016:

Do you give some estimations when youtube-dl could support for this finnish TV channel?
As said, it's difficult to play videos from katsomo.fi on non-Windows platform therefore youtube-dl would be very useful.
Unfortunately some videos require login credentials.

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.09.03. 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.03

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 ```):

$ youtube-dl -v <your command line>
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2016.09.03
[debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
[debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4
[debug] Proxy map: {}
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):


Description of your issue, suggested solution and other information

Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue required an account credentials please provide them or explain how one can obtain them.

@yan12125 yan12125 mentioned this issue Feb 22, 2017
3 of 7 tasks complete
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Feb 22, 2017

@ghost
Copy link

@ghost ghost commented Aug 24, 2017

@yan12125 Most videos are geo-restricted but not all.

@jv84
Copy link

@jv84 jv84 commented Dec 1, 2017

@Emgalai
Copy link

@Emgalai Emgalai commented Feb 22, 2018

It should be noted that Katsomo no longer requires Silverlight (or any other add-on). But Katsomo now requires free registration.

@jv84
Copy link

@jv84 jv84 commented Feb 22, 2018

@Emgalai It is noted on issue #12212 already a year ago.

@kobolttti
Copy link

@kobolttti kobolttti commented Mar 15, 2018

Found out that youtube-dl does work for some content from Katsomo using the mpd URL, for example:
$ youtube-dl "https://mtvdashvod.akamaized.net/video/playout/ismvol1/2018-02-13/Kymmenen_Uutiset(876941_ISMUSPWV).ism/Kymmenen_Uutiset(876941_ISMUSPWV).mpd"

However, some content fails, for example:
$ youtube-dl "https://mtvdashvodcloud-a.akamaized.net/video/won/ismvol1/2018-02-06/Ina__3_porno(873979_ISMUSPWV).ism/Ina__3_porno(873979_ISMUSPWV).mpd" --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://mtvdashvodcloud-a.akamaized.net/video/won/ismvol1/2018-02-06/Ina__3_porno(873979_ISMUSPWV).ism/Ina__3_porno(873979_ISMUSPWV).mpd', u'--verbose']
[debug] Encodings: locale ISO-8859-15, fs ISO-8859-15, out ISO-8859-15, pref ISO-8859-15
[debug] youtube-dl version 2018.03.14
[debug] Python version 2.7.12 (CPython) - Linux-4.4.0-116-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: avconv 2.8.11-0ubuntu0.16.04.1, avprobe 2.8.11-0ubuntu0.16.04.1, ffmpeg 2.8.11-0ubuntu0.16.04.1, ffprobe 2.8.11-0ubuntu0.16.04.1, rtmpdump 2.4
[debug] Proxy map: {}
[generic] Ina__3_porno(873979_ISMUSPWV): Requesting header
WARNING: Falling back on generic information extractor.
[generic] Ina__3_porno(873979_ISMUSPWV): Downloading webpage
[generic] Ina__3_porno(873979_ISMUSPWV): Extracting information
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 785, in extract_info
ie_result = ie.extract(url)
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 440, in extract
ie_result = self._real_extract(url)
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/generic.py", line 2240, in _real_extract
self._sort_formats(info_dict['formats'])
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 1071, in _sort_formats
raise ExtractorError('No video formats found')
ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Is this due to login requirement? Files attached:
Kymmenen_Uutiset(876941_ISMUSPWV).zip
Ina__3_porno(873979_ISMUSPWV).zip

$ youtube-dl --version
2018.03.14

@jv84
Copy link

@jv84 jv84 commented Jun 1, 2018

@kobolttti Usually on Katsomo, only news clips can be watched without logging in. If the login method is not supported, then that latter case can't obviously be tested (without some loophole).

Having a way to extract the mpd URL automatically would be a good start anyway. 😄

@kobolttti
Copy link

@kobolttti kobolttti commented Jun 16, 2018

Extracting the mpd URL:

Dirty proof/test:

$ youtube-dl `curl -s "https://api.katsomo.fi/api/web/asset/917987/play?protocol=MPD" | grep url | sed 's#<url>\(.*mpd\).*#\1#'`

[generic] Seitsem_n_Uutiset(917987_ISMUSPWV): Requesting header
WARNING: Falling back on generic information extractor.
[generic] Seitsem_n_Uutiset(917987_ISMUSPWV): Downloading webpage
[generic] Seitsem_n_Uutiset(917987_ISMUSPWV): Extracting information
[dashsegments] Total fragments: 972
... (downloading)

If the clip requires login then GET for api.katsomo.fi will fail with reply:

$ curl -s "https://api.katsomo.fi/api/web/asset/885332/play?protocol=MPD"

"SESSION_NOT_AUTHENTICATEDUser is not authenticatedxxxxxxxxxxxxxx</error"

Authentication is based on cookies. Following POST is used for authentication:

$ curl "https://api.katsomo.fi/api/authentication/user/login" -H "Accept: application/json" --data "username=PUTEMAILHERE&password=PUTPASSWORDHERE&rememberMe=true" -c cookies.txt

When successful this will reply {"response":{"code":"AUTHENTICATION_OK","description":"Authentication successful","reference":"xxxxxxxxxxxxx","userId":nnnnnn}} - and the curl parameter -c will save the authentication cookies to cookies.txt.

Now the previously "SESSION_NOT_AUTHENTICATED" failed GET to api.katsomo.fi will work when the cookies are passed with the GET:

$ curl -s "https://api.katsomo.fi/api/web/asset/885332/play?protocol=MPD" -b cookies.txt | grep url | sed 's#<url>\(.*mpd\).*#\1#'

https://mtvdashvodcloud-a.akamaized.net/video/won/ismvol1/2018-03-07/Ina__3_porno(885332_ISMUSPWV).ism/Ina__3_porno(885332_ISMUSPWV).mpd

However, I'm still unable to get youtube-dl to download the clip even I pass the cookie.txt:

$ youtube-dl --cookies cookies.txt "https://mtvdashvodcloud-a.akamaized.net/video/won/ismvol1/2018-03-07/Ina__3_porno(885332_ISMUSPWV).ism/Ina__3_porno(885332_ISMUSPWV).mpd" -v

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--cookies', u'cookies.txt', u'https://mtvdashvodcloud-a.akamaized.net/video/won/ismvol1/2018-03-07/Ina__3_porno(885332_ISMUSPWV).ism/Ina__3_porno(885332_ISMUSPWV).mpd', u'-v']
[debug] Encodings: locale ISO-8859-15, fs ISO-8859-15, out ISO-8859-15, pref ISO-8859-15
[debug] youtube-dl version 2018.06.14
[debug] Python version 2.7.12 (CPython) - Linux-4.4.0-116-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: ffmpeg 2.8.14-0ubuntu0.16.04.1, ffprobe 2.8.14-0ubuntu0.16.04.1, rtmpdump 2.4
[debug] Proxy map: {}
[generic] Ina__3_porno(885332_ISMUSPWV): Requesting header
WARNING: Falling back on generic information extractor.
[generic] Ina__3_porno(885332_ISMUSPWV): Downloading webpage
[generic] Ina__3_porno(885332_ISMUSPWV): Extracting information
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 792, in extract_info
ie_result = ie.extract(url)
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 500, in extract
ie_result = self._real_extract(url)
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/generic.py", line 2330, in _real_extract
self._sort_formats(info_dict['formats'])
File "/usr/local/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 1190, in _sort_formats
raise ExtractorError('No video formats found')
ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

This also seems to remove the cookies from the jar:

$ cat cookies.txt
# Netscape HTTP Cookie File
# http://curl.haxx.se/rfc/cookie_spec.html
# This is a generated file!  Do not edit.

What am I missing here?

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
6 participants
You can’t perform that action at this time.