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

Apostrophes in uploader field stored incorrectly in extract_info #22483

Closed
5 of 6 tasks
MikkoMMM opened this issue Sep 22, 2019 · 0 comments
Closed
5 of 6 tasks

Apostrophes in uploader field stored incorrectly in extract_info #22483

MikkoMMM opened this issue Sep 22, 2019 · 0 comments

Comments

@MikkoMMM
Copy link

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2019.09.12.1
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.09.12.1
[debug] Python version 3.7.4 (CPython) - Linux-5.3.0-arch1-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 4.2.1, ffprobe 4.2.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube:playlist] PL2NN2rktA4yMz3yApgJ33lsRte5NmieJA: Downloading webpage
{'_type': 'playlist', 'entries': <generator object YoutubeEntryListBaseInfoExtractor._entries at 0x7fed02b1fb50>, 'id': 'PL2NN2rktA4yMz3yApgJ33lsRte5NmieJA', 'title': "All videos of IT'S HISTORY", 'uploader': 'IT&#39;S HISTORY', 'uploader_id': 'BlastfromthePast', 'uploader_url': 'https://www.youtube.com/user/BlastfromthePast', 'extractor': 'youtube:playlist', 'webpage_url': 'https://www.youtube.com/playlist?list=PL2NN2rktA4yMz3yApgJ33lsRte5NmieJA', 'webpage_url_basename': 'playlist', 'extractor_key': 'YoutubePlaylist'}

Description

The "uploader" field of extract_info in youtube-dl's Python version has apostrophes stored as ' instead of the character '. Clearly though apostrophes can be correctly stored because it's so in the "title" field. I haven't checked whether this issue affects other fields or special characters. Here's a short script to test this issue:

#!/usr/bin/python3
import youtube_dl

url="https://www.youtube.com/playlist?list=PL2NN2rktA4yMz3yApgJ33lsRte5NmieJA"

with youtube_dl.YoutubeDL({"verbose": True}) as ydl:
    print(ydl.extract_info(url, process=False))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant