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

[vimeo] fix album extraction (issue #15704) #15855

Closed
wants to merge 3 commits into from

Conversation

kayb94
Copy link
Contributor

@kayb94 kayb94 commented Mar 13, 2018

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:

  • I am the original author of this code and I am willing to release it under Unlicense
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

(Mixed, took some snippets from elsewhere in youtube-dl)

What is the purpose of your pull request?

  • Bug fix

Description of your pull request and other information

Fixes the vimeo album playlist extraction. I added a test (from the original bug report). So, this resolves #15704.

@PSlava
Copy link

PSlava commented Mar 15, 2018

This fix fails to extract password protected albums!
For example (from test) : https://vimeo.com/album/3253534

@kayb94
Copy link
Contributor Author

kayb94 commented Mar 15, 2018

As said, that's not what I tried to achieve. Please open a seperate Issue, if you haven't done yet.

Regards

@kayb94
Copy link
Contributor Author

kayb94 commented Mar 19, 2018

@dstftw Is this ready?

Regards

@dstftw
Copy link
Collaborator

dstftw commented Mar 27, 2018

Does not work for multi page albums.
Does not work https://vimeo.com/album/2632481/sort:plays/format:thumbnail.
Does not work https://vimeo.com/album/2632481/page:2/sort:plays/format:thumbnail.

@@ -833,9 +834,16 @@ class VimeoAlbumIE(VimeoChannelIE):
'url': 'https://vimeo.com/album/2632481',
'info_dict': {
'id': '2632481',
'title': 'Staff Favorites: November 2013',
'title': 'Vimeo / Staff Favorites: November 2013',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The title is Staff Favorites: November 2013.

return self._extract_videos(album_id, 'https://vimeo.com/album/%s' % album_id)
rss_url = url + '/rss'

doc = self._download_xml(rss_url, album_id, fatal=True)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True is default.


doc = self._download_xml(rss_url, album_id, fatal=True)

playlist_title = doc.find('./channel/title').text
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should not be fatal.

entries = []
for it in doc.findall('./channel/item'):
next_title = it.find('title').text
next_url = xpath_text(it, 'link', fatal=False)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

False is default.

@kayb94
Copy link
Contributor Author

kayb94 commented Apr 30, 2018

Thank you for your review, I incorporated your suggestions. Sadly I was busy and also forgot about it for a while.
I'm not sure, wether I get your comment about "multipage albums" right, because the two urls...

https://vimeo.com/album/2632481/sort:plays/format:thumbnail.
https://vimeo.com/album/2632481/page:2/sort:plays/format:thumbnail.

...appear the same and on one page to me. But I have to admit I never use vimeo.
Anyway, they work now.

Regards

@kayb94
Copy link
Contributor Author

kayb94 commented May 20, 2018

Could someone review?

Regards
Kay

@kayb94
Copy link
Contributor Author

kayb94 commented Jun 30, 2018

I resolved the things you requested, could you review again please @dstftw

Regards

@remitamine remitamine closed this in eb9c9c7 Aug 3, 2019
Lamieur referenced this pull request in Lamieur/youtube-dl Aug 3, 2019
closes #1933
closes #15704
closes #15855
closes #18967
closes #21986
meunierd referenced this pull request in meunierd/youtube-dl Feb 13, 2020
closes #1933
closes #15704
closes #15855
closes #18967
closes #21986
pareronia referenced this pull request in pareronia/youtube-dl Jun 22, 2020
closes #1933
closes #15704
closes #15855
closes #18967
closes #21986
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Vimeo] Downloading Channel/Album - Unable to extract list title
3 participants