mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
build fix: attempt to fix ci builds
- use gevent==1.4.0 - use youtube-dl in quiet mode
This commit is contained in:
parent
94784d6e5d
commit
884662ac3e
@ -29,6 +29,7 @@ import json
|
||||
import glob
|
||||
import datetime
|
||||
import logging
|
||||
import traceback
|
||||
|
||||
from requests.models import PreparedRequest
|
||||
|
||||
@ -38,7 +39,12 @@ logger = logging.getLogger('warcserver')
|
||||
#=============================================================================
|
||||
class BaseLoader(object):
|
||||
def __call__(self, cdx, params):
|
||||
entry = self.load_resource(cdx, params)
|
||||
entry = None
|
||||
try:
|
||||
entry = self.load_resource(cdx, params)
|
||||
except Exception:
|
||||
traceback.print_exc()
|
||||
|
||||
if not entry:
|
||||
return None, None
|
||||
|
||||
@ -501,7 +507,6 @@ class LiveWebLoader(BaseLoader):
|
||||
|
||||
except Exception as e:
|
||||
if logger.isEnabledFor(logging.DEBUG):
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
logger.debug('FAILED: ' + method + ' ' + load_url + ': ' + str(e))
|
||||
|
||||
@ -527,7 +532,7 @@ class VideoLoader(BaseLoader):
|
||||
self.ydl = None
|
||||
return
|
||||
|
||||
self.ydl = YoutubeDL(dict(simulate=True,
|
||||
self.ydl = YoutubeDL(dict(simulate=True, quiet=True,
|
||||
youtube_include_dash_manifest=False))
|
||||
|
||||
self.ydl.add_default_info_extractors()
|
||||
|
@ -9,7 +9,7 @@ brotlipy
|
||||
pyyaml
|
||||
werkzeug
|
||||
webencodings
|
||||
gevent
|
||||
gevent==1.4.0
|
||||
webassets==0.12.1
|
||||
portalocker
|
||||
wsgiprox>=1.5.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user