1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 08:04:49 +01:00

vidrw: don't replace video with generic swf entry, if present, fixes #124

This commit is contained in:
Ilya Kreymer 2015-08-04 08:45:12 -07:00
parent 52c6544186
commit ebb9184944

View File

@ -330,7 +330,8 @@ __wbvidrw = (function() {
}
}
if (!videoinfo.formats && videoinfo.url && videoinfo.ext && videoinfo.format_id) {
if (!videoinfo.formats && videoinfo.url && videoinfo.ext && videoinfo.format_id &&
!(videoinfo.ext == "swf" && videoinfo.format_id == "0")) {
videoinfo.formats = [{ext: videoinfo.ext,
url: videoinfo.url,
format_id: videoinfo.format_id