]> git.bitcoin.ninja Git - youtube-dl/commitdiff
Fix bugs caused by typos
authorRobin Neatherway <robin.neatherway@gmail.com>
Fri, 14 Jul 2017 16:08:32 +0000 (17:08 +0100)
committerSergey M <dstftw@gmail.com>
Fri, 14 Jul 2017 16:08:32 +0000 (23:08 +0700)
youtube_dl/downloader/ism.py
youtube_dl/extractor/audioboom.py
youtube_dl/extractor/generic.py
youtube_dl/extractor/karrierevideos.py

index 5f6f9faefbad62592d699135437ec81add27ae39..9b001ecff4f407a94f74b59a8e1505ed27fd9d03 100644 (file)
@@ -98,7 +98,7 @@ def write_piff_header(stream, params):
 
     if is_audio:
         smhd_payload = s88.pack(0)  # balance
-        smhd_payload = u16.pack(0)  # reserved
+        smhd_payload += u16.pack(0)  # reserved
         media_header_box = full_box(b'smhd', 0, 0, smhd_payload)  # Sound Media Header
     else:
         vmhd_payload = u16.pack(0)  # graphics mode
@@ -126,7 +126,6 @@ def write_piff_header(stream, params):
         if fourcc == 'AACL':
             sample_entry_box = box(b'mp4a', sample_entry_payload)
     else:
-        sample_entry_payload = sample_entry_payload
         sample_entry_payload += u16.pack(0)  # pre defined
         sample_entry_payload += u16.pack(0)  # reserved
         sample_entry_payload += u32.pack(0) * 3  # pre defined
index e48bb89721df88bf75b68c8ba8feb49bedd4b2c0..393f381c6129f41688e2e163b6135a5254eaf3ea 100644 (file)
@@ -43,7 +43,7 @@ class AudioBoomIE(InfoExtractor):
 
         def from_clip(field):
             if clip:
-                clip.get(field)
+                return clip.get(field)
 
         audio_url = from_clip('clipURLPriorToLoading') or self._og_search_property(
             'audio', webpage, 'audio url')
index 5e8890d418af0c5aed90a73df3c2f93bf9e7668a..8c2ff39d58200671bb7b374722823b5adf790f87 100644 (file)
@@ -2740,7 +2740,7 @@ class GenericIE(InfoExtractor):
         rutube_urls = RutubeIE._extract_urls(webpage)
         if rutube_urls:
             return self.playlist_from_matches(
-                rutube_urls, ie=RutubeIE.ie_key())
+                rutube_urls, video_id, video_title, ie=RutubeIE.ie_key())
 
         # Look for WashingtonPost embeds
         wapo_urls = WashingtonPostIE._extract_urls(webpage)
index 4e9eb67bf24690571176299de5ff900c7496fec8..f236a2f78e600d45c3f7dbd40de2f320f4cf277e 100644 (file)
@@ -48,7 +48,7 @@ class KarriereVideosIE(InfoExtractor):
         webpage = self._download_webpage(url, video_id)
 
         title = (self._html_search_meta('title', webpage, default=None) or
-                 self._search_regex(r'<h1 class="title">([^<]+)</h1>'))
+                 self._search_regex(r'<h1 class="title">([^<]+)</h1>', webpage, 'video title'))
 
         video_id = self._search_regex(
             r'/config/video/(.+?)\.xml', webpage, 'video id')