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

ArteTV Show Website Playlist is not working #15583

Closed
capital-G opened this issue Feb 13, 2018 · 0 comments
Closed

ArteTV Show Website Playlist is not working #15583

capital-G opened this issue Feb 13, 2018 · 0 comments

Comments

@capital-G
Copy link
Contributor

@capital-G capital-G commented Feb 13, 2018

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 this: [x])
  • Use the Preview tab to see what your issue will actually look like

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

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

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

python3 -m youtube_dl -v https://www.arte.tv/de/videos/RC-014036/mit-offenen-karten/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.arte.tv/de/videos/RC-014036/mit-offenen-karten/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.02.11
[debug] Git HEAD: 49702e3
[debug] Python version 3.5.2 (CPython) - Linux-4.13.0-32-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: ffmpeg 2.8.11-0ubuntu0.16.04.1, ffprobe 2.8.11-0ubuntu0.16.04.1, rtmpdump 2.4
[debug] Proxy map: {}
[arte.tv:+7] mit-offenen-karten: Downloading webpage
[download] Downloading playlist: None
[arte.tv:+7] playlist None: Collected 0 video ids (downloading 0 of them)
[download] Finished downloading playlist: None

Actually this should fetch more than zero videos, it should currently fetch 6 Videos.

Sadly I can't run all the tests for some reason, some work (at least they are discovered but they fail - this is already a modified version which fails a little later because i added an empty fallback list in case of failure)

python3 test/test_download.py TestDownload.test_ArteTVPlaylist
[arte.tv:playlist] PL-013263: Downloading JSON metadata
[download] Downloading playlist: PL-013263
[arte.tv:playlist] playlist PL-013263: Collected 0 video ids (downloading 0 of them)
[download] Finished downloading playlist: PL-013263
F
======================================================================
FAIL: test_ArteTVPlaylist (__main__.TestDownload):
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_download.py", line 178, in test_template
    expect_info_dict(self, res_dict, test_case.get('info_dict', {}))
  File "/home//code/youtube-dl/test/helper.py", line 177, in expect_info_dict
    expect_dict(self, got_dict, expected_dict)
  File "/home//code/youtube-dl/test/helper.py", line 173, in expect_dict
    expect_value(self, got, expected, info_field)
  File "/home//code/youtube-dl/test/helper.py", line 167, in expect_value
    'Invalid value for field %s, expected %r, got %r' % (field, expected, got))
AssertionError: 'Areva & Uramin' != None : Invalid value for field title, expected 'Areva & Uramin', got None

----------------------------------------------------------------------
Ran 1 test in 0.360s

FAILED (failures=1)

others won't be detected.

python3 test/test_download.py TestDownload.test_ArteTVPlus7
E
======================================================================
ERROR: test_ArteTVPlus7 (unittest.loader._FailedTest)
----------------------------------------------------------------------
AttributeError: type object 'TestDownload' has no attribute 'test_ArteTVPlus7'

----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (errors=1)

I threw the code into a Debugger with a breakpoint but couldn't find a quick fix - ArteTVPlus7IE._extract_from_webpage returns self.playlist_result(entries) but entries is an empty list here.

Looking at the DOM of https://www.arte.tv/de/videos/RC-014036/mit-offenen-karten/ it should be possible to obtain the URLs which can be downloaded via youtube-dl via the dom, they are in the a's with the class next-teaser__link but I have not checked if those are set via JS.
The X-Path //div[@class="videos"]/section//a[@class="next-teaser__link"]/@href obtains the required videos in the Google Chrome Console.

If someone can tell me how to run every test on this IE and if it's OK to include another check for the XPath above I can do a PR - but I don't want to fix every other aspect of this IE that may be broken.

@remitamine remitamine closed this in ff0f4cf Jul 2, 2019
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
1 participant
You can’t perform that action at this time.