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

[periscope] Extractor not downloading playlist #9967

Closed
cant-think-of-a-name opened this issue Jul 1, 2016 · 0 comments
Closed

[periscope] Extractor not downloading playlist #9967

cant-think-of-a-name opened this issue Jul 1, 2016 · 0 comments

Comments

@cant-think-of-a-name
Copy link
Contributor

@cant-think-of-a-name cant-think-of-a-name commented Jul 1, 2016

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.07.01. 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.07.01

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 https://www.periscope.tv/OrlandoMagic/
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'https://www.periscope.tv/OrlandoMagic/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.07.01
[debug] Python version 3.5.1 - Linux-4.5.2-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 3.0.2, ffprobe 3.0.2, rtmpdump 2.4
[debug] Proxy map: {}
[periscope:user] OrlandoMagic: Downloading webpage
[download] Downloading playlist: Orlando Magic
[periscope:user] playlist Orlando Magic: Collected 0 video ids (downloading 0 of them)
[download] Finished downloading playlist: Orlando Magic

Description of your issue, suggested solution and other information

The JSON response the periscope extractor uses to download playlists has changed. There used to be a list of broadcasts that had an ID. Now the JSON only contains a list of broadcast IDs.

Changing this:

entries = [
    self.url_result(
        'https://www.periscope.tv/%s/%s' % (user_id, broadcast['id']))
    for broadcast in data_store.get('UserBroadcastHistory', {}).get('broadcasts', [])]

to:

entries = [
    self.url_result(
        'https://www.periscope.tv/%s/%s' % (user_id, broadcast))
    for broadcast in data_store.get('UserBroadcastHistory', {}).get('broadcastIds', [])]

fixes the issue.

dstftw added a commit that referenced this issue Jul 1, 2016
The JSON response changed and the extractor needed to be updated in order to gather the video IDs.
@dstftw dstftw closed this Jul 1, 2016
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
2 participants
You can’t perform that action at this time.