mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-24 00:29:53 -05:00
skip downloading tracks from soundcloud user page
This commit is contained in:
parent
8107abd804
commit
9cc60449d7
@ -163,13 +163,21 @@ def _build_youtube_dl(worker, destdir, site):
|
|||||||
ie_result['entries_no_dl'] = list(ie_result['entries'])
|
ie_result['entries_no_dl'] = list(ie_result['entries'])
|
||||||
ie_result['entries'] = []
|
ie_result['entries'] = []
|
||||||
self.logger.info(
|
self.logger.info(
|
||||||
'not downoading %s videos from this youtube '
|
'not downloading %s videos from this youtube '
|
||||||
'playlist because we expect to capture them from '
|
'playlist because we expect to capture them from '
|
||||||
'individual watch pages',
|
'individual watch pages',
|
||||||
len(ie_result['entries_no_dl']))
|
len(ie_result['entries_no_dl']))
|
||||||
|
elif ie.IE_NAME == 'soundcloud:user':
|
||||||
|
ie_result['entries_no_dl'] = list(ie_result['entries'])
|
||||||
|
ie_result['entries'] = []
|
||||||
|
self.logger.info(
|
||||||
|
'not downloading %s tracks from this soundcloud '
|
||||||
|
'user page because we expect to capture them from '
|
||||||
|
'individual track pages',
|
||||||
|
len(ie_result['entries_no_dl']))
|
||||||
else:
|
else:
|
||||||
self.logger.info(
|
self.logger.info(
|
||||||
'extractor %r found a video in %s', ie.IE_NAME, url)
|
'extractor %r found a download in %s', ie.IE_NAME, url)
|
||||||
|
|
||||||
def _push_stitched_up_vid_to_warcprox(self, site, info_dict, ctx):
|
def _push_stitched_up_vid_to_warcprox(self, site, info_dict, ctx):
|
||||||
# XXX Don't know how to get the right content-type. Youtube-dl
|
# XXX Don't know how to get the right content-type. Youtube-dl
|
||||||
|
Loading…
x
Reference in New Issue
Block a user