Bug 216761 - [patch] www/youtube_dl: Update to 2017.02.07 (or something even more recent)
Summary: [patch] www/youtube_dl: Update to 2017.02.07 (or something even more recent)
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Marcelo Araujo
URL:
Keywords: easy, patch, patch-ready
Depends on:
Blocks:
 
Reported: 2017-02-03 21:06 UTC by kaltheat
Modified: 2017-02-28 14:16 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (araujo)


Attachments
svn diff patch (872 bytes, patch)
2017-02-03 21:06 UTC, kaltheat
no flags Details | Diff
update to youtube-dl 2017.02.07 (1.00 KB, patch)
2017-02-08 13:01 UTC, Christoph Moench-Tegeder
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description kaltheat 2017-02-03 21:06:47 UTC
Created attachment 179577 [details]
svn diff patch

Solves youtube playback problems, i.a.
Comment 1 Christoph Moench-Tegeder freebsd_committer freebsd_triage 2017-02-08 13:01:19 UTC
Created attachment 179753 [details]
update to youtube-dl 2017.02.07

let's bump this along to yesterday's version
Comment 2 Marcelo Araujo freebsd_committer freebsd_triage 2017-02-08 15:39:16 UTC
OK, I'm checking it...
Comment 3 kaltheat 2017-02-09 14:57:15 UTC
What an annoying software ... so frequent updates

Is there real porting needed for this software to make it run under FreeBSD? If not one could let the user "install" it on his/her own and let them use the integrated update feature?!

Perhaps the problem could be ports that rely on youtube-dl, like mpv ...
Comment 4 Christoph Moench-Tegeder freebsd_committer freebsd_triage 2017-02-10 11:37:50 UTC
(In reply to kaltheat from comment #3)

So many supported services, and every week at least one of then changes in some not-quite compatible way...
It's even possible to run youtube-dl directly from a git clone of the upstream project, but that wouldn't help with the dependency problem. Though, you're free to keep a local version in e.g. ~/bin or /opt or however you manage your systems.
Comment 5 Marcelo Araujo freebsd_committer freebsd_triage 2017-02-12 23:44:31 UTC
Thanks for the PR, Im updating it with the latest version.
Comment 6 Zsolt Udvari freebsd_committer freebsd_triage 2017-02-28 14:16:35 UTC
Is it possible to merge this version into quarterly? The "old" one (in quarterly, 2016.12.12.) doesn't work:

[youtube] qxEXupvXKUI: Downloading webpage
[youtube] qxEXupvXKUI: Downloading video info webpage
[youtube] qxEXupvXKUI: Extracting video information
[youtube] qxEXupvXKUI: Downloading js player en_US-vflVlxFvV
ERROR: Signature extraction failed: Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 1005, in _decrypt_signature
    video_id, player_url, s
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/youtube.py", line 919, in _extract_signature_function
    errnote='Download of %s failed' % player_url)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 517, in _download_webpage
    res = self._download_webpage_handle(url_or_request, video_id, note, errnote, fatal, encoding=encoding, data=data, headers=headers, query=query)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 424, in _download_webpage_handle
    urlh = self._request_webpage(url_or_request, video_id, note, errnote, fatal, data=data, headers=headers, query=query)
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 404, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2001, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/local/lib/python2.7/urllib2.py", line 421, in open
    protocol = req.get_type()
  File "/usr/local/lib/python2.7/urllib2.py", line 283, in get_type
    raise ValueError, "unknown url type: %s" % self.__original
ValueError: unknown url type: /yts/jsbin/player-en_US-vflVlxFvV/base.js
 (caused by ValueError(u'unknown url type: /yts/jsbin/player-en_US-vflVlxFvV/base.js',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Exit 1